vspravin Posted November 15, 2007 Share Posted November 15, 2007 Hi all, I am working on implementing internationalization.....googled on this issue and got some help with regards the i18n.php script.But the problem is that this script uses the GNU "gettext" utility for translation purpose. I have installed php v5.2.5 with apache 2.2.6 on a WinXp SP2 OS. Could anyone amongst u guide me if there is a windows equivalent of the gettext utility that could be installed on the WinXP system? Timely help is appreciated.. Thanks, Pravin Sreedharan. Quote Link to comment Share on other sites More sharing options...
vspravin Posted November 16, 2007 Author Share Posted November 16, 2007 hi all, sorry guys i got the windows equivalent of gettext utility from sourceforge.net....but i have a problem here...this gettext utility is not properly creating the translation files in the specified target language...please help...it's urgent.... ??? thanx... pravin. Quote Link to comment Share on other sites More sharing options...
vspravin Posted November 16, 2007 Author Share Posted November 16, 2007 hi all, sorry guys i got the windows equivalent of gettext utility from sourceforge.net....but i have a problem here...this gettext utility is not properly creating the translation files in the specified target language...please help...it's urgent.... ??? thanx... pravin. 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.