[Launcher] Globalization

This commit is contained in:
ChsBuffer
2021-07-25 04:46:01 +08:00
parent 2f2e03ec46
commit 6c1f7ebc88
8 changed files with 2455 additions and 809 deletions
@@ -0,0 +1,18 @@
#include <iostream>
using namespace System::Resources;
using namespace System::Reflection;
using namespace System;
using namespace System::IO;
ref class i18n
{
public:
static ResourceManager^ ResMgr = gcnew ResourceManager("Launcher.Resources", i18n::typeid->Assembly);
static String^ GetStringFallback(String^ name) {
String^ result = ResMgr->GetString(name);
return result != nullptr ? result : name;
}
};