summaryrefslogtreecommitdiff
path: root/tools/lpgen
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lpgen')
-rw-r--r--tools/lpgen/translate.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lpgen/translate.js b/tools/lpgen/translate.js
index 3a03ab4d70..e550101eb4 100644
--- a/tools/lpgen/translate.js
+++ b/tools/lpgen/translate.js
@@ -183,8 +183,9 @@ while ((string = find.exec(translatefiletext)) != null) {
//first match as original string [....], is a key of dictionary, second match is a translation - item of key in dictionary
var key=string[1];
var item=string[2];
- //add key-item pair into dictionary
- dictionary.Add(key,item)
+ //add key-item pair into dictionary, if not exists already
+ if (!dictionary.Exists(key))
+ dictionary.Add(key,item);
}
//close file
translatefile.Close();