diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-01-25 23:54:38 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-01-25 23:54:38 +0000 |
commit | af54e0e13065f121944c85c53572e45837eb1d3a (patch) | |
tree | fc5325e546c960024fe8662d820d49cebb86908a /tools | |
parent | 40fbe37b0c3b424c373caa454a7b81408d1d5152 (diff) |
translate.js - use also different variants of Miranda name for translations from old langpacks
git-svn-id: http://svn.miranda-ng.org/main/trunk@3288 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lpgen/translate.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/lpgen/translate.js b/tools/lpgen/translate.js index e550101eb4..9e8faedb27 100644 --- a/tools/lpgen/translate.js +++ b/tools/lpgen/translate.js @@ -186,6 +186,15 @@ while ((string = find.exec(translatefiletext)) != null) { //add key-item pair into dictionary, if not exists already if (!dictionary.Exists(key)) dictionary.Add(key,item); + //use also different variants of Miranda name for translations from old langpacks + key = key.replace("Miranda IM", "Miranda NG"); + item = item.replace("Miranda IM", "Miranda NG"); + if (!dictionary.Exists(key)) + dictionary.Add(key,item); + key = key.replace("Miranda NG", "Miranda"); + item = item.replace("Miranda NG", "Miranda"); + if (!dictionary.Exists(key)) + dictionary.Add(key,item); } //close file translatefile.Close(); |