Jump to content

internationalization


vspravin

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.