gnome-specimen r60 - in branches/import-from-bzr: . po specimen



Author: wbolster
Date: Tue Jun 17 18:52:51 2008
New Revision: 60
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=60&view=rev

Log:
* Fix i18n stuff:
  - Get the interface to actucally show up localized
  - Make intltool not complain
  - Add translator-credits
  - Update Dutch translation


Added:
   branches/import-from-bzr/po/POTFILES.skip
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

Added: branches/import-from-bzr/po/POTFILES.skip
==============================================================================
--- (empty file)
+++ branches/import-from-bzr/po/POTFILES.skip	Tue Jun 17 18:52:51 2008
@@ -0,0 +1 @@
+data/gnome-specimen.desktop.in

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:51 2008
@@ -31,8 +31,12 @@
     from specimenwindow import SpecimenWindow
     import config
 
-    gettext.install (config.PACKAGE, config.LOCALEDIR)
-    gtk.glade.bindtextdomain (config.PACKAGE, config.LOCALEDIR)
+    gettext.bindtextdomain(config.PACKAGE, config.LOCALEDIR)
+    gettext.textdomain(config.PACKAGE)
+    locale.bindtextdomain(config.PACKAGE, config.LOCALEDIR)
+    locale.textdomain(config.PACKAGE)
+    gtk.glade.bindtextdomain(config.PACKAGE, config.LOCALEDIR)
+    gtk.glade.textdomain(config.PACKAGE)
 
     prog = gnome.program_init (config.PACKAGE, config.VERSION)
 

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:51 2008
@@ -587,7 +587,8 @@
             name = _('GNOME Specimen')
             comments = _('Preview and compare fonts')
             copyright = u'Copyright \u00A9 2006 Wouter Bolsterlee'
-            authors = ['Wouter Bolsterlee <wbolster gnome org>']
+            authors = ['Wouter Bolsterlee (wbolster gnome org)']
+            translators = _('translator-credits')
 
             self.about_dialog = gtk.AboutDialog()
             self.about_dialog.set_transient_for(self.window)
@@ -595,6 +596,7 @@
             self.about_dialog.set_comments(comments)
             self.about_dialog.set_copyright(copyright)
             self.about_dialog.set_authors(authors)
+            self.about_dialog.set_translator_credits(translators)
 
             # just hide the about_dialog after first usage
             self.about_dialog.connect('response', lambda widget, response: widget.hide())



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]