Skip to content

Commit

Permalink
Merge pull request #1112 from dotnetcore/i18n-dev
Browse files Browse the repository at this point in the history
I18n 🚑 增加默认的英文翻译
  • Loading branch information
luoyunchong authored May 22, 2022
2 parents 3782b02 + fbbc043 commit ef42ced
Show file tree
Hide file tree
Showing 8 changed files with 501 additions and 505 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.2.650-preview20220521</Version>
<Version>3.2.650-preview20220521-2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions FreeSql.DbContext/FreeSql.DbContext.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

325 changes: 162 additions & 163 deletions FreeSql.DbContext/Properties/DbContextStrings.resx

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions FreeSql.Tests/FreeSql.Tests/Properties/CoreStringsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ public CoreStringsTests(ITestOutputHelper output)
public void AsTable_PropertyName_NotDateTimeTest()
{
var x = CoreStrings.CustomFieldSeparatedBySpaces;
output.WriteLine(x);
x = CoreStrings.Custom_StaticMethodName_IsNotNull;
output.WriteLine(x);
x = CoreStrings.Custom_Reflection_IsNotNull;
output.WriteLine(x);
string text = CoreStrings.AsTable_PropertyName_NotDateTime("1");
output.WriteLine(text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public DbContextStringsTests(ITestOutputHelper output)
//Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
//Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");

//DbContextStrings.Culture= new System.Globalization.CultureInfo("zh-CN");
//DbContextStrings.Culture= new System.Globalization.CultureInfo("zh-Hans");
DbContextStrings.Culture = new System.Globalization.CultureInfo("en-US");
}

Expand Down
4 changes: 2 additions & 2 deletions FreeSql.sln
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ Global
{D4FEE5C1-6805-4B46-B10B-BE5CC942B883} = {2A381C57-2697-427B-9F10-55DA11FD02E4}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
RESX_NeutralResourcesLanguage = en-US
RESX_PrefixTranslations = True
SolutionGuid = {089687FD-5D25-40AB-BA8A-A10D1E137F98}
RESX_PrefixTranslations = False
RESX_NeutralResourcesLanguage = zh-Hans
EndGlobalSection
EndGlobal
657 changes: 328 additions & 329 deletions FreeSql/Properties/CoreStrings.resx

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions FreeSql/Properties/CoreStrings.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -495,4 +495,7 @@
<data name="Use_InsertDict_Method" xml:space="preserve">
<value>请使用 fsql.InsertDict(dict) 方法插入字典数据</value>
</data>
<data name="A" xml:space="preserve">
<value>Test</value>
</data>
</root>

0 comments on commit ef42ced

Please sign in to comment.