BetterTranslationMaybe

This commit is contained in:
Polaris_Light 2023-11-16 10:10:06 +08:00
parent 49dec51588
commit 4fc1aacca5
3 changed files with 22 additions and 22 deletions

View file

@ -571,20 +571,20 @@ namespace MinecraftClient.Protocol
}
else
{
string availablePlayers = "";
string availableProfiles = "";
foreach (Json.JSONData profile in loginResponse.Properties["availableProfiles"].DataArray)
{
availablePlayers += " " + profile.Properties["name"].StringValue;
availableProfiles += " " + profile.Properties["name"].StringValue;
}
ConsoleIO.WriteLine(Translations.mcc_avaliable_players + availablePlayers);
ConsoleIO.WriteLine(Translations.mcc_avaliable_profiles + availableProfiles);
ConsoleIO.WriteLine(Translations.mcc_select_player);
string selectedPlayer = ConsoleIO.ReadLine();
ConsoleIO.WriteLine(Translations.mcc_selected_player + selectedPlayer);
ConsoleIO.WriteLine(Translations.mcc_select_profile);
string selectedProfileName = ConsoleIO.ReadLine();
ConsoleIO.WriteLine(Translations.mcc_selected_profile + " " + selectedProfileName);
Json.JSONData? selectedProfile = null;
foreach (Json.JSONData profile in loginResponse.Properties["availableProfiles"].DataArray)
{
selectedProfile = profile.Properties["name"].StringValue == selectedPlayer ? profile : selectedProfile;
selectedProfile = profile.Properties["name"].StringValue == selectedProfileName ? profile : selectedProfile;
}
if (selectedProfile != null)

View file

@ -5374,11 +5374,11 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to Avaliable players:.
/// Looks up a localized string similar to Avaliable profiles:.
/// </summary>
internal static string mcc_avaliable_players {
internal static string mcc_avaliable_profiles {
get {
return ResourceManager.GetString("mcc.avaliable_players", resourceCulture);
return ResourceManager.GetString("mcc.avaliable_profiles", resourceCulture);
}
}
@ -5756,20 +5756,20 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to Select a player from available players:.
/// Looks up a localized string similar to Select a profile from available profiles:.
/// </summary>
internal static string mcc_select_player {
internal static string mcc_select_profile {
get {
return ResourceManager.GetString("mcc.select_player", resourceCulture);
return ResourceManager.GetString("mcc.select_profile", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selected player:.
/// Looks up a localized string similar to Selected profile:.
/// </summary>
internal static string mcc_selected_player {
internal static string mcc_selected_profile {
get {
return ResourceManager.GetString("mcc.selected_player", resourceCulture);
return ResourceManager.GetString("mcc.selected_profile", resourceCulture);
}
}

View file

@ -2121,13 +2121,13 @@ Logging in...</value>
<data name="cmd.inventory.shiftrightclick" xml:space="preserve">
<value>Shift right-clicking slot {0} in window #{1}</value>
</data>
<data name="mcc.avaliable_players" xml:space="preserve">
<value>Avaliable players:</value>
<data name="mcc.avaliable_profiles" xml:space="preserve">
<value>Avaliable profiles:</value>
</data>
<data name="mcc.selected_player" xml:space="preserve">
<value>Selected player:</value>
<data name="mcc.selected_profile" xml:space="preserve">
<value>Selected profile:</value>
</data>
<data name="mcc.select_player" xml:space="preserve">
<value>Select a player from available players:</value>
<data name="mcc.select_profile" xml:space="preserve">
<value>Select a profile from available profiles:</value>
</data>
</root>