Esempio n. 1
0
        public static string LocalizeText(AdvErrorMsg type)
        {
            LanguageManagerBase instance = LanguageManagerBase.Instance;

            if (instance != null)
            {
                return(instance.LocalizeText("AdvErrorMsg", type.ToString()));
            }
            Debug.LogWarning("LanguageManager is NULL");
            return(type.ToString());
        }
		/// <summary>
		/// 指定のキーのテキストを、設定された言語に翻訳して取得
		/// </summary>
		/// <param name="type"></param>
		/// <returns></returns>
		public static string LocalizeText(AdvErrorMsg type)
		{
			LanguageManagerBase language = LanguageManagerBase.Instance;
			if (language != null)
			{
				return language.LocalizeText(LanguageDataName, type.ToString());
			}
			else
			{
				Debug.LogWarning("LanguageManager is NULL");
				return type.ToString();
			}
		}
Esempio n. 3
0
        /// <summary>
        /// 指定のキーのテキストを、設定された言語に翻訳して取得
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string LocalizeText(AdvErrorMsg type)
        {
            LanguageManagerBase language = LanguageManagerBase.Instance;

            if (language != null)
            {
                return(language.LocalizeText(LanguageDataName, type.ToString()));
            }
            else
            {
                Debug.LogWarning("LanguageManager is NULL");
                return(type.ToString());
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 指定のキーのテキストを、設定された言語に翻訳して取得
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string LocalizeText(AdvErrorMsg type)
        {
            LanguageManagerBase language = LanguageManagerBase.Instance;

            if (language == null)
            {
                Debug.LogWarning("LanguageManager is NULL");
                return(type.ToString());
            }
            else
            {
                string text;
                if (language.TryLocalizeText(type.ToString(), out text))
                {
                    return(text);
                }
                else
                {
                    return(language.DefaultLanuguageText(type.ToString()));
                }
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 指定のキーのテキストフォーマットを、設定された言語に翻訳して取得
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string LocalizeTextFormat(AdvErrorMsg type, params object[] args)
        {
            string format = LocalizeText(type);

            return(string.Format(format, args));
        }
		/// <summary>
		/// 指定のキーのテキストフォーマットを、設定された言語に翻訳して取得
		/// </summary>
		/// <param name="type"></param>
		/// <returns></returns>
		public static string LocalizeTextFormat(AdvErrorMsg type, params object[] args)
		{
			string format = LocalizeText(type);
			return string.Format(format, args);
		}