Setting for choosing the language to use

- Download the appropriate language file regarding the language setting
- Stores language files in the "lang" subfolder
This commit is contained in:
ORelio 2014-02-01 14:57:31 +01:00
parent 86908c35a0
commit eef5e92af5
2 changed files with 28 additions and 23 deletions

View file

@ -27,8 +27,8 @@ namespace MinecraftClient
public static string TranslationsFile_FromMCDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\assets\objects\9e\9e2fdc43fc1c7024ff5922b998fadb2971a64ee0"; //MC 1.7.4 en_GB.lang
public static string TranslationsFile_Website_Index = "https://s3.amazonaws.com/Minecraft.Download/indexes/1.7.4.json";
public static string TranslationsFile_Website_Download = "http://resources.download.minecraft.net";
public static string TranslationsFile = "translations.lang";
public static string Bots_OwnersFile = "bot-owners.txt";
public static string Language = "en_GB";
//AntiAFK Settings
public static bool AntiAFK_Enabled = false;
@ -121,7 +121,7 @@ namespace MinecraftClient
case "password": Password = argValue; break;
case "serverip": ServerIP = argValue; break;
case "singlecommand": SingleCommand = argValue; break;
case "translationsfile": TranslationsFile = argValue; break;
case "language": Language = argValue; break;
case "botownersfile": Bots_OwnersFile = argValue; break;
case "consoletitle": ConsoleTitle = argValue; break;
}
@ -212,7 +212,7 @@ namespace MinecraftClient
+ "\r\n"
+ "#Advanced settings\r\n"
+ "\r\n"
+ "translationsfile=translations.lang\r\n"
+ "language=en_GB\r\n"
+ "botownersfile=bot-owners.txt\r\n"
+ "consoletitle=Minecraft Console Client - %username%\r\n"
+ "\r\n"