Files
bongo/po
jonnylamb 67c91f6090 * Change l10n stuff in Dragonfly from labels to strings. This is all Alex Hixon's work.
* Alex also added a different gettext scheme to use the po/ system as opposed to the dragonfly.properties file.
* I have added a po2json script. This uses polib to take strings out of /po/bongo-web.pot and create a json file.
* Currently a few issues are here though:
  + src/www/js/JCal.js is commented out in po/POTFILES.bongo-web because it's creating errors of some charset or something when 'make update-pot' is called. This should be resolved shortly.
  + The po2json script is absolutely disgusting at the moment. It works, but the source is in need of a little cleanup. This should also be rather quick and easy to cut-down.
  + I have edited src/www/js/Gettext.js to use a different directory from what is desired. Ultimately, /l10n/$lang/LC_MESSAGES/dragonfly.js will be used, but at the moment, /l10n/$lang.js is being used. This is also another TODO thing..
  + It currently doesn't work. No joke. This is some JS-issue. However, it pretty much does work if you're using English because now that all gettext msgids are now strings, and not labels, DF falls back on them, and all is fine. There are just some warnings spaffed out on the logs and on the login screen.
  + I have just seen that I made a silly mistake in configure.ac. I'll fix that on the next commit, in a few seconds..
So, please do not try out this commit (or the next) unless your name is Alexander Hixon.
2007-07-13 10:57:11 +00:00
..
2007-07-06 00:38:16 +00:00

i18n in Bongo
=============

Small guide for i18n in Bongo:

bongo.pot contains the canonical source of translatable strings.
This can be updated with "make bongo.pot".

To make a new translation, make sure bongo.pot is up-to-date, and then
`msginit -o $lang.po` when in the po/ directory, where $lang is the
two-letter language code, Eg. fr, de, ru.. Note, that if no output
file is given, it will create a po file based on your locale setting.
Once you've created this file, translate each string as normal.

To update a .po file, simply execute "make update-po". This will update
bongo.pot, and then merge any new changes into all the po files.

To create the binary gmo files, simply call "make update-gmo". This will not
alter any pot or po file.

Note: See also http://bongo-project.org/Guides/Translating_Bongo

 -- Jonny Lamb <jonnylamb@jonnylamb.com>  Thu, 05 Jul 2007 21:42:33 +0100