예제 #1
0
        public string GetLocalizedStringByKey(string key, TagResolveLanguage language)
        {
            if (key == "")
            {
                return("[EMPTY KEY]");
            }

            Dictionary <string, string> dictionaryToUse;

            if (language == TagResolveLanguage.English)
            {
                dictionaryToUse = localizedTextEnglish;
            }
            else
            {
                dictionaryToUse = localizedTextJapanese;
            }

            string result = missingTextString;

            if (dictionaryToUse.ContainsKey(key))
            {
                result = dictionaryToUse[key].Replace("\\n", "\n"); //Get the text and also add the linebreaks
            }

            return(result);
        }
예제 #2
0
 public void SetLanguageToJapanese()
 {
     Language = TagResolveLanguage.Japanese;
 }
예제 #3
0
 public void SetLanguageToEnglish()
 {
     Language = TagResolveLanguage.English;
 }