From 510b67906b5d270d796668e6e6764535ce7a04cf Mon Sep 17 00:00:00 2001 From: BruceChen Date: Wed, 5 Oct 2022 23:14:19 +0800 Subject: [PATCH] Update the translation part of the document. --- MinecraftClient/Program.cs | 3 ++- MinecraftClient/Resources/lang/en.ini | 5 ++--- MinecraftClient/Resources/lang/zh-Hans.ini | 2 +- README.md | 11 +++++++---- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/MinecraftClient/Program.cs b/MinecraftClient/Program.cs index f8fa9d7a..7b8aea5c 100644 --- a/MinecraftClient/Program.cs +++ b/MinecraftClient/Program.cs @@ -49,6 +49,7 @@ namespace MinecraftClient public const string MCLowestVersion = "1.4.6"; public const string MCHighestVersion = "1.19.2"; public static readonly string? BuildInfo = null; + private const string TranslationUrl = "https://mccteam.github.io/guide/contibuting.html#translations"; private static Tuple? offlinePrompt = null; private static bool useMcVersionOnce = false; @@ -149,7 +150,7 @@ namespace MinecraftClient //Load external translation file. Should be called AFTER settings loaded Translations.LoadTranslationFile(Translations.GetTranslationPriority(Config.Main.Advanced.Language)); if (!Config.Main.Advanced.Language.StartsWith("en")) - ConsoleIO.WriteLine(Translations.TryGet("mcc.help_us_translate")); + ConsoleIO.WriteLine(Translations.TryGet("mcc.help_us_translate", TranslationUrl)); Settings.WriteToFile("MinecraftClient.ini", true); // format } diff --git a/MinecraftClient/Resources/lang/en.ini b/MinecraftClient/Resources/lang/en.ini index 0d449649..3176e207 100644 --- a/MinecraftClient/Resources/lang/en.ini +++ b/MinecraftClient/Resources/lang/en.ini @@ -1,6 +1,6 @@ [mcc] # Messages from MCC itself -mcc.help_us_translate=Help us translate MCC: https://mccteam.github.io/guide/translation.html +mcc.help_us_translate=Help us translate MCC: {0} mcc.run_with_default_settings=\nMCC is running with default settings. mcc.settings_generated=§cSettings file MinecraftClient.ini has been generated. mcc.login=Login : @@ -667,8 +667,7 @@ config.Main.General.method=Microsoft Account sign-in method: mcc OR browser. # Main.Advanced config.Main.Advanced=Make sure you understand what each setting does before changing anything! -config.Main.Advanced.language=Fill in with in-game locale code, https://minecraft.fandom.com/wiki/Language -config.Main.Advanced.console_title= +config.Main.Advanced.language=Fill in with in-game locale code, https://github.com/MCCTeam/Minecraft-Console-Client/discussions/2239 config.Main.Advanced.internal_cmd_char=Use 'none', 'slash' or 'backslash' config.Main.Advanced.message_cooldown=Minimum delay in seconds between messages to avoid being kicked for spam. config.Main.Advanced.bot_owners=Name list or myfile.txt, one name per line. /!\ Server admins can impersonate owners! diff --git a/MinecraftClient/Resources/lang/zh-Hans.ini b/MinecraftClient/Resources/lang/zh-Hans.ini index e432645a..c4a249df 100644 --- a/MinecraftClient/Resources/lang/zh-Hans.ini +++ b/MinecraftClient/Resources/lang/zh-Hans.ini @@ -1,6 +1,6 @@ [mcc] # Messages from MCC itself -mcc.help_us_translate=帮助我们翻译MCC:https://mccteam.github.io/guide/translation.html +mcc.help_us_translate=帮助我们翻译MCC:{0} mcc.run_with_default_settings=\nMCC正在使用默认配置运行。 mcc.settings_generated=§c配置文件 MinecraftClient.ini 已经生成。 mcc.login=登录: diff --git a/README.md b/README.md index 5fa01eb9..bc542419 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,14 @@ If you'd like to contribute to Minecraft Console Client, great, just fork the re ## Translating Minecraft Console Client 🌍 -If you would like to translate Minecraft Console Client to a different language, please download the translation file from [the lang folder](https://github.com/MCCTeam/Minecraft-Console-Client/tree/master/MinecraftClient/Resources/lang) or just fork the repository. Once you finished the translation work, submit a pull request or send us the file through an [Issue](https://github.com/MCCTeam/Minecraft-Console-Client/issues) in case you are not familiar with Git. +Check out: [How to update or add translations for MCC](https://mccteam.github.io/guide/contibuting.html#translations). -To use the translated language file, place it under `lang/mcc/` folder and set your language in `.ini` config. You may create the directory if it does not exist. - -For the names of the translation file, please see [this comment](https://github.com/MCCTeam/Minecraft-Console-Client/pull/1282#issuecomment-711150715). +MCC now has translations in the following languages (Alphabetical order) : + * `de.ini` : Deutsch - German + * `fr.ini` : Français (France) - French + * `ru.ini` : Русский (Russkiy) - Russian + * `vi.ini` : Tiếng Việt (Việt Nam) - Vietnamese + * `zh-Hans.ini` : 简体中文(中国大陆) - Chinese Simplified (China; Mandarin) ## Building from the source 🏗️