gettext - translating .po files

From: Date: Thu, 14 Aug 2003 11:29:43 +0000
Subject: gettext - translating .po files
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-605@lists.php.net to get a copy of this message
Hi, I'm trying to create multi-language web pages using 'gettext' with PHP but am stuck alittle. I've searched the web without joy so I thought I'd ask. My problem lies in between the .po and .mo files. After using xgettext to extract the text strings into a .po file I don't know exactly how to translate that 'english' text. How do I translate a .po file ? I sure I'm missing something simple. Here is a small example from a .po file: # page1.php:3 msgid "Hello this is a web page" msgstr "" I understand this is my base or root .po file ( messages.po is full name ). How do I go about translating the msgid string into the msgstr string ? So far my thinking is once I've translated the msgid strings into the msgid strings then I create my .mo ( messages.mo ) files. Is that correct ? Do I now need some other translating program so that I can actually turn the English text into other language text ? It feels like I'm missing one last tiny part to the puzzle. Once I've understand this last part I'll be the happiest web developer out there :-) Thanks very much. Cheers Rudi.

« previous php.i18n (#605) next »