Move sm_reload_translations to Translator.

This commit is contained in:
David Anderson
2015-09-20 14:33:06 -07:00
parent c614d19af0
commit c853050265
2 changed files with 7 additions and 5 deletions
+7
View File
@@ -749,6 +749,13 @@ void Translator::OnSourceModAllInitialized()
g_pCorePhrases->AddPhraseFile("core.phrases");
sharesys->AddInterface(NULL, this);
auto sm_reload_translations = [this] (int client, const ICommandArgs *args) -> bool {
RebuildLanguageDatabase();
return true;
};
bridge->DefineCommand("sm_reload_translations", "Reparses all loaded translation files",
sm_reload_translations);
}
void Translator::OnSourceModShutdown()