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: Tue, 4 Jun 2013 13:36:04 +0200
I've added i18n/gettext support to my plug-in over the weekend. I don't
know if it's completely correct, but it does work. :)
You can get it from here http://ragnarb.com/toolbox/gimp-book/ and have a
look at the code.
The translation code is at the beginning of booy.py, and each string to be
translated is simply wrapped like this _("string here"). There is a ReadMe
file in the locale folder, plus some helper shell scripts for setting up
the different languages, you can look at.
Hope that helps.
Cheers,
Ragnar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]