[Gforge-devel] Switched to gettext
Robert Nelson
robertn at the-nelsons.org
Thu Mar 15 02:08:45 EDT 2007
> -----Original Message-----
> From: gforge-devel-bounces at lists.gforge.org [mailto:gforge-devel-
> bounces at lists.gforge.org] On Behalf Of Roland Mas
> Sent: Tuesday, March 13, 2007 1:26 PM
> To: gforge-devel at lists.gforge.org
> Subject: [Gforge-devel] Switched to gettext
>
> - When the translators have done their job, and sent updated *.po
> files, run ../tools/make-mo.sh, which will regenerate the
> locales/xx/LC_MESSAGES/gforge.mo files. These files should be
> installed into /usr/share/locale/xx/LC_MESSAGS/gforge.mo, so that
> gettext finds them (if that path is liable to change -- although I
> doubt it, it seems pretty standard across Linux distros --
> BaseLanguage.class should be updated accordingly).
>
Chris and I have been working on removing hardcoded paths from GForge so
that it can be installed on systems without root access. Do you mind if I
change this hardcoded path to a local.inc variable called $sys_locale_path?
>
> Plugins hosted in the gforge.org SVN trunk are internationalised the
> same as the rest of the core code. For external plugins, the
> procedure will be slightly more complex. Since they can't depend on
> their strings being present in the main catalog, they'll need to use
> another "domain". In other words, they won't be able to simply use
> _("foo bar"), but they'll have to use the longer
> dgettext("gforge-plugin-foobar", "foo bar") instead; also, they'll
> need to provide gforge-plugin-foobar.mo files and declare that gettext
> domain around the initialisation time of the plugin. I guess I'll try
> and code that on an "external" plugin.
>
If you decide to put their language files in a different directory, can you
also make it a variable rather than a hardcoded path?
> I've built Debian packages out of this current state, and they do
> seem to work as expected. The remaining work is to finish the
> transition by working on the difficult cases.
>
> Hope you'll like it!
>
> Roland.
> --
> Roland Mas
>
> If you spit in the air, it lands in your face.
> -- Tevye, in Fiddler on the roof
> _______________________________________________
> Gforge-devel mailing list
> Gforge-devel at lists.gforge.org
> http://lists.gforge.org/mailman/listinfo/gforge-devel
More information about the Gforge-devel
mailing list