objdictgen/objdictgen.py
changeset 580 2ae92a99ac10
parent 512 e84806c0ada4
--- a/objdictgen/objdictgen.py	Mon Jul 20 16:11:20 2009 +0200
+++ b/objdictgen/objdictgen.py	Mon Jul 27 16:29:59 2009 +0200
@@ -26,8 +26,10 @@
 
 from nodemanager import *
 
+_ = lambda x: x
+
 def usage():
-    print "\nUsage of objdictgen.py :"
+    print _("\nUsage of objdictgen.py :")
     print "\n   %s XMLFilePath CFilePath\n"%sys.argv[0]
 
 try:
@@ -55,7 +57,7 @@
     if fileIn != "" and fileOut != "":
         manager = NodeManager()
         if os.path.isfile(fileIn):
-            print "Parsing input file"
+            print _("Parsing input file")
             result = manager.OpenFileInCurrent(fileIn)
             if not isinstance(result, (StringType, UnicodeType)):
                 Node = result
@@ -63,12 +65,12 @@
                 print result
                 sys.exit(-1)
         else:
-            print "%s is not a valid file!"%fileIn
+            print _("%s is not a valid file!")%fileIn
             sys.exit(-1)
-        print "Writing output file"
+        print _("Writing output file")
         result = manager.ExportCurrentToCFile(fileOut)
         if isinstance(result, (UnicodeType, StringType)):
             print result
             sys.exit(-1)
-        print "All done"
+        print _("All done")