Exemplo n.º 1
0
        public override string GetLocalizedString(MapStringId id)
        {
            string str = CustomLocalizer.CustomStrings.ResourceManager.GetString(id.ToString());

            if (string.IsNullOrEmpty(str))
                return "_" + base.GetLocalizedString(id);
            else
                return str;
        }
Exemplo n.º 2
0
        public override string GetLocalizedString(MapStringId id)
        {
            var str = CustomStrings.ResourceManager.GetString(id.ToString());

            return(string.IsNullOrEmpty(str) ? "_" + base.GetLocalizedString(id) : str);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the localized string for a <see cref="MapStringId"/>.
 /// </summary>
 /// <param name="id">The id of the string.</param>
 /// <returns> The localized text. </returns>
 public static string GetString(MapStringId id)
 {
     return(ResourceManager.GetString(id.ToString()));
 }