note 28511 added to ref.gettext
| From: | yledoare at free dot fr | Date: | Wed, 15 Jan 2003 13:32:00 +0000 |
| Subject: | note 28511 added to ref.gettext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42177@lists.php.net to get a copy of this message | ||
Corrections to "hace_x at yahoo dot com" message.
Note : The backslash have been removed in the greetings.po sample code (before the n characters at
end of lines).
Same thing for ".includestranslations" to move into "./includes/translations" in
php sample.
I used mingw (http://www.mingw.org) with gettext package (http://sourceforge.net/projects/mingwrep)
to make it work under WinXp.
I uncoment also "extension=php_gettext.dll" in php.ini (I am using easy php 1.6.0.0)
Here is my conv.bat to generate french translation :
set path=c:\mingw\bin
msgfmt -v -o greetings.mo greetings.po
pause
That's all !
Yann Le Doaré, Brest, France
--
http://www.php.net/manual/en/ref.gettext.php
http://master.php.net/manage/user-notes.php?action=edit+28511
http://master.php.net/manage/user-notes.php?action=delete+28511
http://master.php.net/manage/user-notes.php?action=reject+28511