Re: [Gimp-developer] I18N in Python plugin
- From: Ragnar Brynjúlfsson <ragtag ragtag net>
- To: GIMP Developer <gimp-developer-list gnome org>
- Subject: Re: [Gimp-developer] I18N in Python plugin
- Date: Sun, 2 Jun 2013 00:22:12 +0200
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 ragtag net>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
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]