mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Crowdin localization support (#2310)
* Switching to use resource files * Update Crowdin configuration file * Code cleanup
This commit is contained in:
parent
a27491c1b6
commit
077e3a5e9f
193 changed files with 102089 additions and 3564 deletions
|
|
@ -118,7 +118,7 @@ namespace MinecraftClient.ChatBots
|
|||
caller = type.Name;
|
||||
}
|
||||
catch { }
|
||||
ConsoleIO.WriteLineFormatted(Translations.Get("bot.script.not_found", caller, filename));
|
||||
ConsoleIO.WriteLineFormatted(string.Format(Translations.bot_script_not_found, caller, filename));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
@ -134,14 +134,14 @@ namespace MinecraftClient.ChatBots
|
|||
thread = null;
|
||||
|
||||
if (!String.IsNullOrEmpty(owner))
|
||||
SendPrivateMessage(owner, Translations.Get("bot.script.pm.loaded", file));
|
||||
SendPrivateMessage(owner, string.Format(Translations.bot_script_pm_loaded, file));
|
||||
}
|
||||
else
|
||||
{
|
||||
LogToConsoleTranslated("bot.script.file_not_found", System.IO.Path.GetFullPath(file));
|
||||
LogToConsole(string.Format(Translations.bot_script_file_not_found, System.IO.Path.GetFullPath(file)));
|
||||
|
||||
if (!String.IsNullOrEmpty(owner))
|
||||
SendPrivateMessage(owner, Translations.Get("bot.script.file_not_found", file));
|
||||
SendPrivateMessage(owner, string.Format(Translations.bot_script_file_not_found, file));
|
||||
|
||||
UnloadBot(); //No need to keep the bot active
|
||||
}
|
||||
|
|
@ -162,7 +162,7 @@ namespace MinecraftClient.ChatBots
|
|||
}
|
||||
catch (CSharpException e)
|
||||
{
|
||||
string errorMessage = Translations.Get("bot.script.fail", file, e.ExceptionType);
|
||||
string errorMessage = string.Format(Translations.bot_script_fail, file, e.ExceptionType);
|
||||
LogToConsole(errorMessage);
|
||||
if (owner != null)
|
||||
SendPrivateMessage(owner, errorMessage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue