Re: [Tracker] [PATCH] po



Il giorno ven, 02/03/2007 alle 02.11 +0100, Michael Biebl ha scritto:
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);

Michael, I'm not so much confidant with library localization, but from
[1]

        For use in a library, must include glib/gi18n-lib.h after
        defining the GETTEXT_PACKAGE macro suitably for your library:
        
        #define GETTEXT_PACKAGE "gtk20"
        #include <glib/gi18n-lib.h>

I'm going to merge your patch with this info..

[1] http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]