build/buildutils/extractJavaLocFiles_qt.py
changeset 26 dc7c549001d5
parent 23 98ccebc37403
child 72 1f0034e370aa
--- a/build/buildutils/extractJavaLocFiles_qt.py	Fri May 14 15:47:24 2010 +0300
+++ b/build/buildutils/extractJavaLocFiles_qt.py	Thu May 27 12:49:31 2010 +0300
@@ -41,7 +41,11 @@
     'javassl',
     'javausermessages',
     'javaapplicationsettings',
-    'javaruntimeapplicationsettings'
+    # loc files for qt
+    'javaapplicationinstaller',
+    'javaapplicationsecuritymessages',
+    'javaruntimeapplicationsettings',
+    'javaruntimecertificatemanagement'
     ]
 
 # Path for java loc files inside RESOURCES_FILE.
@@ -89,7 +93,7 @@
         shutil.rmtree(tmpDir)
 
     except:
-        print "Usage: %s <input_dir> <output_dir>" % sys.argv[0]
+        print "Usage: %s <input_dir> <output_dir> <resources_jar>" % sys.argv[0]
         traceback.print_exc()
         sys.exit(1)
 
@@ -110,6 +114,10 @@
         else:
             text = translation.text
 
+        # If text is not found, this is unlocalised engineering English file
+        if text == None:
+            text = message.find("source").text
+
         # Sanity check - no newlines in text allowed
         if "\n" in text:
             raise Exception("Conversion error in %s / %s: newline found" % (filename, id))