OSDN Git Service

i18n: Fix untranslatable string
authorJon Nordby <jononor@gmail.com>
Sun, 7 Feb 2010 13:41:01 +0000 (14:41 +0100)
committerJon Nordby <jononor@gmail.com>
Sun, 7 Feb 2010 13:45:38 +0000 (14:45 +0100)
https://gna.org/bugs/?15127
Also reordered imports and made a comment a docstring.

gui/colorselectionwindow.py

index cf0d0ea..f2df218 100644 (file)
@@ -7,18 +7,22 @@
 # (at your option) any later version.
 
 "select color window (GTK and an own window)"
+from gettext import gettext as _
+
 import gtk
+gdk = gtk.gdk
+
 import windowing
 from lib import helpers, mypaintlib
-gdk = gtk.gdk
 
-# GTK selector
+
 class Window(windowing.SubWindow):
+    """Window with the standard GTK color selector (triangle)."""
     def __init__(self, app):
         windowing.SubWindow.__init__(self, app)
         self.app.brush.settings_observers.append(self.brush_modified_cb)
 
-        self.set_title('Color')
+        self.set_title(_('Color'))
         self.connect('delete-event', self.app.hide_window_cb)
 
         vbox = gtk.VBox()