Author: reinhard
Date: 2006-03-30 15:49:15 -0600 (Thu, 30 Mar 2006)
New Revision: 8296

Modified:
   trunk/gnue-common/src/datasources/readgsd.py
Log:
Changed help texts to be translated to unicode.


Modified: trunk/gnue-common/src/datasources/readgsd.py
===================================================================
--- trunk/gnue-common/src/datasources/readgsd.py        2006-03-30 21:10:13 UTC 
(rev 8295)
+++ trunk/gnue-common/src/datasources/readgsd.py        2006-03-30 21:49:15 UTC 
(rev 8296)
@@ -123,7 +123,7 @@
   COMMAND = "readgsd"
   VERSION = "0.1.0"
   USAGE   = "%s file [, file, ...]" % GClientApp.GClientApp.USAGE
-  SUMMARY = _("Import GNUe Schema Definition files into a given connection")
+  SUMMARY = u_("Import GNUe Schema Definition files into a given connection")
 
 
   # ---------------------------------------------------------------------------
@@ -132,50 +132,51 @@
 
   def __init__ (self, connections = None):
 
-    self.addCommandOption ('connection', 'c', argument='connectionname',
+    self.addCommandOption ('connection', 'c', argument = u_('connectionname'),
         default = "gnue",
-        help = _("Use the connection <connectionname> for creating the 
schema"))
+        help = u_("Use the connection <connectionname> for creating the "
+                  "schema"))
 
-    self.addCommandOption ('output','o', argument='filename',
-        help = _("Also send the code for creating the schema to this file."))
+    self.addCommandOption ('output','o', argument = u('filename'),
+        help = u_("Also send the code for creating the schema to this file."))
 
     self.addCommandOption ('file-only', 'f', default = False,
-        help = _("If this flag is set, only code is sent to the output file "
-                 "and the schema is not created automatically."))
+        help = u_("If this flag is set, only code is sent to the output file "
+                  "and the schema is not created automatically."))
 
     self.addCommandOption ('mode', 'm', argument='both|schema|data',
         default = 'both',
-        help = _("Mode of operation. If mode is 'schema', only schema "
-                 "creation is done. If mode is 'data' only data integration "
-                 "is done."))
+        help = u_("Mode of operation. If mode is 'schema', only schema "
+                  "creation is done. If mode is 'data' only data integration "
+                  "is done."))
 
-    self.addCommandOption ('username', 'u', argument="user",
-        help = _("Set the username to connect to the database. If the "
-                 "database is to be created and no owner (--owner) is "
-                 "specified, this username will be it's owner."))
+    self.addCommandOption ('username', 'u', argument = u_("user"),
+        help = u_("Set the username to connect to the database. If the "
+                  "database is to be created and no owner (--owner) is "
+                  "specified, this username will be it's owner."))
 
-    self.addCommandOption ('password', 'p', argument="password",
-        help = _("Set the password to connect to the database."))
+    self.addCommandOption ('password', 'p', argument = u_("password"),
+        help = u_("Set the password to connect to the database."))
 
-    self.addCommandOption ('owner', 'O', argument="owner",
-        help = _("If the database is to be created this will be its owner."))
+    self.addCommandOption ('owner', 'O', argument = u_("owner"),
+        help = u_("If the database is to be created this will be its owner."))
 
-    self.addCommandOption ('ownerpassword', 'P', argument="ownerpwd",
-        help = _("If the database is to be created this will be the password "
-                 "used for the database owner."))
+    self.addCommandOption ('ownerpassword', 'P', argument = u_("ownerpwd"),
+        help = u_("If the database is to be created this will be the password "
+                  "used for the database owner."))
 
     self.addCommandOption ('createdb', 'd', default = False,
-        help = _("If this option is set, the database will be created before "
-                 "any schema creation is done. There must be an owner or a "
-                 "username "
-                 "either from the given connection-configuration or from the "
-                 "command line. This user becomes the owner of the database "
-                 "and will be implicitly created."))
+        help = u_("If this option is set, the database will be created before "
+                  "any schema creation is done. There must be an owner or a "
+                  "username "
+                  "either from the given connection-configuration or from the "
+                  "command line. This user becomes the owner of the database "
+                  "and will be implicitly created."))
 
     self.addCommandOption ('yes', 'y', default = False,
-        help = _("If this option is set, the program runs in batch-mode, "
-                 "which means all questions are answered with 'yes' "
-                 "automatically."))
+        help = u_("If this option is set, the program runs in batch-mode, "
+                  "which means all questions are answered with 'yes' "
+                  "automatically."))
 
     GClientApp.GClientApp.__init__ (self, connections, 'schema', {})
 



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to