Beispiel #1
0
        public string GetResourceString(string key)
        {
            if (CurrentLang.ContainsKey(key))
            {
                return(CurrentLang[key] as string);
            }

            try
            {
                return(GetResourceString(Lang_Id, key));
            }
            catch
            {
                return(key);
            }
        }
Beispiel #2
0
 /// <summary>
 /// 翻訳された文字列を取得します.
 /// </summary>
 /// <param name="key">Key.</param>
 public string this[string key] => CurrentLang != null ? (CurrentLang.ContainsKey(key) ? CurrentLang[key] : key) : key;