diff --git a/src/Files.App/Actions/Global/EditPathAction.cs b/src/Files.App/Actions/Global/EditPathAction.cs index ae3afad66b99..47584a594d34 100644 --- a/src/Files.App/Actions/Global/EditPathAction.cs +++ b/src/Files.App/Actions/Global/EditPathAction.cs @@ -8,10 +8,10 @@ internal sealed class EditPathAction : IAction private readonly IContentPageContext context; public string Label - => "EditPath".GetLocalizedResource(); + => Strings.EditPath.GetLocalizedResource(); public string Description - => "EditPathDescription".GetLocalizedResource(); + => Strings.EditPathDescription.GetLocalizedResource(); public HotKey HotKey => new(Keys.L, KeyModifiers.Ctrl); diff --git a/src/Files.App/Actions/Global/EnterCompactOverlayAction.cs b/src/Files.App/Actions/Global/EnterCompactOverlayAction.cs index 18b4cc33a0b4..572a16de17d8 100644 --- a/src/Files.App/Actions/Global/EnterCompactOverlayAction.cs +++ b/src/Files.App/Actions/Global/EnterCompactOverlayAction.cs @@ -11,7 +11,7 @@ internal sealed partial class EnterCompactOverlayAction : ObservableObject, IAct private readonly IWindowContext windowContext; public string Label - => "EnterCompactOverlay".GetLocalizedResource(); + => Strings.EnterCompactOverlay.GetLocalizedResource(); public RichGlyph Glyph => new(themedIconStyle: "App.ThemedIcons.CompactOverlay"); @@ -20,7 +20,7 @@ public HotKey HotKey => new(Keys.Up, KeyModifiers.CtrlAlt); public string Description - => "EnterCompactOverlayDescription".GetLocalizedResource(); + => Strings.EnterCompactOverlayDescription.GetLocalizedResource(); public bool IsExecutable => !windowContext.IsCompactOverlay; diff --git a/src/Files.App/Actions/Global/ExitCompactOverlayAction.cs b/src/Files.App/Actions/Global/ExitCompactOverlayAction.cs index 934877fe0c4e..a14505d5b6ac 100644 --- a/src/Files.App/Actions/Global/ExitCompactOverlayAction.cs +++ b/src/Files.App/Actions/Global/ExitCompactOverlayAction.cs @@ -10,7 +10,7 @@ internal sealed partial class ExitCompactOverlayAction : ObservableObject, IActi private readonly IWindowContext windowContext; public string Label - => "ExitCompactOverlay".GetLocalizedResource(); + => Strings.ExitCompactOverlay.GetLocalizedResource(); public RichGlyph Glyph => new(themedIconStyle: "App.ThemedIcons.CompactOverlayExit"); @@ -19,7 +19,7 @@ public HotKey HotKey => new(Keys.Down, KeyModifiers.CtrlAlt); public string Description - => "ExitCompactOverlayDescription".GetLocalizedResource(); + => Strings.ExitCompactOverlayDescription.GetLocalizedResource(); public bool IsExecutable => windowContext.IsCompactOverlay; diff --git a/src/Files.App/Actions/Global/OpenHelpAction.cs b/src/Files.App/Actions/Global/OpenHelpAction.cs index 87f11345a6d4..a94c4c4fca49 100644 --- a/src/Files.App/Actions/Global/OpenHelpAction.cs +++ b/src/Files.App/Actions/Global/OpenHelpAction.cs @@ -8,10 +8,10 @@ namespace Files.App.Actions internal sealed class OpenHelpAction : IAction { public string Label - => "Help".GetLocalizedResource(); + => Strings.Help.GetLocalizedResource(); public string Description - => "OpenHelpDescription".GetLocalizedResource(); + => Strings.OpenHelpDescription.GetLocalizedResource(); public HotKey HotKey => new(Keys.F1); diff --git a/src/Files.App/Actions/Global/RedoAction.cs b/src/Files.App/Actions/Global/RedoAction.cs index a19bd7ce26a5..834def9fc0f8 100644 --- a/src/Files.App/Actions/Global/RedoAction.cs +++ b/src/Files.App/Actions/Global/RedoAction.cs @@ -8,10 +8,10 @@ internal sealed partial class RedoAction : ObservableObject, IAction private readonly IContentPageContext context; public string Label - => "Redo".GetLocalizedResource(); + => Strings.Redo.GetLocalizedResource(); public string Description - => "RedoDescription".GetLocalizedResource(); + => Strings.RedoDescription.GetLocalizedResource(); public HotKey HotKey => new(Keys.Y, KeyModifiers.Ctrl); diff --git a/src/Files.App/Actions/Global/SearchAction.cs b/src/Files.App/Actions/Global/SearchAction.cs index 4f1851ce18e4..0a47ed957d0a 100644 --- a/src/Files.App/Actions/Global/SearchAction.cs +++ b/src/Files.App/Actions/Global/SearchAction.cs @@ -8,10 +8,10 @@ internal sealed partial class SearchAction : ObservableObject, IAction private readonly IContentPageContext context; public string Label - => "Search".GetLocalizedResource(); + => Strings.Search.GetLocalizedResource(); public string Description - => "SearchDescription".GetLocalizedResource(); + => Strings.SearchDescription.GetLocalizedResource(); public HotKey HotKey => new(Keys.F, KeyModifiers.Ctrl); diff --git a/src/Files.App/Actions/Global/ToggleCompactOverlayAction.cs b/src/Files.App/Actions/Global/ToggleCompactOverlayAction.cs index 88e41efe474f..bba978af95b9 100644 --- a/src/Files.App/Actions/Global/ToggleCompactOverlayAction.cs +++ b/src/Files.App/Actions/Global/ToggleCompactOverlayAction.cs @@ -11,13 +11,13 @@ internal sealed partial class ToggleCompactOverlayAction : ObservableObject, ITo private readonly IWindowContext windowContext; public string Label - => "ToggleCompactOverlay".GetLocalizedResource(); + => Strings.ToggleCompactOverlay.GetLocalizedResource(); public HotKey HotKey => new(Keys.F12); public string Description - => "ToggleCompactOverlayDescription".GetLocalizedResource(); + => Strings.ToggleCompactOverlayDescription.GetLocalizedResource(); public bool IsOn => windowContext.IsCompactOverlay; diff --git a/src/Files.App/Actions/Global/ToggleFullScreenAction.cs b/src/Files.App/Actions/Global/ToggleFullScreenAction.cs index 2b5867e037ce..735f14c0eacc 100644 --- a/src/Files.App/Actions/Global/ToggleFullScreenAction.cs +++ b/src/Files.App/Actions/Global/ToggleFullScreenAction.cs @@ -8,10 +8,10 @@ namespace Files.App.Actions internal sealed class ToggleFullScreenAction : IToggleAction { public string Label - => "FullScreen".GetLocalizedResource(); + => Strings.FullScreen.GetLocalizedResource(); public string Description - => "ToggleFullScreenDescription".GetLocalizedResource(); + => Strings.ToggleFullScreenDescription.GetLocalizedResource(); public HotKey HotKey => new(Keys.F11); diff --git a/src/Files.App/Actions/Global/UndoAction.cs b/src/Files.App/Actions/Global/UndoAction.cs index c5c5a2c86c16..ea464ce1de7b 100644 --- a/src/Files.App/Actions/Global/UndoAction.cs +++ b/src/Files.App/Actions/Global/UndoAction.cs @@ -8,10 +8,10 @@ internal sealed partial class UndoAction : ObservableObject, IAction private readonly IContentPageContext context; public string Label - => "Undo".GetLocalizedResource(); + => Strings.Undo.GetLocalizedResource(); public string Description - => "UndoDescription".GetLocalizedResource(); + => Strings.UndoDescription.GetLocalizedResource(); public HotKey HotKey => new(Keys.Z, KeyModifiers.Ctrl);