From a6db852e95deaad4fd9156dc442260a3acc2e769 Mon Sep 17 00:00:00 2001 From: celeron533 Date: Fri, 10 Mar 2017 22:31:52 +0800 Subject: [PATCH] I18n. Rename language resources by using underscore. --- .../Data/{zh-CN.txt => zh_CN.txt} | 0 .../Data/{zh-TW.txt => zh_TW.txt} | 0 shadowsocks-csharp/Properties/Resources.resx | 4 +- shadowsocks-csharp/shadowsocks-csharp.csproj | 54 +++++++++---------- 4 files changed, 29 insertions(+), 29 deletions(-) rename shadowsocks-csharp/Data/{zh-CN.txt => zh_CN.txt} (100%) rename shadowsocks-csharp/Data/{zh-TW.txt => zh_TW.txt} (100%) diff --git a/shadowsocks-csharp/Data/zh-CN.txt b/shadowsocks-csharp/Data/zh_CN.txt similarity index 100% rename from shadowsocks-csharp/Data/zh-CN.txt rename to shadowsocks-csharp/Data/zh_CN.txt diff --git a/shadowsocks-csharp/Data/zh-TW.txt b/shadowsocks-csharp/Data/zh_TW.txt similarity index 100% rename from shadowsocks-csharp/Data/zh-TW.txt rename to shadowsocks-csharp/Data/zh_TW.txt diff --git a/shadowsocks-csharp/Properties/Resources.resx b/shadowsocks-csharp/Properties/Resources.resx index 733ade0d..1e2a09f6 100755 --- a/shadowsocks-csharp/Properties/Resources.resx +++ b/shadowsocks-csharp/Properties/Resources.resx @@ -167,9 +167,9 @@ ..\data\user-rule.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 - ..\data\zh-CN.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\data\zh_CN.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 - ..\Data\zh-TW.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + ..\Data\zh_TW.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 \ No newline at end of file diff --git a/shadowsocks-csharp/shadowsocks-csharp.csproj b/shadowsocks-csharp/shadowsocks-csharp.csproj index 8493e788..11b1f6f5 100644 --- a/shadowsocks-csharp/shadowsocks-csharp.csproj +++ b/shadowsocks-csharp/shadowsocks-csharp.csproj @@ -301,8 +301,8 @@ - - + + @@ -357,25 +357,25 @@ - (); -var attribute = config.Attribute("ExcludeAssemblies"); -if (attribute != null) - foreach (var item in attribute.Value.Split('|').Select(x => x.Trim()).Where(x => x != string.Empty)) - excludedAssemblies.Add(item); -var element = config.Element("ExcludeAssemblies"); -if (element != null) - foreach (var item in element.Value.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(x => x != string.Empty)) - excludedAssemblies.Add(item); - -var filesToCleanup = Files.Select(f => f.ItemSpec).Where(f => !excludedAssemblies.Contains(Path.GetFileNameWithoutExtension(f), StringComparer.InvariantCultureIgnoreCase)); - -foreach (var item in filesToCleanup) - File.Delete(item); + (); +var attribute = config.Attribute("ExcludeAssemblies"); +if (attribute != null) + foreach (var item in attribute.Value.Split('|').Select(x => x.Trim()).Where(x => x != string.Empty)) + excludedAssemblies.Add(item); +var element = config.Element("ExcludeAssemblies"); +if (element != null) + foreach (var item in element.Value.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(x => x != string.Empty)) + excludedAssemblies.Add(item); + +var filesToCleanup = Files.Select(f => f.ItemSpec).Where(f => !excludedAssemblies.Contains(Path.GetFileNameWithoutExtension(f), StringComparer.InvariantCultureIgnoreCase)); + +foreach (var item in filesToCleanup) + File.Delete(item); ]]> @@ -389,11 +389,11 @@ foreach (var item in filesToCleanup) - \ No newline at end of file