gnome-specimen r62 - in branches/import-from-bzr: . po specimen
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r62 - in branches/import-from-bzr: . po specimen
- Date: Tue, 17 Jun 2008 18:52:54 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:52:54 2008
New Revision: 62
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=62&view=rev
Log:
* Initialize i18n before import the SpecimenWindow class.
This fixes a non-translated string which is defined during
class definition.
* Marked missing strings for translation (color dialog)
* Updated Dutch translation
Modified:
branches/import-from-bzr/ (props changed)
branches/import-from-bzr/po/nl.po
branches/import-from-bzr/specimen/main.py
branches/import-from-bzr/specimen/specimenwindow.py
Modified: branches/import-from-bzr/specimen/main.py
==============================================================================
--- branches/import-from-bzr/specimen/main.py (original)
+++ branches/import-from-bzr/specimen/main.py Tue Jun 17 18:52:54 2008
@@ -28,7 +28,6 @@
import gtk.glade
import gnome
- from specimenwindow import SpecimenWindow
import config
gettext.bindtextdomain(config.PACKAGE, config.LOCALEDIR)
@@ -42,6 +41,7 @@
gtk.window_set_default_icon_name ("stock_font")
+ from specimenwindow import SpecimenWindow
w = SpecimenWindow()
try:
gtk.main ()
Modified: branches/import-from-bzr/specimen/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimen/specimenwindow.py (original)
+++ branches/import-from-bzr/specimen/specimenwindow.py Tue Jun 17 18:52:54 2008
@@ -451,7 +451,7 @@
except (AttributeError):
# Create the dialog
self.colors_dialog = gtk.Dialog(
- 'Change colors...',
+ _('Change colors...'),
self.window,
gtk.DIALOG_DESTROY_WITH_PARENT,
(gtk.STOCK_CLOSE, gtk.RESPONSE_CANCEL))
@@ -467,14 +467,14 @@
table.set_homogeneous(True)
# The widgets for the foreground color
- fglabel = gtk.Label('Foreground color:')
+ fglabel = gtk.Label(_('Foreground color:'))
fgchooser = gtk.ColorButton()
fgchooser.set_color(self.preview_fgcolor)
table.attach(fglabel, 0, 1, 0, 1)
table.attach(fgchooser, 1, 2, 0, 1)
# The widgets for the background color
- bglabel = gtk.Label('Background color:')
+ bglabel = gtk.Label(_('Background color:'))
bgchooser = gtk.ColorButton()
bgchooser.set_color(self.preview_bgcolor)
table.attach(bglabel, 0, 1, 1, 2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]