com.xmobitea.changx.mini-localization 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[CustomEditor(typeof(LocalizationManager))]
|
|
13
13
|
public class LocalizationManagerEditor : Editor
|
|
14
14
|
{
|
|
15
|
-
private const string Version = "1.4.
|
|
15
|
+
private const string Version = "1.4.7";
|
|
16
16
|
private const string Library = @".\Library\PackageCache\com.xmobitea.changx.mini-localization@" + Version;
|
|
17
17
|
//private const string Library = @".\Assets\MiniLocalization";
|
|
18
18
|
private const string ProcessPath = @"\Editor\Tools\GetLocalizationTools";
|
|
@@ -90,8 +90,12 @@
|
|
|
90
90
|
var key = node.Attributes.GetNamedItem("name").Value;
|
|
91
91
|
var text = node.InnerText.Replace("\\n", "\n").Replace("<", "<").Replace(">", ">").Replace("&", "&").Replace("'", "'").Replace(""", "\"");
|
|
92
92
|
|
|
93
|
-
if (textLocalizationDic.ContainsKey(key))
|
|
94
|
-
|
|
93
|
+
if (textLocalizationDic.ContainsKey(key))
|
|
94
|
+
{
|
|
95
|
+
Debug.LogError("[Localization] " + key + " " + " duplicate");
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
textLocalizationDic[key] = text;
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
101
|
}
|