Update the translation part of the document.

This commit is contained in:
BruceChen 2022-10-05 23:14:19 +08:00
parent 7f2ede8ad2
commit 510b67906b
4 changed files with 12 additions and 9 deletions

View file

@ -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<Thread, CancellationTokenSource>? 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
}

View file

@ -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!

View file

@ -1,6 +1,6 @@
[mcc]
# Messages from MCC itself
mcc.help_us_translate=帮助我们翻译MCChttps://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=登录:

View file

@ -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 🏗️