git repos / blockattack-game

commit 5f870c10

sago007 · 2016-02-07 09:38
5f870c10b0ce0af1883823477949bbdf4b4c57ec patch · browse files
parent f31fade1af4ae6b17e383934a409f978f62bd170

Make the translations work on Windows

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 42c10d4..ee79aa1 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -1801,6 +1801,7 @@ int main(int argc, char* argv[]) {
//Set default Config variables:
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset(PACKAGE, "utf-8");
textdomain (PACKAGE);
boost::program_options::options_description desc("Allowed options");
desc.add_options()