コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }