From 4ec8189d31f294dae35e65ace106eda030b89db0 Mon Sep 17 00:00:00 2001 From: SheepYhangCN <13538773578@163.com> Date: Fri, 13 Oct 2023 13:58:33 +0800 Subject: [PATCH] language fix --- Timer.csproj | 2 +- main.cs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Timer.csproj b/Timer.csproj index 8ee8c44..347d21f 100644 --- a/Timer.csproj +++ b/Timer.csproj @@ -1,4 +1,4 @@ - + net6.0 true diff --git a/main.cs b/main.cs index 7ac8158..0a9005e 100644 --- a/main.cs +++ b/main.cs @@ -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"); @@ -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()