Skip to content

Commit

Permalink
Added Russian Language Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Oct 26, 2023
1 parent ed20703 commit 64175ff
Show file tree
Hide file tree
Showing 44 changed files with 648 additions and 57 deletions.
4 changes: 3 additions & 1 deletion src/Library/Sucrose.Resources/Helper/Resources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,19 @@ public static List<string> ListLanguage()
"FR",
"JA",
"PL",
"RU",
"TR"
};
}

public static List<string> ListLanguages()
{
return SHA.Assemble(SEAT.Executing)
return SHA.Assemble(SEAT.Entry)
.GetManifestResourceNames()
.Where(Resource => Resource.Contains("Locales/Locale.") && Resource.EndsWith(".xaml"))
.Select(Resource =>
{
MessageBox.Show(Resource);
int StartIndex = Resource.LastIndexOf("Locale.") + "Locale.".Length;
int EndIndex = Resource.LastIndexOf(".xaml");

Expand Down
34 changes: 34 additions & 0 deletions src/Library/Sucrose.Resources/Locales/Discord/Discord.RU.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Discord.BrowseButton">Просмотр</system:String>
<system:String x:Key="Discord.Details">Движок Обоев</system:String>
<system:String x:Key="Discord.DownloadButton">Скачать</system:String>

<system:String x:Key="Discord.LargestText0">Сила бананового мороженого</system:String>
<system:String x:Key="Discord.LargestText1">Улыбающийся шляпный монстр</system:String>
<system:String x:Key="Discord.LargestText2">Птицы, раскрашивающие облака</system:String>
<system:String x:Key="Discord.LargestText3">Скрытые приключения бегущих пингвинов</system:String>
<system:String x:Key="Discord.LargestText4">Зайцы, заблудшие в поле маргариток</system:String>
<system:String x:Key="Discord.LargestText5">Поющие ветряные ромашки</system:String>
<system:String x:Key="Discord.SmallestText0">Загадочные следы ног</system:String>
<system:String x:Key="Discord.SmallestText1">Летающие воздушные шары-рыбы</system:String>
<system:String x:Key="Discord.SmallestText2">Смеющиеся цветы</system:String>
<system:String x:Key="Discord.SmallestText3">Сладкие облака из сахарной ваты</system:String>
<system:String x:Key="Discord.SmallestText4">Замороженные пиццы-драконы</system:String>
<system:String x:Key="Discord.SmallestText5">Светящиеся грибные пираты</system:String>
<system:String x:Key="Discord.StatementText0">Вселенная полная хаоса</system:String>
<system:String x:Key="Discord.StatementText1">Среди бескрайних приключений</system:String>
<system:String x:Key="Discord.StatementText2">Странная и волшебная вселенная</system:String>
<system:String x:Key="Discord.StatementText3">Вызывающая пределы воображения</system:String>
<system:String x:Key="Discord.StatementText4">Необычная реальность</system:String>
<system:String x:Key="Discord.StatementText5">В глубинах воображения</system:String>
<system:String x:Key="Discord.StatementText6">Волшебное исследование</system:String>
<system:String x:Key="Discord.StatementText7">У врат неизведанных миров</system:String>
<system:String x:Key="Discord.StatementText8">Сложный мир снов</system:String>
<system:String x:Key="Discord.StatementText9">Приключение, выходящее за грани</system:String>
<system:String x:Key="Discord.StatementText10">Динамичный и удивительный опыт</system:String>
<system:String x:Key="Discord.StatementText11">Внутри фантастической сказки</system:String>
</ResourceDictionary>
27 changes: 27 additions & 0 deletions src/Library/Sucrose.Resources/Locales/Launcher/Launcher.RU.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Launcher.WallCustomizeText">Настроить Обои</system:String>
<system:String x:Key="Launcher.CreateLogText">Создать Журнал</system:String>
<system:String x:Key="Launcher.ExitText">Выход</system:String>
<system:String x:Key="Launcher.OpenReportText">Сообщить о Проблеме</system:String>
<system:String x:Key="Launcher.OpenText">Открыть Sucrose</system:String>
<system:String x:Key="Launcher.ReportText">Сообщение об Ошибке</system:String>
<system:String x:Key="Launcher.ReportWindowTitle">Sucrose Диагностика</system:String>
<system:String x:Key="Launcher.SaveDialogFilter">ZIP Файлы (*.zip)|*.zip|Все Файлы (*.*)|*.*</system:String>
<system:String x:Key="Launcher.SaveDialogTitle">Сохранить Журнал</system:String>
<system:String x:Key="Launcher.SettingText">Настройки</system:String>
<system:String x:Key="Launcher.TrayText">Sucrose Wallpaper Engine</system:String>
<system:String x:Key="Launcher.WallChangeText">Изменить Обои</system:String>
<system:String x:Key="Launcher.WallCloseText">Закрыть Обои</system:String>
<system:String x:Key="Launcher.WallOpenText">Открыть Обои</system:String>
<system:String x:Key="Launcher.WallStartText">Запустить Обои</system:String>
<system:String x:Key="Launcher.WallStopText">Остановить Обои</system:String>
<system:String x:Key="Launcher.UpdateText">Проверить Обновления</system:String>

<system:String x:Key="Launcher.UpdateText.Done">Ожидание Обновлений</system:String>
<system:String x:Key="Launcher.UpdateText.Check">Проверка Обновлений</system:String>
<system:String x:Key="Launcher.UpdateText.Progress">Прогресс Обновления {0}</system:String>
</ResourceDictionary>
17 changes: 17 additions & 0 deletions src/Library/Sucrose.Resources/Locales/Locale.RU.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Locale.xaml" />

<ResourceDictionary Source="Portal/Portal.xaml" />
<ResourceDictionary Source="Discord/Discord.xaml" />
<ResourceDictionary Source="Launcher/Launcher.xaml" />

<ResourceDictionary Source="Update/Update.RU.xaml" />
<ResourceDictionary Source="Portal/Portal.RU.xaml" />
<ResourceDictionary Source="Discord/Discord.RU.xaml" />
<ResourceDictionary Source="Watchdog/Watchdog.RU.xaml" />
<ResourceDictionary Source="Launcher/Launcher.RU.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
1 change: 1 addition & 0 deletions src/Library/Sucrose.Resources/Locales/Locale.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<system:String x:Key="Locale.FR">Français (v0.5)</system:String>
<system:String x:Key="Locale.JA">日本語 (v0.3)</system:String>
<system:String x:Key="Locale.PL">Polski (v0.5)</system:String>
<system:String x:Key="Locale.RU">Русский (v0.3)</system:String>
<system:String x:Key="Locale.TR">Türkçe (v0.8)</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.Area.Sound">Звук</system:String>
<system:String x:Key="Portal.Area.Log">Лог</system:String>
<system:String x:Key="Portal.Area.Hook">Крюк</system:String>
<system:String x:Key="Portal.Area.Store">Магазин</system:String>
<system:String x:Key="Portal.Area.Donate">Пожертвование</system:String>
<system:String x:Key="Portal.Area.System">Система</system:String>
<system:String x:Key="Portal.Area.Cache">Кэш</system:String>
<system:String x:Key="Portal.Area.Laptop">Ноутбук</system:String>
<system:String x:Key="Portal.Area.Support">Поддержка</system:String>
<system:String x:Key="Portal.Area.Reset">Сброс</system:String>
<system:String x:Key="Portal.Area.Backup">Резервное копирование</system:String>
<system:String x:Key="Portal.Area.Priority">Приоритет</system:String>
<system:String x:Key="Portal.Area.Engines">Двигатели</system:String>
<system:String x:Key="Portal.Area.Update">Обновление</system:String>
<system:String x:Key="Portal.Area.Library">Библиотека</system:String>
<system:String x:Key="Portal.Area.Developer">Разработчик</system:String>
<system:String x:Key="Portal.Area.Extensions">Расширения</system:String>
<system:String x:Key="Portal.Area.SystemResources">Системные ресурсы</system:String>
<system:String x:Key="Portal.Area.AppearanceBehavior">Внешний вид и Поведение</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.Category.All">Все</system:String>

<system:String x:Key="Portal.Category.Abstract">Абстракция</system:String>
<system:String x:Key="Portal.Category.Ambience">Атмосфера</system:String>
<system:String x:Key="Portal.Category.Animals">Животные</system:String>
<system:String x:Key="Portal.Category.Animation">Анимация</system:String>
<system:String x:Key="Portal.Category.Anime">Аниме</system:String>
<system:String x:Key="Portal.Category.ArchitectureandBuildings">Архитектура и Здания</system:String>
<system:String x:Key="Portal.Category.ArtandAbstract">Искусство и Абстракция</system:String>
<system:String x:Key="Portal.Category.Artworks">произведения искусства</system:String>
<system:String x:Key="Portal.Category.Bard">Бард</system:String>
<system:String x:Key="Portal.Category.BlackandWhite">Черно-белые</system:String>
<system:String x:Key="Portal.Category.CartoonandComics">Мультфильмы и Комиксы</system:String>
<system:String x:Key="Portal.Category.CitiesandPlaces">Города и Места</system:String>
<system:String x:Key="Portal.Category.CloudsandSkies">Облака и Небеса</system:String>
<system:String x:Key="Portal.Category.ColorfulGradients">Цветные Градиенты</system:String>
<system:String x:Key="Portal.Category.ComicBooks">Комиксы</system:String>
<system:String x:Key="Portal.Category.DigitalArt">Цифровое Искусство</system:String>
<system:String x:Key="Portal.Category.Dynamic">Динамичные</system:String>
<system:String x:Key="Portal.Category.EnchantedForests">Волшебные Леса</system:String>
<system:String x:Key="Portal.Category.Fantasy">Фэнтези</system:String>
<system:String x:Key="Portal.Category.FilmandTV">Фильм и ТВ</system:String>
<system:String x:Key="Portal.Category.FoodandDrinks">Еда и Напитки</system:String>
<system:String x:Key="Portal.Category.Galaxy">Галактика</system:String>
<system:String x:Key="Portal.Category.Game">Игры</system:String>
<system:String x:Key="Portal.Category.GeometricPatterns">Геометрические Узоры</system:String>
<system:String x:Key="Portal.Category.HolidaysandSeasons">Праздники и Сезоны</system:String>
<system:String x:Key="Portal.Category.HorrorandHalloween">Ужасы и Хэллоуин</system:String>
<system:String x:Key="Portal.Category.InspirationalQuotes">Вдохновляющие Цитаты</system:String>
<system:String x:Key="Portal.Category.KidsandCartoon">Дети и Мультфильм</system:String>
<system:String x:Key="Portal.Category.Landscape">Пейзаж</system:String>
<system:String x:Key="Portal.Category.LineArt">Линейное Искусство</system:String>
<system:String x:Key="Portal.Category.Medieval">Средневековье</system:String>
<system:String x:Key="Portal.Category.Minimalist">Минимализм</system:String>
<system:String x:Key="Portal.Category.Music">Музыка</system:String>
<system:String x:Key="Portal.Category.Nature">Природа</system:String>
<system:String x:Key="Portal.Category.Nightscapes">Ночные Пейзажи</system:String>
<system:String x:Key="Portal.Category.PatternsandTextures">Узоры и Текстуры</system:String>
<system:String x:Key="Portal.Category.Retro">Ретро</system:String>
<system:String x:Key="Portal.Category.RGB">RGB</system:String>
<system:String x:Key="Portal.Category.Sky">Небо</system:String>
<system:String x:Key="Portal.Category.Space">Космос</system:String>
<system:String x:Key="Portal.Category.Sports">Спорт</system:String>
<system:String x:Key="Portal.Category.Superheroes">Супергерои</system:String>
<system:String x:Key="Portal.Category.System">Система</system:String>
<system:String x:Key="Portal.Category.Tavern">Таверна</system:String>
<system:String x:Key="Portal.Category.Technology">Технологии</system:String>
<system:String x:Key="Portal.Category.Temple">Храм</system:String>
<system:String x:Key="Portal.Category.Time">Время</system:String>
<system:String x:Key="Portal.Category.UnderwaterandMarine">Подводный мир и Море</system:String>
<system:String x:Key="Portal.Category.Vehicles">Транспорт</system:String>
<system:String x:Key="Portal.Category.Vintage">Винтаж</system:String>
<system:String x:Key="Portal.Category.War">Война</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.DisplayPreferences.Title">Параметры отображения</system:String>
<system:String x:Key="Portal.DisplayPreferences.Close">Закрыть</system:String>

<system:String x:Key="Portal.DisplayPreferences.Expander">Режим размещения</system:String>
<system:String x:Key="Portal.DisplayPreferences.Expander.Description">Способ применения обоев к активным экранам.</system:String>

<system:String x:Key="Portal.DisplayPreferences.Screen">Только выбранный экран</system:String>

<system:String x:Key="Portal.DisplayPreferences.Expand">Растянуть между экранами</system:String>

<system:String x:Key="Portal.DisplayPreferences.Expand.Monitor">На всех мониторах</system:String>

<system:String x:Key="Portal.DisplayPreferences.Expand.Hint">Выберите режим растяжения между экранами</system:String>

<system:String x:Key="Portal.DisplayPreferences.Duplicate">Дублировать одинаковые обои</system:String>

<system:String x:Key="Portal.DisplayPreferences.Duplicate.Hint">Выберите режим дублирования одинаковых обоев</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.ExpanderCard.TitleText">Заголовок</system:String>
<system:String x:Key="Portal.ExpanderCard.DescriptionText">Описание</system:String>

<system:String x:Key="Portal.ExpanderCard.ExpandUpTip">Свернуть</system:String>
<system:String x:Key="Portal.ExpanderCard.ExpandDownTip">Развернуть</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.LibraryCard.TitleText">Заголовок</system:String>
<system:String x:Key="Portal.LibraryCard.DescriptionText">Описание</system:String>

<system:String x:Key="Portal.LibraryCard.MoreTip">Еще</system:String>
<system:String x:Key="Portal.LibraryCard.VersionTip">Для использования этой темы обновите Sucrose</system:String>

<system:String x:Key="Portal.LibraryCard.MenuReview">Обзор</system:String>
<system:String x:Key="Portal.LibraryCard.MenuUse">Использовать</system:String>
<system:String x:Key="Portal.LibraryCard.MenuPreview">Предпросмотр</system:String>
<system:String x:Key="Portal.LibraryCard.MenuCustomize">Настроить</system:String>
<system:String x:Key="Portal.LibraryCard.MenuFind">Поиск</system:String>
<system:String x:Key="Portal.LibraryCard.MenuShare">Поделиться</system:String>
<system:String x:Key="Portal.LibraryCard.MenuDelete">Удалить</system:String>
<system:String x:Key="Portal.LibraryCard.MenuEdit">Изменить</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<ResourceDictionary
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.OtherAbout.Title">О нас</system:String>
<system:String x:Key="Portal.OtherAbout.Close">Закрыть</system:String>

<system:String x:Key="Portal.OtherAbout.About">Привет, меня зовут Bayram Emekli, также известного под именем Taiizor. Я разработчик приложения Sucrose Wallpaper Engine, которое является бесплатным и с открытым исходным кодом. Спасибо за использование моего приложения.</system:String>

<system:String x:Key="Portal.OtherAbout.Update">Версия: v{0}</system:String>
<system:String x:Key="Portal.OtherAbout.Update.Description">Последняя проверка: {0}</system:String>

<system:String x:Key="Portal.OtherAbout.Update.Notes">Примечания к обновлению</system:String>

<system:String x:Key="Portal.OtherAbout.Partners">Партнеры</system:String>

<system:String x:Key="Portal.OtherAbout.Contributors">Участники</system:String>

<system:String x:Key="Portal.OtherAbout.TermsOfService">Условия использования</system:String>

<system:String x:Key="Portal.OtherAbout.PrivacyPolicy">Политика конфиденциальности</system:String>

<system:String x:Key="Portal.OtherAbout.CodeOfConduct">Правила поведения</system:String>
</ResourceDictionary>
Loading

0 comments on commit 64175ff

Please sign in to comment.