Rename Fluent *GetString methods to GetMessage.
This commit is contained in:
@@ -224,16 +224,16 @@ namespace OpenRA
|
||||
public int DownloadPercentage { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Functionality mirrors <see cref="FluentProvider.GetString"/>, except instead of using
|
||||
/// Functionality mirrors <see cref="FluentProvider.GetMessage"/>, except instead of using
|
||||
/// loaded <see cref="Map"/>'s fluent bundle as backup, we use this <see cref="MapPreview"/>'s.
|
||||
/// </summary>
|
||||
public string GetString(string key, object[] args = null)
|
||||
public string GetMessage(string key, object[] args = null)
|
||||
{
|
||||
// PERF: instead of loading mod level strings per each MapPreview, reuse the already loaded one in FluentProvider.
|
||||
if (FluentProvider.TryGetModString(key, out var message, args))
|
||||
if (FluentProvider.TryGetModMessage(key, out var message, args))
|
||||
return message;
|
||||
|
||||
return innerData.FluentBundle?.GetString(key, args) ?? key;
|
||||
return innerData.FluentBundle?.GetMessage(key, args) ?? key;
|
||||
}
|
||||
|
||||
Sprite minimap;
|
||||
|
||||
Reference in New Issue
Block a user