Change hard-coded strings in WindowsSettings plugin to translated

This commit is contained in:
Vic 2022-09-30 23:30:25 +08:00 committed by Kevin Zhang
parent 6b1070fa36
commit 1f0bd82fe9

View file

@ -125,7 +125,7 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Helper
private static string GetSubtitle(string section, string entryType) private static string GetSubtitle(string section, string entryType)
{ {
var settingType = entryType == "AppSettingsApp" ? "System settings" : "Control Panel"; var settingType = entryType == "AppSettingsApp" ? Resources.AppSettingsApp : Resources.AppControlPanel;
return $"{settingType} > {section}"; return $"{settingType} > {section}";
} }
@ -139,7 +139,7 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Helper
{ {
var toolTipText = new StringBuilder(); var toolTipText = new StringBuilder();
var settingType = entry.Type == "AppSettingsApp" ? "System settings" : "Control Panel"; var settingType = entry.Type == "AppSettingsApp" ? Resources.AppSettingsApp : Resources.AppControlPanel;
toolTipText.AppendLine($"{Resources.Application}: {settingType}"); toolTipText.AppendLine($"{Resources.Application}: {settingType}");
toolTipText.AppendLine($"{Resources.Area}: {entry.Area}"); toolTipText.AppendLine($"{Resources.Area}: {entry.Area}");