[pitivi] check: Fix messages so they are translatable



commit b29e19607368dd04ca7fd9a4db812b5b7b8d1f93
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Feb 14 02:40:55 2014 +0100

    check: Fix messages so they are translatable

 pitivi/check.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 689f5bd..c3d5112 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -92,12 +92,13 @@ class Dependency(object):
         if self.satisfied:
             return ""
 
-        message = "- " + self.modulename + " "
         if not self.component:
-            message += _("not found on the system")
+            # Translators: %s is a Python module name or another os component
+            message = "- %s not found on the system" % self.modulename
         else:
-            message += self.version_installed + _(" is installed but ") +\
-                self.version_required_string + _(" is required")
+            # Translators: %s is a Python module name or another os component
+            message = "- %s version %s is installed but Pitivi requires at least version %s" % (
+                self.modulename, self.version_installed, self.version_required_string)
 
         if self.additional_message is not None:
             message += "\n    -> " + self.additional_message
@@ -210,7 +211,7 @@ def check_requirements():
         dependency.check()
         if not dependency.satisfied:
             if hard_dependencies_satisfied:
-                print _("\nERROR - The following hard dependencies are unmet:")
+                print _("ERROR - The following hard dependencies are unmet:")
                 print "=================================================="
             print dependency
             hard_dependencies_satisfied = False


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