commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r8328 - trunk/gnue-appserver/src


From: reinhard
Subject: [gnue] r8328 - trunk/gnue-appserver/src
Date: Mon, 3 Apr 2006 18:24:31 -0500 (CDT)

Author: reinhard
Date: 2006-03-31 15:27:47 -0600 (Fri, 31 Mar 2006)
New Revision: 8328

Modified:
   trunk/gnue-appserver/src/geasConfiguration.py
Log:
Use unicode for config option descriptions.


Modified: trunk/gnue-appserver/src/geasConfiguration.py
===================================================================
--- trunk/gnue-appserver/src/geasConfiguration.py       2006-03-31 21:27:33 UTC 
(rev 8327)
+++ trunk/gnue-appserver/src/geasConfiguration.py       2006-03-31 21:27:47 UTC 
(rev 8328)
@@ -24,7 +24,7 @@
 import os.path
 
 from gnue import paths
-from gnue.common.apps.i18n import translate as _        # for epydoc
+from gnue.common.apps.i18n import utranslate as u_      # for epydoc
 from gnue.common.formatting import GTypecast
 
 
@@ -32,88 +32,88 @@
 
   { 'Name'       : 'database',
     'Type'       : 'Setting',
-    'Comment'    : _("Depreciated: Name of the database connection appserver "
-                     "is using. Use connection instead."),
-    'Description': _("Depreciated: Name of the database connection appserver "
-                     "is using. Use connection instead."),
+    'Comment'    : u_("Depreciated: Name of the database connection appserver "
+                      "is using. Use connection instead."),
+    'Description': u_("Depreciated: Name of the database connection appserver "
+                      "is using. Use connection instead."),
     'Typecast'   : GTypecast.text,
     'Default'    : ''},
 
   { 'Name'       : 'connection',
     'Type'       : 'Setting',
-    'Comment'    : _("Name of the database connection appserver is using"),
-    'Description': _("Name of the database connection appserver is using"),
+    'Comment'    : u_("Name of the database connection appserver is using"),
+    'Description': u_("Name of the database connection appserver is using"),
     'Typecast'   : GTypecast.text,
     'Default'    : 'gnue' },
 
   { 'Name'       : 'rpctype',
     'Type'       : 'Setting',
-    'Comment'    : _('RPC Interface Type appserver is providing'),
-    'Description': _('RPC Interface Type appserver is providing'),
+    'Comment'    : u_('RPC Interface Type appserver is providing'),
+    'Description': u_('RPC Interface Type appserver is providing'),
     'Typecast'   : GTypecast.text,
     'Default'    : 'xmlrpc' },
 
   { 'Name'       : 'rpcport',
     'Type'       : 'Setting',
-    'Comment'    : _('Port (if needed) for RPC Interface'),
-    'Description': _('Port (if needed) for RPC Interface'),
+    'Comment'    : u_('Port (if needed) for RPC Interface'),
+    'Description': u_('Port (if needed) for RPC Interface'),
     'Typecast'   : GTypecast.whole,
     'Default'    : '8765' },
 
   { 'Name'       : 'allowed_hosts',
     'Type'       : 'Setting',
-    'Comment'    : _('Hosts which are allowed to access appserver'),
-    'Description': _('Hosts which are allowed to access appserver'),
+    'Comment'    : u_('Hosts which are allowed to access appserver'),
+    'Description': u_('Hosts which are allowed to access appserver'),
     'Typecast'   : GTypecast.text,
     'Default'    : '' },
 
   { 'Name'       : 'bindto',
     'Type'       : 'Setting',
-    'Comment'    : _('Hostname of the interface to bind services to'),
-    'Description': _('Hostname of the interface to bind services to'),
+    'Comment'    : u_('Hostname of the interface to bind services to'),
+    'Description': u_('Hostname of the interface to bind services to'),
     'Typecast'   : GTypecast.text,
     'Default'    : '' },
 
   { 'Name'       : 'null_first_asc',
     'Type'       : 'Setting',
-    'Comment'    : _('Null values appear first in ascending sort'),
-    'Description': _('Null values appear first in ascending sort'),
+    'Comment'    : u_('Null values appear first in ascending sort'),
+    'Description': u_('Null values appear first in ascending sort'),
     'Typecast'   : GTypecast.boolean,
     'Default'    : True },
 
   { 'Name'       : 'null_first_dsc',
     'Type'       : 'Setting',
-    'Comment'    : _('Null values appear first in descending sort'),
-    'Description': _('Null values appear first in descending sort'),
+    'Comment'    : u_('Null values appear first in descending sort'),
+    'Description': u_('Null values appear first in descending sort'),
     'Typecast'   : GTypecast.boolean,
     'Default'    : True },
 
   { 'Name'       : 'modulepath',
     'Type'       : 'Setting',
-    'Comment'    : _('Semicolon-separated list of paths to load modules from'),
-    'Description': _('Semicolon-separated list of paths to load modules from'),
+    'Comment'    : u_('Semicolon-separated list of paths to load modules 
from'),
+    'Description': u_('Semicolon-separated list of paths to load modules 
from'),
     'Typecast'   : GTypecast.text,
     'Default'    : os.path.join (paths.data, "share", "gnue", "appserver") },
 
   { 'Name'       : 'uuidtype',
     'Type'       : 'Setting',
-    'Comment'    : _("Type of UUID to use. Can be 'time' or 'random'"),
-    'Description': _("Type of UUID to use. Can be 'time' or 'random'"),
+    'Comment'    : u_("Type of UUID to use. Can be 'time' or 'random'"),
+    'Description': u_("Type of UUID to use. Can be 'time' or 'random'"),
     'Typecast'   : GTypecast.text,
     'Default'    : 'time' },
 
   { 'Name'       : 'httpdir',
     'Type'       : 'Setting',
-    'Comment'    : _('Directory for webfrontend http documents'),
-    'Description': _('Directory for webfrontend http documents'),
+    'Comment'    : u_('Directory for webfrontend http documents'),
+    'Description': u_('Directory for webfrontend http documents'),
     'Typecast'   : GTypecast.text,
     'Default'    : "/this_dir_shouldn't exist." }, # default should be 
overridden
   { 'Name'       : 'servertype',
     'Type'       : 'Setting',
-    'Comment'    : _("Type of the HTTP server to use. Can be 'threading' or " \
-                     "'forking'"),
-    'Description': _("Type of the HTTP server to use. Can be 'threading' or " \
-                     "'forking'"),
+    'Comment'    : u_("Type of the HTTP server to use. Can be 'threading' or " 
\
+                      "'forking'"),
+    'Description': u_("Type of the HTTP server to use. Can be 'threading' or " 
\
+                      "'forking'"),
     'Typecast'   : GTypecast.text,
     'Default'    : 'forking' },
 )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]