[postr] Make missing strings translatable (#601037)



commit af2a86ba2ee16b983d038c3e0da592ce48fa33ce
Author: Francisco Rojas <frojas alumnos utalca cl>
Date:   Sun Nov 8 03:12:28 2009 -0300

    Make missing strings translatable (#601037)
    
    Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>

 src/ErrorDialog.py |    2 +-
 src/postr.py       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ErrorDialog.py b/src/ErrorDialog.py
index 1f72dd2..b929970 100644
--- a/src/ErrorDialog.py
+++ b/src/ErrorDialog.py
@@ -23,7 +23,7 @@ class ErrorDialog(gtk.MessageDialog):
                                    type=gtk.MESSAGE_ERROR,
                                    buttons=gtk.BUTTONS_OK,
                                    parent=parent,
-                                   message_format="An error occurred")
+                                   message_format=_("An error occurred"))
         self.connect("response", lambda dialog, response: dialog.destroy())
 
     def set_from_failure (self, failure):
diff --git a/src/postr.py b/src/postr.py
index 188b663..a3b3993 100644
--- a/src/postr.py
+++ b/src/postr.py
@@ -633,13 +633,13 @@ class Postr(UniqueApp):
             filesize = os.path.getsize(filename)
         except os.error:
             d = ErrorDialog(self.window)
-            d.set_from_string("File at %s does not exist or is currently inaccessible." % filename)
+            d.set_from_string(_("File at %s does not exist or is currently inaccessible.") % filename)
             d.show_all()
             return
 
         if filesize > self.statusbar.maxfile * 1024 * 1024:
             d = ErrorDialog(self.window)
-            d.set_from_string("Image %s is too large, images must be no larger than %dMB in size." % (filename, self.statusbar.maxfile))
+            d.set_from_string(_("Image %s is too large, images must be no larger than %dMB in size.") % (filename, self.statusbar.maxfile))
             d.show_all()
             return
         



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