Added SearchPivotName trnslation resource

This commit is contained in:
Aleh Khantsevich
2024-05-09 01:11:02 +02:00
parent 1f6e1db695
commit 1f59d3179c
3 changed files with 7 additions and 1 deletions

View File

@@ -323,6 +323,7 @@
"SynchronizationFolderReport_Failed": "synchronization is failed", "SynchronizationFolderReport_Failed": "synchronization is failed",
"SearchBarPlaceholder": "Search", "SearchBarPlaceholder": "Search",
"SearchingIn": "Searching in", "SearchingIn": "Searching in",
"SearchPivotName": "Results",
"SettingsAboutGithub_Description": "Go to issue tracker GitHub repository.", "SettingsAboutGithub_Description": "Go to issue tracker GitHub repository.",
"SettingsAboutGithub_Title": "GitHub", "SettingsAboutGithub_Title": "GitHub",
"SettingsAccountManagementAppendMessage_Title": "Append messages to Sent folder", "SettingsAccountManagementAppendMessage_Title": "Append messages to Sent folder",

View File

@@ -1638,6 +1638,11 @@ namespace Wino.Core.Domain
/// </summary> /// </summary>
public static string SearchingIn => Resources.GetTranslatedString(@"SearchingIn"); public static string SearchingIn => Resources.GetTranslatedString(@"SearchingIn");
/// <summary>
/// Results
/// </summary>
public static string SearchPivotName => Resources.GetTranslatedString(@"SearchPivotName");
/// <summary> /// <summary>
/// Go to issue tracker GitHub repository. /// Go to issue tracker GitHub repository.
/// </summary> /// </summary>

View File

@@ -491,7 +491,7 @@ namespace Wino.Mail.ViewModels
if (ActiveFolder == null) return; if (ActiveFolder == null) return;
PivotFolders.Add(new FolderPivotViewModel("Results", isFocused)); PivotFolders.Add(new FolderPivotViewModel(Translator.SearchPivotName, isFocused));
// This will trigger refresh. // This will trigger refresh.
SelectedFolderPivot = PivotFolders.FirstOrDefault(); SelectedFolderPivot = PivotFolders.FirstOrDefault();