From af54e0e13065f121944c85c53572e45837eb1d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 25 Jan 2013 23:54:38 +0000 Subject: 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 --- tools/lpgen/translate.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools') 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(); -- cgit v1.2.3