From 923e502288f2ce9fc3acbb72e7a25379cd5d876e Mon Sep 17 00:00:00 2001 From: Reidea <46284904+Reidea@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:22:23 +0500 Subject: [PATCH] Add Russian local to the resources. (#796) --- src/Ursa.Themes.Semi/Index.axaml.cs | 3 ++- src/Ursa.Themes.Semi/Locale/ru-ru.axaml | 21 +++++++++++++++++++++ src/Ursa.Themes.Semi/Locale/ru-ru.axaml.cs | 13 +++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/Ursa.Themes.Semi/Locale/ru-ru.axaml create mode 100644 src/Ursa.Themes.Semi/Locale/ru-ru.axaml.cs diff --git a/src/Ursa.Themes.Semi/Index.axaml.cs b/src/Ursa.Themes.Semi/Index.axaml.cs index 1d77618..7fc23f2 100644 --- a/src/Ursa.Themes.Semi/Index.axaml.cs +++ b/src/Ursa.Themes.Semi/Index.axaml.cs @@ -17,6 +17,7 @@ public class SemiTheme : Styles { new CultureInfo("zh-CN"), new zh_cn() }, { new CultureInfo("en-US"), new en_us() }, { new CultureInfo("fr-FR"), new fr_fr() }, + { new CultureInfo("ru-RU"), new ru_ru() }, }; private static readonly ResourceDictionary _defaultResource = new zh_cn(); @@ -97,4 +98,4 @@ public class SemiTheme : Styles if (!_localeToResource.TryGetValue(culture, out var resources)) return; foreach (var kv in resources) element.Resources[kv.Key] = kv.Value; } -} \ No newline at end of file +} diff --git a/src/Ursa.Themes.Semi/Locale/ru-ru.axaml b/src/Ursa.Themes.Semi/Locale/ru-ru.axaml new file mode 100644 index 0000000..3011fb4 --- /dev/null +++ b/src/Ursa.Themes.Semi/Locale/ru-ru.axaml @@ -0,0 +1,21 @@ + + На передний план + На слой выше + На слой ниже + На задний план + ОК + Отмена + Да + Нет + Закрыть + Перейти к странице + + Темная + Светлая + Системная + Подтвердить + Время начала + Время окончания + diff --git a/src/Ursa.Themes.Semi/Locale/ru-ru.axaml.cs b/src/Ursa.Themes.Semi/Locale/ru-ru.axaml.cs new file mode 100644 index 0000000..19f963d --- /dev/null +++ b/src/Ursa.Themes.Semi/Locale/ru-ru.axaml.cs @@ -0,0 +1,13 @@ +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace Ursa.Themes.Semi.Locale; + +public class ru_ru: ResourceDictionary +{ + public ru_ru() + { + AvaloniaXamlLoader.Load(this); + this["STRING_PAGINATION_PAGE"] = string.Empty; + } +}