Example #1
0
        /// <summary>
        /// Return text with this key
        /// </summary>
        /// <returns>The text.</returns>
        /// <param name="key">Key.</param>
        public static string GetText(string key)
        {
            //try {
            //    return languageObject.GetText(key);
            //} catch

            try
            {
                return(languageObject.GetText(key).Replace("<\\n>", "\n"));
            }
            catch (System.Exception)
            {
                return(key);

                throw;
            }
        }
Example #2
0
 /// <summary>
 /// Return text with this key
 /// </summary>
 /// <returns>The text.</returns>
 /// <param name="key">Key.</param>
 public static string GetText(string key)
 {
     return(languageObject.GetText(key));
 }