Discussion:
how to generate .mo file
K3
2009-03-13 14:04:25 UTC
Permalink
Hi

i am using i18n/l10n within cake application and everything works ok.
however, when i add some new text in ctp.files i need to rebuild
the .po/.mo files using bake script and .po editor.

What i would like to do is to allow the client to change msgid and
msgstr in the .po file and geneerate .mo file. This way they can
update translation withouth asking me to change .po/.mo files manualy.
While .po file is plain text and its easy to update it, i coudlnt find
a way to generate .mo file from updated .po file.

I googled and found one resource(http://savannah.nongnu.org/support/?
106083) but it didnt seem to work. Maybe it is outdated (last version
is more than 3 years old). So i am asking if someone has or knows some
resource that can help me.

thanks in advance.
Alexandru Ciobanu
2009-03-13 19:28:01 UTC
Permalink
Post by K3
What i would like to do is to allow the client to change msgid and
msgstr in the .po file and geneerate .mo file. This way they can
update translation withouth asking me to change .po/.mo files manualy.
While .po file is plain text and its easy to update it, i coudlnt find
a way to generate .mo file from updated .po file.
Hi K3,

If you're hosting on a GNU/Linux server you can install gettext and use
something like:

exec('/path/to/msgfmt /path/to/input/default.po -o
/path/to/output/default.mo');

I did not actually tried this, but it should work.

Continue reading on narkive:
Loading...