Implementing gettext localization into GIMP plugin

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

 



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-base-dir>
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
 
_______________________________________________
gimp-developer-list mailing list
gimp-developer-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gimp-developer-list

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux