Rename Fluent-related code to be more precise.

This commit is contained in:
Paul Chote
2024-10-01 19:34:12 +01:00
committed by Gustas
parent 771b9ddfda
commit b29b685058
176 changed files with 1349 additions and 1369 deletions

View File

@@ -18,10 +18,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
[ChromeLogicArgsHotkeys("MuteAudioKey")]
public class MuteHotkeyLogic : SingleHotkeyBaseLogic
{
[TranslationReference]
[FluentReference]
const string AudioMuted = "label-audio-muted";
[TranslationReference]
[FluentReference]
const string AudioUnmuted = "label-audio-unmuted";
[ObjectCreator.UseCtor]
@@ -35,12 +35,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (Game.Settings.Sound.Mute)
{
Game.Sound.MuteAudio();
TextNotificationsManager.AddFeedbackLine(TranslationProvider.GetString(AudioMuted));
TextNotificationsManager.AddFeedbackLine(FluentProvider.GetString(AudioMuted));
}
else
{
Game.Sound.UnmuteAudio();
TextNotificationsManager.AddFeedbackLine(TranslationProvider.GetString(AudioUnmuted));
TextNotificationsManager.AddFeedbackLine(FluentProvider.GetString(AudioUnmuted));
}
return true;