Message migration tool fixed
authorAlex Kirhenshtein <alk@netxms.org>
Sat, 1 Jun 2013 21:02:57 +0000 (21:02 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Sat, 1 Jun 2013 21:02:57 +0000 (21:02 +0000)
tools/sync_message_files.py

index 85a1ac3..8c0bfb6 100755 (executable)
@@ -24,6 +24,10 @@ def processDirectory(directory, prefix):
     for locale in locales:
         translationFileName = os.path.join(directory, "%s_%s.properties" % (prefix, locale, ))
         translation = readPropertyFile(translationFileName)
+        filteredTranslation = {}
+        for e in translation.iteritems():
+            filteredTranslation[e[0].replace('.', '_')] = e[1]
+        translation = filteredTranslation
         for k in set(translation.keys()) - set(source.keys()):
             del translation[k]
         translation = dict(source.items() + translation.items())