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;
        }
Exemple #2
0
        public override string GetLocalizedString(MapStringId id)
        {
            var str = CustomStrings.ResourceManager.GetString(id.ToString());

            return(string.IsNullOrEmpty(str) ? "_" + base.GetLocalizedString(id) : str);
        }
 /// <summary>
 /// Override this method to use a custom localization.
 /// </summary>
 /// <param name="id">The id of the string.</param>
 /// <returns> The localized text. </returns>
 public virtual string GetLocalizedString(MapStringId id)
 {
     return(ResourceManagerLocalizer.GetString(id));
 }
 /// <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()));
 }
 /// <summary>
 /// Gets the localizes 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(Active == null?ResourceManagerLocalizer.GetString(id) : Active.GetLocalizedString(id));
 }