diff options
Diffstat (limited to 'tools/lpgen/translate.js')
-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(); |