Author: reinhard
Date: 2009-02-24 06:40:49 -0600 (Tue, 24 Feb 2009)
New Revision: 9909
Modified:
trunk/gnue-common/src/apps/GBaseApp.py
trunk/gnue-forms/src/GFClient.py
trunk/gnue-reports/src/client/GRRun.py
trunk/gnue-reports/src/tools/ReportPostProcessor.py
Log:
Fixed some missing _() about strings that actually should be translatable.
Thanks to Gustavo A. Corradi.
Modified: trunk/gnue-common/src/apps/GBaseApp.py
===================================================================
--- trunk/gnue-common/src/apps/GBaseApp.py 2009-02-19 14:50:28 UTC (rev 9908)
+++ trunk/gnue-common/src/apps/GBaseApp.py 2009-02-24 12:40:49 UTC (rev 9909)
@@ -40,7 +40,8 @@
from gnue import paths
from gnue.common.base import log
-from gnue.common.apps import i18n, errors, GConfig, GDebug
+from gnue.common.apps.i18n import utranslate as u_
+from gnue.common.apps import errors, GConfig, GDebug
from gnue.common.datasources import GConnections
from gnue.common.apps.CommandOption import CommandOption
@@ -88,7 +89,7 @@
# GNUe-Common
AUTHOR = "GNU Enterprise Project"
EMAIL = "[email protected]"
- REPORT_BUGS_TO = "Please report any bugs to [email protected]."
+ REPORT_BUGS_TO = u_("Please report any bugs to [email protected].")
CONFIGFILE = "gnue.conf"
Modified: trunk/gnue-forms/src/GFClient.py
===================================================================
--- trunk/gnue-forms/src/GFClient.py 2009-02-19 14:50:28 UTC (rev 9908)
+++ trunk/gnue-forms/src/GFClient.py 2009-02-24 12:40:49 UTC (rev 9909)
@@ -223,12 +223,12 @@
print self.buildHelpOptions ("ui")
# TODO: This should be automated
- print "Available user interfaces:"
- print " wx wxPython-based graphical interface"
- print " gtk2 GTK2-based graphical interface"
- print " qt3 QT3-based graphical interface"
- print " win32 Native Windows graphical interface"
- print " curses Text-based interface that uses ncurses"
+ print _("Available user interfaces:")
+ print _(" wx wxPython-based graphical interface")
+ print _(" gtk2 GTK2-based graphical interface")
+ print _(" qt3 QT3-based graphical interface")
+ print _(" win32 Native Windows graphical interface")
+ print _(" curses Text-based interface that uses ncurses")
self.printHelpFooter ()
sys.exit ()
Modified: trunk/gnue-reports/src/client/GRRun.py
===================================================================
--- trunk/gnue-reports/src/client/GRRun.py 2009-02-19 14:50:28 UTC (rev 9908)
+++ trunk/gnue-reports/src/client/GRRun.py 2009-02-24 12:40:49 UTC (rev 9909)
@@ -157,7 +157,7 @@
try:
reportfile = self.ARGUMENTS[0]
except:
- self.handleStartupError ("No Report Definition File Specified.")
+ self.handleStartupError (u("No Report Definition File Specified."))
# ...list available filters?
if self.OPTIONS["list_filters"]:
Modified: trunk/gnue-reports/src/tools/ReportPostProcessor.py
===================================================================
--- trunk/gnue-reports/src/tools/ReportPostProcessor.py 2009-02-19 14:50:28 UTC (rev 9908)
+++ trunk/gnue-reports/src/tools/ReportPostProcessor.py 2009-02-24 12:40:49 UTC (rev 9909)
@@ -96,12 +96,12 @@
try:
reportfile = self.ARGUMENTS[0]
except:
- self.handleStartupError ("No Report Definition File Specified.")
+ self.handleStartupError (u_("No Report Definition File Specified."))
try:
filter = self.ARGUMENTS[1]
except:
- self.handleStartupError ("No Filter Specified.")
+ self.handleStartupError (u_("No Filter Specified."))
destination = self.OPTIONS["destination"]
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.