mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
plug-ins/pygimp/gimpfu.py let the gettext module
2006-09-16 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/gimpfu.py * plug-ins/pygimp/plug-ins/gtkcons.py: let the gettext module * po-python/POTFILES.in * plug-ins/pygimp/gimpui.py: Mark a couple strings for translation here.
This commit is contained in:
parent
334f160ea3
commit
a7402fdcbd
|
@ -1,3 +1,12 @@
|
|||
2006-09-16 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/gimpfu.py
|
||||
* plug-ins/pygimp/plug-ins/gtkcons.py: let the gettext module
|
||||
|
||||
* po-python/POTFILES.in
|
||||
* plug-ins/pygimp/gimpui.py: Mark a couple strings for translation
|
||||
here.
|
||||
|
||||
2006-09-16 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimpperspectiveclonetool.c (button_press)
|
||||
|
|
|
@ -67,7 +67,7 @@ from gimpenums import *
|
|||
pdb = gimp.pdb
|
||||
|
||||
import gettext
|
||||
t = gettext.translation('gimp20-python', gimp.locale_directory)
|
||||
t = gettext.translation('gimp20-python', gimp.locale_directory, fallback=True)
|
||||
_ = t.ugettext
|
||||
|
||||
class error(RuntimeError):pass
|
||||
|
|
|
@ -35,6 +35,10 @@ import gtk, gobject, gimp, gimpcolor
|
|||
|
||||
from _gimpui import *
|
||||
|
||||
import gettext
|
||||
t = gettext.translation('gimp20-python', gimp.locale_directory, fallback=True)
|
||||
_ = t.ugettext
|
||||
|
||||
def _callbackWrapper(menu_item, callback, data):
|
||||
callback(menu_item.get_data("Gimp-ID"), data)
|
||||
|
||||
|
@ -146,7 +150,7 @@ class ColorSelector(ColorButton):
|
|||
color = default
|
||||
elif isinstance(default, tuple):
|
||||
color = apply(gimpcolor.RGB, default)
|
||||
ColorButton.__init__(self, "Python-Fu Color Selection", 100, 20,
|
||||
ColorButton.__init__(self, _("Python-Fu Color Selection"), 100, 20,
|
||||
color, COLOR_AREA_FLAT)
|
||||
def get_value(self):
|
||||
return self.get_color();
|
||||
|
@ -193,7 +197,7 @@ class FontSelector(FontSelectButton):
|
|||
|
||||
class FileSelector(gtk.FileChooserButton):
|
||||
def __init__(self, default=""):
|
||||
gtk.FileChooserButton.__init__(self, "Python-Fu File Selection")
|
||||
gtk.FileChooserButton.__init__(self, _("Python-Fu File Selection"))
|
||||
if default:
|
||||
self.set_filename(default)
|
||||
def get_value(self):
|
||||
|
|
|
@ -36,7 +36,7 @@ import gtk, pango
|
|||
|
||||
from gimp import locale_directory
|
||||
import gettext
|
||||
t = gettext.translation('gimp20-python', locale_directory)
|
||||
t = gettext.translation('gimp20-python', locale_directory, fallback=True)
|
||||
_ = t.ugettext
|
||||
|
||||
stdout = sys.stdout
|
||||
|
|
Loading…
Reference in a new issue