[sabayon] Fixed some unclear strings for the translators. Bug #527722



commit ee5ab34c2effd37f8c57b3d6bc0acb6019d478bd
Author: Scott Balneaves <sbalneav ltsp org>
Date:   Sat Dec 19 23:50:30 2009 -0600

    Fixed some unclear strings for the translators.  Bug #527722

 lib/systemdb.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/lib/systemdb.py b/lib/systemdb.py
index 28b85de..323c988 100644
--- a/lib/systemdb.py
+++ b/lib/systemdb.py
@@ -229,13 +229,13 @@ class SystemDatabase(object):
         multiple_result = get_setting (map_node, "multiple_result", "first")
 
         if search_base == None:
-            raise SystemDatabaseException(_("No search base specified for %s"%map))
+            raise SystemDatabaseException(_("No LDAP search base specified for %s" % map))
             
         if query_filter == None:
-            raise SystemDatabaseException(_("No query filter specified for %s"%map))
+            raise SystemDatabaseException(_("No LDAP query filter specified for %s" % map))
             
         if result_attribute == None:
-            raise SystemDatabaseException(_("No result attribute specified for %s"%map))
+            raise SystemDatabaseException(_("No LDAP result attribute specified for %s" % map))
 
         if scope == "sub":
             scope = ldap.SCOPE_SUBTREE
@@ -244,7 +244,8 @@ class SystemDatabase(object):
         elif scope == "one":
             scope = ldap.SCOPE_ONELEVEL
         else:
-            raise SystemDatabaseException(_("Scope must be one of sub, base and one"))
+            raise SystemDatabaseException(_("LDAP Scope must be one of: ") +
+                    "sub, base, one"))
         
         query_filter = expand_string (query_filter, replace)
         search_base = expand_string (search_base, replace)
@@ -264,7 +265,8 @@ class SystemDatabase(object):
         elif multiple_result == "random":
             val = vals[random.randint(0, len(vals)-1)]
         else:
-            raise SystemDatabaseException(_("multiple_result must be one of first and random"))
+            raise SystemDatabaseException(_("multiple_result must be one of: ")
+                + "first, random")
 
         l.unbind ()
         



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