Fix #720 - Concurrency error in GT_LanguageManager.addStringLocalization
This commit is contained in:
parent
7a8067868d
commit
50b9fc9238
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class GT_LanguageManager {
|
|||
return addStringLocalization(aKey, aEnglish, true);
|
||||
}
|
||||
|
||||
public static String addStringLocalization(String aKey, String aEnglish, boolean aWriteIntoLangFile) {
|
||||
public static synchronized String addStringLocalization(String aKey, String aEnglish, boolean aWriteIntoLangFile) {
|
||||
if (aKey == null) return E;
|
||||
if (aWriteIntoLangFile){ aEnglish = writeToLangFile(aKey, aEnglish);
|
||||
if(!LANGMAP.containsKey(aKey)){
|
||||
|
|
Loading…
Reference in a new issue