Author: reinhard
Date: 2006-03-31 12:00:18 -0600 (Fri, 31 Mar 2006)
New Revision: 8320
Modified:
trunk/gnue-common/src/rpc/RpcDoc.py
trunk/gnue-common/src/rpc/drivers/xmlrpc/RpcDoc.py
Log:
Changed last occurances of _() in common to u_() so we can head towards a
unicode-clean code.
Modified: trunk/gnue-common/src/rpc/RpcDoc.py
===================================================================
--- trunk/gnue-common/src/rpc/RpcDoc.py 2006-03-31 17:57:49 UTC (rev 8319)
+++ trunk/gnue-common/src/rpc/RpcDoc.py 2006-03-31 18:00:18 UTC (rev 8320)
@@ -40,7 +40,7 @@
commdriver = dyn_import("gnue.common.rpc.drivers.%s.RpcDoc" % (interface))
commdriver.doc(sys.stdout,command, *arguments)
except ImportError, err:
- print _("GNUe RPC Documentation Generator")
+ print o(u_("GNUe RPC Documentation Generator"))
print ""
print o(u_("Error: the module %s does not exist or cannot be loaded") % \
(interface))
Modified: trunk/gnue-common/src/rpc/drivers/xmlrpc/RpcDoc.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/xmlrpc/RpcDoc.py 2006-03-31 17:57:49 UTC
(rev 8319)
+++ trunk/gnue-common/src/rpc/drivers/xmlrpc/RpcDoc.py 2006-03-31 18:00:18 UTC
(rev 8320)
@@ -66,7 +66,7 @@
rpcdef = server.loadDefinition(arguments[0])
except IndexError:
- print _("'doc' command expects a .grpc file as its argument.")
+ print o(u_("'doc' command expects a .grpc file as its argument."))
sys.exit()
gendoc(rpcdef, outfile)
@@ -77,7 +77,7 @@
rpcdef = server.loadDefinition(arguments[0])
except IndexError:
- print _("'doc' command expects a .grpc file as its argument.")
+ print o(u_("'doc' command expects a .grpc file as its argument."))
sys.exit()
gendocPy(rpcdef, outfile)
@@ -88,7 +88,7 @@
rpcdef = server.loadDefinition(arguments[0])
except IndexError:
- print _("'doc' command expects a .grpc file as its argument.")
+ print o(u_("'doc' command expects a .grpc file as its argument."))
sys.exit()
gendocC(rpcdef, outfile)
@@ -99,7 +99,7 @@
rpcdef = server.loadDefinition(arguments[0])
except IndexError:
- print _("'doc-php' command expects a .grpc file as its argument.")
+ print o(u_("'doc-php' command expects a .grpc file as its argument."))
sys.exit()
gendocPHP(rpcdef, outfile)
@@ -110,7 +110,7 @@
rpcdef = server.loadDefinition(arguments[0])
except IndexError:
- print _("'js-stub' command expects a .grpc file as its argument.")
+ print o(u_("'js-stub' command expects a .grpc file as its argument."))
sys.exit()
gendocJS(rpcdef, outfile)
@@ -408,8 +408,8 @@
if __name__ == '__main__':
if len(sys.argv)<2:
- print _("RpcDoc.py has to be called with an command argument. ")
- print _("call 'RpcDoc.py help' for more information.")
+ print o(u_("RpcDoc.py has to be called with an command argument. "))
+ print o(u_("call 'RpcDoc.py help' for more information."))
else:
doc(sys.stdout, *sys.argv[1:])
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue