commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r10087 - trunk/gnue-reports/src/client


From: reinhard
Subject: [gnue] r10087 - trunk/gnue-reports/src/client
Date: Sat, 5 Dec 2009 13:38:27 -0600 (CST)

Author: reinhard
Date: 2009-12-05 13:38:27 -0600 (Sat, 05 Dec 2009)
New Revision: 10087

Modified:
   trunk/gnue-reports/src/client/GRRun.py
Log:
Unicode fixes.


Modified: trunk/gnue-reports/src/client/GRRun.py
===================================================================
--- trunk/gnue-reports/src/client/GRRun.py      2009-12-05 19:30:46 UTC (rev 
10086)
+++ trunk/gnue-reports/src/client/GRRun.py      2009-12-05 19:38:27 UTC (rev 
10087)
@@ -30,6 +30,7 @@
 
 from gnue.reports import VERSION
 from gnue.common.apps import GDebug
+from gnue.common.apps.i18n import utranslate as u_
 from gnue.common.apps.GClientApp import GClientApp
 from gnue.common.rpc import client
 from gnue.reports.base.GREngine import GREngine
@@ -62,7 +63,7 @@
   NAME = "GNUe Reports Client"
   USAGE = "%s file [param1=val] [param2=val] ..." % GClientApp.USAGE
   SUMMARY = \
-      _("GNUe Reports is the primary reporting agent of the GNU Enterprise 
system.")
+      u_("GNUe Reports is the primary reporting agent of the GNU Enterprise 
system.")
   USE_DATABASE_OPTIONS = True
 
   #
@@ -71,7 +72,7 @@
   def __init__(self):
     self.addCommandOption ('destination', 'd', 'destination',
         argument = 'dest',
-        help = _("Where should the report be output to?  The value of this "
+        help = u_("Where should the report be output to?  The value of this "
             "depends on the destination type (e.g., if sending to printer, "
             "then -d specifies the printer name; if sending via email, then "
             "-d specifies the email address.) If <dest> is \"-\", then output 
is "
@@ -82,7 +83,7 @@
 
     self.addCommandOption ('destination_type', 'D', 'destination-type',
         argument = 'type',
-        help = _("This specifies how the report should be output. The 
currently "
+        help = u_("This specifies how the report should be output. The 
currently "
             "supported values for <type> are file [default], printer, email, "
             "and fax. Note that printer, email, and fax are sent via the "
             "server\'s machine, not the client\'s machine.  To "
@@ -90,55 +91,55 @@
 
     self.addCommandOption ('destination_options', None, 'destination-options',
         argument = 'opts',
-        help = _("Options to pass to the destination process. Available 
options are "
+        help = u_("Options to pass to the destination process. Available 
options are "
             "specific to the type of destination. "
             "Example: \'--destination-options \"-o nobanner\" \'"))
 
     self.addCommandOption ('filter', 'f', 'filter',
         argument = 'filt',
-        help = _("Select the filter to be used to process report output.  
<filt> "
+        help = u_("Select the filter to be used to process report output.  
<filt> "
             "is the name of the filtering process as defined on the Report "
             "Server machine. If not specified, the \"raw\" filter is used "
             "(i.e., no filtering takes place.)"))
 
     self.addCommandOption ('list_filters', None, 'list-filters',
-        help = _("List the available [predefined] filters available to GNUe 
Reports"))
+        help = u_("List the available [predefined] filters available to GNUe 
Reports"))
 
     self.addCommandOption ('filter_options', 'F', 'filter-options',
         argument = 'opts',
-        help = _("Options to pass to the filter process. Available options are 
"
+        help = u_("Options to pass to the filter process. Available options 
are "
             "specific to the filter.  --list-filters will list available 
filters "
             "and their options.  Example: \'--filter-options \"paper=letter 
margin=1,1,1,1\" \'"))
 
     self.addCommandOption ('sortoption', 's', 'sort',
         argument = 'sort', default='',
-        help = _("Select the \"sort-option\" used to sort the report."))
+        help = u_("Select the \"sort-option\" used to sort the report."))
 
     self.addCommandOption ('batch', 'b', 'batch',
-        help = _("Run GNUe Reports in batch mode -- i.e., no login information 
or "
+        help = u_("Run GNUe Reports in batch mode -- i.e., no login 
information or "
             "runtime parameters will be prompted.  If required parameters are "
             "not provided, then Reports will terminate with an error"))
 
     self.addCommandOption ('quiet', 'q', 'quiet',
-        help = _("Run GNUe Reports in quiet mode -- i.e., display no output. "
+        help = u_("Run GNUe Reports in quiet mode -- i.e., display no output. "
             "NOTE: if --debug-level is specified, then suppressed text will "
             "be output as debugging information (at debug level 1)"))
 
     self.addCommandOption ('ui', 'u', 'interface',
         argument = 'ui', default = 'text',
-        help = _("Run GNUe Reports using a specific UI.  Possible UIs are 
text, wx, gtk2, win32, qt and curses."))
+        help = u_("Run GNUe Reports using a specific UI.  Possible UIs are 
text, wx, gtk2, win32, qt and curses."))
 
     self.addCommandOption ('comment', 'C', 'comment',
-        help = _("Include structural comments in the XML output stream. "
+        help = u_("Include structural comments in the XML output stream. "
             "Useful for debugging .grd files."))
 
     self.addCommandOption ('standalone', 'S', 'standalone',
-        help = _("Create a standalone, single-use server instance.  Use this 
option in a "
+        help = u_("Create a standalone, single-use server instance.  Use this 
option in a "
             "non-client/server environment or in a debugging/development 
environment. "
             "NOTE: Until the Reports Server is mature this flag has the 
opposite meaning"))
 
     self.addCommandOption ('exclude_xml', 'X', 'exclude-xml',
-        help = _("Do not output GNUe Report''s runtime XML markup information. 
 If specified, "
+        help = u_("Do not output GNUe Report''s runtime XML markup 
information.  If specified, "
             "then the GRD's layout section will be processed and output "
             "as-is; i.e., without any additional information added by "
             "GNUe Reports."))





reply via email to

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