Skip to content

Commit 1f0bd82

Browse files
VictoriousRaptortaooceros
authored andcommitted
Change hard-coded strings in WindowsSettings plugin to translated
1 parent 6b1070f commit 1f0bd82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/ResultHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ internal static List<Result> GetResultList(
125125

126126
private static string GetSubtitle(string section, string entryType)
127127
{
128-
var settingType = entryType == "AppSettingsApp" ? "System settings" : "Control Panel";
128+
var settingType = entryType == "AppSettingsApp" ? Resources.AppSettingsApp : Resources.AppControlPanel;
129129

130130
return $"{settingType} > {section}";
131131
}
@@ -139,7 +139,7 @@ private static void AddOptionalToolTip(WindowsSetting entry, Result result)
139139
{
140140
var toolTipText = new StringBuilder();
141141

142-
var settingType = entry.Type == "AppSettingsApp" ? "System settings" : "Control Panel";
142+
var settingType = entry.Type == "AppSettingsApp" ? Resources.AppSettingsApp : Resources.AppControlPanel;
143143

144144
toolTipText.AppendLine($"{Resources.Application}: {settingType}");
145145
toolTipText.AppendLine($"{Resources.Area}: {entry.Area}");

0 commit comments

Comments
 (0)