Beispiel #1
0
        public static void UILabelSetTextHook(ref string value, UILabel __instance)
        {
            //Logger.Log(LogLevel.Debug, string.Format("[{0}][{1}] => {2}", __instance.parent.name, __instance.name, value));
            string domain = TranslationDomain.GetLabelTranslationDomain(__instance);

            value = TextTranslator.Translate(domain, value);
        }
Beispiel #2
0
 public void Awake()
 {
     TranslationDomain.Initialize();
     LoadTranslations();
     Hooks.InstallHooks();
 }