Skip to content

Commit

Permalink
language fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepYhangCN committed Oct 13, 2023
1 parent 8fef572 commit 4ec8189
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Timer.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/4.1.1">
<Project Sdk="Godot.NET.Sdk/4.1.2">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
Expand Down
5 changes: 0 additions & 5 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public partial class main : Control
internal bool start=false;
public override void _Ready()
{
TranslationServer.SetLocale("en");
if (OS.GetLocaleLanguage() == "zh" || OS.GetLocale() == "zh_CN" || OS.GetLocale() == "zh_SG")
{
TranslationServer.SetLocale("zh_CN");
Expand All @@ -23,10 +22,6 @@ public override void _Ready()
{
TranslationServer.SetLocale("zh_TW");
}
if (OS.GetLocaleLanguage() == "ja" || OS.GetLocale() == "ja_JP")
{
TranslationServer.SetLocale("ja");
}
}

public void _on_start_pause_pressed()
Expand Down

0 comments on commit 4ec8189

Please sign in to comment.