Re: I18N in Python plugin

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

 



I found this readme, that might help. http://developer.gimp.org/README.i18n

This is of interest for plug-in development

"

 Third-party plug-ins (plug-ins that are not distributed with GIMP)
 can't have their messages in the gimp-std-plugins textdomain.  We
 have therefore provided a mechanism that allows plug-ins to install
 their own message catalogs and tell GIMP to bind to that
 textdomain. This is necessary so that GIMP can correctly translate
 the menu paths the plug-in registers. Basically the plug-in has to
 call gimp_plugin_domain_add() or gimp_domain_plugin_add_with_path()
 before it registers any functions. Have a look at the script-fu
 plug-in to see how this is done in detail.
"

 Ragnar



On Thu, May 30, 2013 at 9:40 PM, Ragnar Brynjúlfsson <ragtag@xxxxxxxxxx>wrote:

> I was just going to ask the same question. I've started implementing this
> in my Gimp Book plug-in, following this
> http://wiki.maemo.org/Internationalize_a_Python_application guide, but
> haven't got it working yet, and have no idea what I'm doing wrong.
>
> What would be the correct way to go about translating a Python plug-in?
>
> Where do the .mo files, and how can I make sure my plug-in finds them?
>
> Cheers,
>
>   Ragnar
>
>
_______________________________________________
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