Hi Chris, for a moment I thought it could have been it... but nope, i tried: $xml_root = Gtk2::GladeXML->new( $glade_dir."/joellisme.glade", undef, 'joellisme' );
still the same results :-( glade file is ignored... -Pascal On 8/17/06, Chris Debenham <[EMAIL PROTECTED]> wrote: > Ahh, I see your problem. > When you load the glade you use > > $xml_root = Gtk2::GladeXML->new( $glade_dir."/joellisme.glade" ); > > To get gettext to handle the glade you need to add the DOMAIN option. > Change the line to > > $xml_root = Gtk2::GladeXML->new( $glade_dir."/joellisme.glade", 'gui', > 'joellisme); > > and give it another try. > I'm not sure if you need the 'gui' bit, you may be able to leave this as > '' > > Chris > > On Thu, 2006-08-17 at 01:00 -0400, Pascal wrote: $xml_root = > > Hi, > > i'd like to came back on the email: > > http://mail.gnome.org/archives/gtk-perl-list/2005-November/msg00034.html > > > > I can get the translation working no problem for the code part > > (joellisme.pl), but not the glade file. > > Including Chris' code (see EXPERIMENTAL section in joellisme.pl), i > > get an error at runtime: > > Subroutine main::gettext redefined at /usr/share/perl/5.8/Exporter.pm line > > 65. > > at ./joellisme.pl line 40 > > > > And the interface part doesn't get translated. > > You can reproduce by running in fr_CA, type hoax, click search and > > look if the button Ignore is Ignorer. > > > > My translations are in po/ . > > I update them with a small Makefile for the moment. > > Use "make" to see the different possibilities. > > "make all" will update the .pot, update the po file, convert to mo > > file, install mo file in ../LocaleData . > > > > thanks for any tips/help, > > > > -Pascal > > -- > > Homepage (http://organact.mine.nu) > > Debian GNU/Linux (http://www.debian.org) > > > > > -- Homepage (http://organact.mine.nu) Debian GNU/Linux (http://www.debian.org) _______________________________________________ gtk-perl-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-perl-list
