From: D. <be...@pl...> - 2007-06-18 15:24:33
|
Le dimanche 17 juin 2007 =C3=A0 19:06 -0400, Zurd a =C3=A9crit : > So, GPRename with gettext is almost there. I finally read enough > about it to understand it : > http://cpan.uwinnipeg.ca/htdocs/gettext/README.html > http://en.wikipedia.org/wiki/Gettext Great ! > I just commited the new revision, I changed the Makefile, gprename, > deleted the languages directory and created a new one called locale. > All the .po and .mo file will have to be created, but first I'm > just trying to make one work. .mo are not be shipped within sources. They are generated files, just like a .c produces a .o, a .po is compiled into a .mo / .gmo. > I created a .pot file with xgettext, then convert it to a .po file > with msginit --locale=3Dfr then convert it again to a .mo file with > msgfmt but even calling 'LANG=3Dfr gprename', the program still shows > only english text. I just touched like the first 3 messages to test > like File to Fichier, but it's really still showing File. > Any help on this would be appreciated. You don't need to init anything or provide a .pot. Just "cd po && intltool-update fr" will output/update a fr.po file. Cyprien and i could help you but we haven't find the right SVN checkout URI yet. I will eventually be interested into UI polishing. > *note1 : in the Makefile only locale/fr/gprename.mo will be copied, > I commented the others, I just want one to work before converting > all the others language files. I have not tested Cyprien's patch but i've told him that the setlocale call looked wrong to me. As perldoc says, setlocale(LC_MESSAGES, ""); is enough (just like in C) There's no need to mess with any env variables. Cheers --=20 Beno=C3=AEt Dejean GNOME http://www.gnomefr.org/ LibGTop http://directory.fsf.org/libgtop.html |