RSS/Atom feed Twitter
Site is read-only, email is disabled

Implementing gettext localization into GIMP plugin

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Implementing gettext localization into GIMP plugin Alessandro Francesconi 13 Oct 15:42
Alessandro Francesconi
2012-10-13 15:42:33 UTC (about 12 years ago)

Implementing gettext localization into GIMP plugin

Hello everyone, I’m trying to add l18n support into a widely used plugin for GIMP.

In few words, I followed the former way to add localization support using gettext, that’s the same system used by GIMP’s core.

So, I’ve converted all my localizable strings into _(”string-id”), then I’ve added the following rows before starting the plugin interface:

bindtextdomain (”plugin-name”, “./plugin-locale”); bind_textdomain_codeset (”plugin-name”, "UTF-8"); textdomain (”plugin-name”);

“plugin-locale” folder is structured in this way:

plugin-locale/

en/

LC_MESSAGES/

messages.po

it/

LC_MESSAGES/

messages.po

I get no errors while compiling, but all the strings remain untranslated.

Am I missing something? Thank you.

Ale