mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
BetterTranslationMaybe
This commit is contained in:
parent
49dec51588
commit
4fc1aacca5
3 changed files with 22 additions and 22 deletions
|
|
@ -571,20 +571,20 @@ namespace MinecraftClient.Protocol
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string availablePlayers = "";
|
string availableProfiles = "";
|
||||||
foreach (Json.JSONData profile in loginResponse.Properties["availableProfiles"].DataArray)
|
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);
|
ConsoleIO.WriteLine(Translations.mcc_select_profile);
|
||||||
string selectedPlayer = ConsoleIO.ReadLine();
|
string selectedProfileName = ConsoleIO.ReadLine();
|
||||||
ConsoleIO.WriteLine(Translations.mcc_selected_player + selectedPlayer);
|
ConsoleIO.WriteLine(Translations.mcc_selected_profile + " " + selectedProfileName);
|
||||||
Json.JSONData? selectedProfile = null;
|
Json.JSONData? selectedProfile = null;
|
||||||
foreach (Json.JSONData profile in loginResponse.Properties["availableProfiles"].DataArray)
|
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)
|
if (selectedProfile != null)
|
||||||
|
|
|
||||||
|
|
@ -5374,11 +5374,11 @@ namespace MinecraftClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Avaliable players:.
|
/// Looks up a localized string similar to Avaliable profiles:.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string mcc_avaliable_players {
|
internal static string mcc_avaliable_profiles {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("mcc.avaliable_players", resourceCulture);
|
return ResourceManager.GetString("mcc.avaliable_profiles", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5756,20 +5756,20 @@ namespace MinecraftClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
internal static string mcc_select_player {
|
internal static string mcc_select_profile {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("mcc.select_player", resourceCulture);
|
return ResourceManager.GetString("mcc.select_profile", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Selected player:.
|
/// Looks up a localized string similar to Selected profile:.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string mcc_selected_player {
|
internal static string mcc_selected_profile {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("mcc.selected_player", resourceCulture);
|
return ResourceManager.GetString("mcc.selected_profile", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2121,13 +2121,13 @@ Logging in...</value>
|
||||||
<data name="cmd.inventory.shiftrightclick" xml:space="preserve">
|
<data name="cmd.inventory.shiftrightclick" xml:space="preserve">
|
||||||
<value>Shift right-clicking slot {0} in window #{1}</value>
|
<value>Shift right-clicking slot {0} in window #{1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mcc.avaliable_players" xml:space="preserve">
|
<data name="mcc.avaliable_profiles" xml:space="preserve">
|
||||||
<value>Avaliable players:</value>
|
<value>Avaliable profiles:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mcc.selected_player" xml:space="preserve">
|
<data name="mcc.selected_profile" xml:space="preserve">
|
||||||
<value>Selected player:</value>
|
<value>Selected profile:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mcc.select_player" xml:space="preserve">
|
<data name="mcc.select_profile" xml:space="preserve">
|
||||||
<value>Select a player from available players:</value>
|
<value>Select a profile from available profiles:</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue