From: Marvin S. <ma...@de...> - 2007-06-18 16:35:46
|
On Monday 18 June 2007 10:35, Beno=EEt Dejean wrote: > Le dimanche 17 juin 2007 =E0 19:06 -0400, Zurd a =E9crit : > > 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. svn co https://gprename.svn.sourceforge.net/svnroot/gprename gprename > > > *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 Regards, =2D-=20 .""`. Marvin Stark <ma...@de...> : :" : Homepage: www.der-marv.de `. `"` `- Debian - when you have better things to do than fix a system |