public void load1()
        {
            this.loadSingleText(TestTranslatorCenter.tranName, "English");
            this.loadSingleText(TestTranslatorCenter.tranDescription, "English");
            this.loadSingleText(TestTranslatorCenter.tranStory, "English");
            this.loadSingleText(TestTranslatorCenter.tranExtra, "English");

            this.loadSingleText(TestTranslatorCenter.tranName, "Chinese");
            this.loadSingleText(TestTranslatorCenter.tranDescription, "Chinese");
            this.loadSingleText(TestTranslatorCenter.tranStory, "Chinese");
            this.loadSingleText(TestTranslatorCenter.tranExtra, "Chinese");

            this.loadSingleText(TestTranslatorCenter.tranName, "German");
            this.loadSingleText(TestTranslatorCenter.tranDescription, "German");
            this.loadSingleText(TestTranslatorCenter.tranStory, "German");
            this.loadSingleText(TestTranslatorCenter.tranExtra, "German");

            this.loadSingleText(TestTranslatorCenter.tranName, "Japanese");
            this.loadSingleText(TestTranslatorCenter.tranDescription, "Japanese");
            this.loadSingleText(TestTranslatorCenter.tranStory, "Japanese");
            this.loadSingleText(TestTranslatorCenter.tranExtra, "Japanese");

            ///Set Language
            TezTranslator.switchLanguage("Chinese");
        }
 private void loadAllText(TezTranslator translator)
 {
     foreach (var item in this.getAllFromYourDatabase())
     {
         translator.loadAll(item.Key, item.Value);
     }
 }
 private void loadSingleText(TezTranslator translator, string path)
 {
     foreach (var item in this.getLanguageFromYourDatabase(path))
     {
         translator.loadSingle(item.Key, item.Value);
     }
 }
        public void load2()
        {
            this.loadAllText(TestTranslatorCenter.tranName);
            this.loadAllText(TestTranslatorCenter.tranDescription);
            this.loadAllText(TestTranslatorCenter.tranStory);
            this.loadAllText(TestTranslatorCenter.tranExtra);

            ///Set Language
            TezTranslator.switchLanguage("Chinese");
        }
        public void init()
        {
            TezTranslator.setMode(TezTranslationSlot.Category.AllInOne);
            TezTranslator.eventLanguageSwitched += eventLanguageSwitched;

            TezTranslator.register("English");
            TezTranslator.register("Chinese");
            TezTranslator.register("German");
            TezTranslator.register("Japanese");
        }
        private void loadSingleText(TezTranslator translator, string language)
        {
            TezTranslator.beginLoad(language);

            foreach (var item in this.getLanguageFromYourDatabase(language))
            {
                translator.loadSingle(item.Key, item.Value);
            }

            TezTranslator.endLoad(language);
        }
        public void init()
        {
            TezTranslator.setMode(TezTranslationSlot.Category.Single);

            TezTranslator.register("English", "X:/Translation/English.trans");
            TezTranslator.register("Chinese", "X:/Translation/Chinese.trans");
            TezTranslator.register("German", "X:/Translation/German.trans");
            TezTranslator.register("Japanese", "X:/Translation/Japanese.trans");

            TezTranslator.eventLanguageReload   += onEventLanguageReload;
            TezTranslator.eventLanguageSwitched += eventLanguageSwitched;
        }
 public void test()
 {
     this.init();
     TezTranslator.switchLanguage("Chinese");
 }