2007/3/2, Neil Jagdish Patel <neiljpatel yahoo co uk>:
On Fri, 2007-03-02 at 00:40 +0100, Michael Biebl wrote: > 2007/3/2, Neil Jagdish Patel <neiljpatel yahoo co uk>: > > We also need localisation in libtracker-gtk, if possible. ATM I have a > > #define _(obj) obj in the sources, for a clean compile. > > I'll prepare a patch for that. > Excellant, thank you.
This patch adds i18n support for libtracker-gtk. To actually make the strings available for translators, jamie has to run "make update-po" or "intl-update -r" in po/. This should only be done though when the strings for a release are freezed. You can find an excellent tutorial at [1] What's missing in this patch, are the calls to bindtextdomain (GETTEXT_PACKAGE, SLICELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); inside libtracker-gtk. We would need an init function inside libtracker-gtk; the best one that comes close to that is tracker_metadata_tile_new. Atm it doesn't matter, as the applications using libtracker-gtk are calling the necessary gettext init functions themselves. It will become necessary though, as soon as 3rd party apps (with a different gettext domain) start using libtracker-gtk. Cheers, Michael [1] http://www.gnome.org/~malcolm/i18n/index.html
Attachment:
po.patch
Description: Text Data