Hi all,
well iam also working on internationalization...but having some problems with using the gettext utility. could u guide how u created the .mo files
i'll enumerate the steps that i have used to create the translation files.
used the command line utility: xgettext to create a .po file.This file(messages.po) contains the original string with no corresponding translated string
then i replaced the default value of charset to 'UTF-8' and renamed this .po file to .pot file following the instructions in the gettext utilities manual
used the msginit command line utility to create the lang.po file, but for some reason the corresponding translated string still does not appear in the target language.
[ul]Note: I am getting following error while using msginit command line utility:
C:\gettext-tools-0.13.1.bin.woe32\bin>msginit -i messages.pot -o french.po -l fr
_FR
msginit: C:\gettext-tools-0.13.1.bin.woe32\lib/gettext/project-id subprocess fai
led: Bad file descriptor
msginit: C:\gettext-tools-0.13.1.bin.woe32\lib/gettext/user-email subprocess fai
led: Bad file descriptor
msginit: C:\gettext-tools-0.13.1.bin.woe32\share\gettext\projects/team-address s
ubprocess failed: Bad file descriptor
msginit: C:\gettext-tools-0.13.1.bin.woe32\lib/gettext/project-id subprocess fai
led: Bad file descriptor
Created french.po.
[/ul]
and finally used the command line utility: msgmerge to create .po file merged from lang.po and messages.pot file
then used the msgfmt utility to create the .mo file
please help me as iam stuck on this from yesterday...
thanks....
regards,
Pravin.