From d7a290c5959df63e3c8013fafe92ac2966eeadfa Mon Sep 17 00:00:00 2001 From: sbwalker Date: Wed, 17 Jul 2024 16:34:02 -0400 Subject: [PATCH] add localization to search settings --- .../Modules/Admin/Search/Index.razor | 6 +- .../Resources/Modules/Admin/Search/Index.resx | 162 ++++++++++++++++++ 2 files changed, 165 insertions(+), 3 deletions(-) create mode 100644 Oqtane.Client/Resources/Modules/Admin/Search/Index.resx diff --git a/Oqtane.Client/Modules/Admin/Search/Index.razor b/Oqtane.Client/Modules/Admin/Search/Index.razor index 9ef344115..23304e8d9 100644 --- a/Oqtane.Client/Modules/Admin/Search/Index.razor +++ b/Oqtane.Client/Modules/Admin/Search/Index.razor @@ -82,12 +82,12 @@ settings = SettingService.SetSetting(settings, "Search_MininumWordLength", _minimumWordLength, true); settings = SettingService.SetSetting(settings, "Search_IgnoreWords", _ignoreWords, true); await SettingService.UpdateSiteSettingsAsync(settings, PageState.Site.SiteId); - AddModuleMessage(Localizer["Success.SaveSiteSettings"], MessageType.Success); + AddModuleMessage(Localizer["Success.Save"], MessageType.Success); } catch (Exception ex) { - await logger.LogError(ex, "Error Saving Site Settings {Error}", ex.Message); - AddModuleMessage(Localizer["Error.SaveSiteSettings"], MessageType.Error); + await logger.LogError(ex, "Error Saving Search Settings {Error}", ex.Message); + AddModuleMessage(Localizer["Error.Save"], MessageType.Error); } } } \ No newline at end of file diff --git a/Oqtane.Client/Resources/Modules/Admin/Search/Index.resx b/Oqtane.Client/Resources/Modules/Admin/Search/Index.resx new file mode 100644 index 000000000..b43928bbd --- /dev/null +++ b/Oqtane.Client/Resources/Modules/Admin/Search/Index.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Enabled? + + + Specify if search indexing is enabled + + + Last Indexed: + + + The date/time which the site was last indexed on + + + Ignore Paths: + + + Comma delimited list of page paths which should be ignored + + + Ignore Entities: + + + Comma delimited list of entities which should be ignored + + + Word Length: + + + Minimum length of a word to be indexed + + + Ignore Words: + + + Comma delimited list of words which should be ignored + + + Search Settings Saved Successfully + + + Error Saving Search Settings + + \ No newline at end of file