From 5cb8cffc3fc715b2305ba8831cbf54112fb5ca84 Mon Sep 17 00:00:00 2001 From: DavidLazarescu Date: Sun, 12 Nov 2023 16:56:03 +0100 Subject: [PATCH 1/4] Added russian translation Co-authored-by: Dmitr Fedorov --- src/presentation/settings/MAppearancePage.qml | 2 +- src/presentation/translations/librum_ru.ts | 824 ++++++++++-------- 2 files changed, 471 insertions(+), 355 deletions(-) diff --git a/src/presentation/settings/MAppearancePage.qml b/src/presentation/settings/MAppearancePage.qml index ac47a7dbf..0178ff59b 100644 --- a/src/presentation/settings/MAppearancePage.qml +++ b/src/presentation/settings/MAppearancePage.qml @@ -43,10 +43,10 @@ Page { MButton { id: resetButton - Layout.preferredWidth: 160 Layout.preferredHeight: 38 Layout.alignment: Qt.AlignBottom borderWidth: 0 + horizontalMargins: 12 backgroundColor: Style.colorBasePurple text: qsTr("Restore Defaults") fontSize: Fonts.size12 diff --git a/src/presentation/translations/librum_ru.ts b/src/presentation/translations/librum_ru.ts index af49092c4..ae25dbe6f 100644 --- a/src/presentation/translations/librum_ru.ts +++ b/src/presentation/translations/librum_ru.ts @@ -6,74 +6,75 @@ About - + Справка About this application - + О программе Details - + Подробно CURRENT VERSION Keep it capitalized - + ТЕКУЩАЯ ВЕРСИЯ QT VERSION Keep it capitalized - + ВЕРСИЯ QT Up-to date - + Актульная Creator - + Создатель COMPANY NAME Keep it capitalized - + НАЗВАНИЕ КОМПАНИИ WEBSITE Keep it capitalized - + ВЕБ-САЙТ CONTACT Keep it capitalized - + Связаться GITHUB Keep it capitalized - + GITHUB This App - + Это приложение Librum is here for everyone who just wants to enjoy a good book. We hope you have a great time using it! Feel free to leave us a rating and some feedback. - + Librum создан для тех, кто просто хочет насладиться хорошей книгой. +Мы надеемся, что Вы прекрасно проведёте время за нашим приложением! Не стесняйтесь оставлять нам оценки и отзывы. @@ -82,22 +83,22 @@ We hope you have a great time using it! Feel free to leave us a rating and some I accept the Make sure to translate the following words together to make a logical sentence - + Я принимаю Terms of Service - + Условия Обслуживания and the - + и Privacy Policy - + Политику Конфиденциальности @@ -105,109 +106,109 @@ We hope you have a great time using it! Feel free to leave us a rating and some Account - + Аккаунт Save - + Сохранить Profile - + Профиль First name - + Имя Last name - + Фамилия Email - + Почта Change password - + Изменить пароль Password - + Пароль Password confirmation - + Подтверждение пароля Your data - + Ваши данные Analyse your reading to make better recommendations - + Анализировать, что Вы читаете, чтобы выдавать улучшенные рекомендации Anonymously share information about the books you read to help us improve Librum - + Анонимно делиться информацией о книгах, которые Вы читаете, чтобы помочь нам улучшить Librum Collect data on crashes so that we can prevent it from happening again - + Собирать данные о вылетах программы, чтобы мы могли их исправить Collect data to display in your statistics - + Собирать данные, чтобы отображать их в Вашей статистике Your Account - + Ваш Аккаунт Logout - + Выйти Delete Your Account - + Удалить Ваш Аккаунт Whoops - + Ой It looks like you forgot to save your changes, are you sure that you dont want to save them? - + Похоже, Вы забыли сохранить Ваши изменения, Вы уверены, что не хотите сохранить их? Don't save - + Не сохранять Passwords don't match! - + Пароли не совпадают! @@ -215,12 +216,12 @@ We hope you have a great time using it! Feel free to leave us a rating and some Add-ons Page - + Страница с Расширениями Currently in Development - + В настоящий момент в Разработке @@ -228,37 +229,37 @@ We hope you have a great time using it! Feel free to leave us a rating and some Edit Shortcuts - + Изменить Сочетания Клавиш Action - + Действие None selected - + Ни одно не выбрано The shortcut - + Сочетание клавиш is already used for - + уже используется для Apply - + Применить Cancel - + Отмена @@ -266,7 +267,7 @@ We hope you have a great time using it! Feel free to leave us a rating and some Add a tag... - + Добавить тег... @@ -274,17 +275,17 @@ We hope you have a great time using it! Feel free to leave us a rating and some Add - + Добавить Rename - + Переименовать Delete - + Удалить @@ -292,113 +293,181 @@ We hope you have a great time using it! Feel free to leave us a rating and some Appearance - + Внешний вид Make your own experience - + Создайте свой собственный опыт Restore Defaults - + Сбросить Display - + Экран Theme - + Тема Dark - + Тёмная Light - + Светлая Page Color Mode - + Цветовой Режим Страницы Normal - + Нормальный Inverted - + Инвертированный Language - + Язык Reading - + Чтение Page spacing - + Расстояние между страницами Display book title in titlebar - + Отображать название книги в строке с названием + + + Layout direction + Направление макета + + + Vertical + Вертикально + + + Horizontal + Горизонтально + + + Display mode + Режим отображения + + + Single Page + Одна страница + + + Double Page + Разворот + + + Page transition + Переход страницы + + + Instant + Мнгновенно + + + Fading + Исчезающий + + + Swipe + Перелистывание + + + Swap + Замена Default Zoom - + Увеличение по-умолчанию Highlights - + Выделение Colors - + Цвета Opacity - + Непрозрачность + + + Behavior + Поведение + + + Smooth scrolling + Плавная прокрутка + + + Loop after last page + Зациклить после последней страницы + + + Cursor mode + Режим курсора + + + Hidden after delay + Спрятать после задержки + + + Always visible + Всегда виден Reset settings? - + Сбросить настройки? Resetting your settings is a permanent action, there will be no way to restore them! - + Сброс настроек необратим, Вы не сможете потом их восстановить! No, Keep - + Нет, Оставить Yes, Reset - + Да, Сбросить @@ -406,58 +475,59 @@ We hope you have a great time using it! Feel free to leave us a rating and some Behavior - + Поведение Change the way Librum works - + Измените то, как работает Librum Restore Defaults - + Сбросить Books - + Книги Cursor mode - + Режим курсора Hidden after delay - + Спрятать после задержки Always visible - + Всегда виден Reset settings? - + Сбросить настройки? Resetting your settings is a permanent action, there will be no way to restore them! - + Сброс настроек необратим, +Вы не сможете восстановить их! No, Keep - + Нет, Оставить Yes, Reset - + Да, Сбросить @@ -466,13 +536,14 @@ We hope you have a great time using it! Feel free to leave us a rating and some Unknown - + Неизвестно Your book has not been uploaded to the cloud. Either you are offline, or your storage is full. - + Выша книга не была загружена в облако. +Либо Вы не в сети, либо Ваше хранилище заполнено. @@ -480,23 +551,23 @@ Either you are offline, or your storage is full. Book details - + Информация о книге Change - + Изменить Delete - + Удалить Title - + Название @@ -505,79 +576,79 @@ Either you are offline, or your storage is full. Unknown - + Неизвестно Authors - + Авторы Pages - + Страницы Language - + Языки Document creator - + Создатель документа Creation date - + Дата создания Format - + Формат Document size - + Размер документа Added - + Добавлено Last opened - + Последнее открытие Apply - + Применить Cancel - + Отменить Select - + Выбрать All files - + Все файлы files - + файлы @@ -585,38 +656,38 @@ Either you are offline, or your storage is full. Download - + Скачать Read book - + Читать Book details - + Информация Save to files - + Сохранить Manage tags - + Теги Mark as read If this is too long in any language, use "Read" (past form) instead - + Прочитано Remove book - + Удалить @@ -624,38 +695,38 @@ Either you are offline, or your storage is full. Bookmarks - + Закладки Search - + Искать Add Bookmark - + Добавить Закладку New Bookmark - + Новая Закладка Follow Context: "Follow" the bookmark (go to its page) - + Отслеживать Rename - + Переименовать Delete - + Удалить @@ -664,12 +735,12 @@ Either you are offline, or your storage is full. Contents Context: Contents of the book, also known as outline - + Содержание Search - + Найти @@ -677,7 +748,7 @@ Either you are offline, or your storage is full. Any - + Все @@ -685,37 +756,37 @@ Either you are offline, or your storage is full. Confirm Account Deletion - + Подтвердить Удаление Аккаунта Deleting your account is an irreversible action.<br>Once you delete your account, there is <b>no</b> going back. Please be certain. - + Удаление Вашего аккаунта необратимо.<br>После удаления аккаунта пути назад уже <br>не<br> будет. Пожалуйста, будьте уверены. Your Email - + Ваша Почта Confirm the deletion by entering your Account's email. - + Подтвердите удаление, введя почту Аккаунта. Cancel - + Отмена Delete - + Удалить Your email is wrong - + Ваша почта неправильная @@ -723,22 +794,22 @@ Either you are offline, or your storage is full. Search - + Искать No definitions found - + Ничего не найдено Search online - + Искать онлайн Source - + Источник @@ -746,42 +817,42 @@ Either you are offline, or your storage is full. Download book - + Скачать книгу Title - + Название Authors - + Авторы Language - + Язык Downloads - + Скачиваний Format - + Формат Download - + Скачать Cancel - + Отмена @@ -789,12 +860,12 @@ Either you are offline, or your storage is full. Left - + Левый Right - + Правый @@ -802,12 +873,12 @@ Either you are offline, or your storage is full. Quite empty here, what about adding your first book? - + Здесь пустовато, не хотите добавить свою первую книгу? Add book - + Добавить кингу @@ -816,77 +887,77 @@ Either you are offline, or your storage is full. You have reached your daily limit. Make sure that the words make a valid sentence - + Вы достигли своего дневного лимита. Click - + Нажмите here - + сюда to learn more. - + , чтобы узнать больше. Oops! The text is too long. Please shorten your selection. - + Ой! Текст слишком длинный. Пожалуйста, сократите выделенную область. Explain - + Объяснить Explain like I'm five - + Объяснить как ребёнку Summarize - + Подытожить Give more information - + Дать больше информации Explain visually - + Объяснить визуально Mode - + Режим None selected - + Ничего не выбрано Request - + Запрос Note: AI responses can be inaccurate - + Примечание: ответы ИИ могут быть неточными Ask - + Спросить @@ -894,7 +965,7 @@ Either you are offline, or your storage is full. Filters - + Фильтры @@ -902,77 +973,77 @@ Either you are offline, or your storage is full. e.g. Uncle bob - + Например, Uncle Bob Authors - + Авторы e.g. 2d ago - + Например, 2d ago Added - + Добавлено Read - + Прочитано Unread - + Непрочитано Format - + Формат Any - + Все Pdf - + Pdf Epub - + Epub Mobi - + Mobi Txt - + Txt Only Books - + Только Книги Only Files - + Только Файлы Apply Filter - + Применить Фильтр @@ -980,27 +1051,27 @@ Either you are offline, or your storage is full. Forgot Password - + Забыли пароль Enter your email and we'll send you a link to reset your password - + Введите Вашу почту и мы вышлем Вам ссылку для сброса пароля Send Email - + Отправить Почту Back to Login - + Назад на страницу входа Email sent! Keep an eye on your inbox - + Почта отправлена! Проверьте Ваши входящие письма @@ -1008,7 +1079,7 @@ Either you are offline, or your storage is full. .jpeg - + .jpeg @@ -1016,22 +1087,63 @@ Either you are offline, or your storage is full. No books were found - + Книги не найдены Couldn't load free books. Please, check your network connection - + Не удалось загрузить бесплатные книги. Пожалуйста, проверьте интернет-подключение Free books - + Бесплатные книги Choose from over 70,000 books - + Выбирайте среди более 70,000 книг + + + + MGeneralSettingsPage + + General settings + Общие настройки + + + Change the way Librum works + Измените то, как работает Librum + + + Restore Defaults + Сбросить по-умолчанию + + + Books + Книги + + + Open books after creation + Открывать книги после создания + + + Reset settings? + Сбросить настройки? + + + Resetting your settings is a permanent action, there + will be no way to restore them! + Сброс настроек необратим, +вернуть их нельзя! + + + No, Keep + Нет, оставить + + + Yes, Reset + Да, сбросить @@ -1039,103 +1151,105 @@ Either you are offline, or your storage is full. A new version is available! - + Доступна новая версия! Update Now - + Обновить Сейчас Home As in 'Home Page', might be closer to 'Start' in other languages - + Главная You have %1 books - + У Вас %1 книг Add books - + Добавить книги Remove Book? - + Удалить Книгу? Deleting a book is a permanent action, no one will be able to restore it afterwards! - + Удаление книги необратимо, +после этого её нельзя будет восстановить! Remove from Device - + Удалить с Устройства Delete Everywhere - + Удалить Везде Save - + Сохранить Limit Reached - + Достигнут Лимит You have reached your upload limit. Delete unused books to free up space or upgrade. - + Вы достигли лимита загрузок на сервер. +Удалите ненужные книги или приобретите улучшение для аккаунта. Ok - + Хорошо Upgrade - + Приобрести улучшение Unsupported File - + Неподдерживаемый Файл Oops! This file is not supported by Librum. - + Ой! Librum не поддерживает этот файл. Import - + Добавить All files - + Все файлы files - + файлы @@ -1143,62 +1257,62 @@ Delete unused books to free up space or upgrade. Welcome back! - + Добро пожаловать! Log into your account - + Войдите в Ваш аккаунт Email - + Почта Password - + Пароль Remember me - + Запомнить меня Forgot password? - + Забыли пароль? Login - + Войти Don't have an account? Register - + Нет аккаунта? Зарегистрируйтесь We're Sorry - + Извините Logging you in failed, please try again later. - + Не удалось войти, пожалуйста, повторите позже. Ok - + Хорошо Report - + Сообщить @@ -1206,17 +1320,17 @@ Delete unused books to free up space or upgrade. TAGS - + ТЕГИ Manage Tags - + Теги Done - + Готово @@ -1224,12 +1338,12 @@ Delete unused books to free up space or upgrade. No book satisfies the filter conditions - + Ни одна книга не удовлетворяет условиям фильтра Remove Filters - + Удалить фильтры @@ -1237,12 +1351,12 @@ Delete unused books to free up space or upgrade. OFF - + ВЫКЛ ON - + ВКЛ @@ -1250,17 +1364,17 @@ Delete unused books to free up space or upgrade. Sync - + Обновить Manage Profile - + Профиль Logout - + Выйти @@ -1268,22 +1382,22 @@ Delete unused books to free up space or upgrade. Invert colors - + Поменять цвета Sync book - + Обновить More options - + Ещё Save - + Сохранить @@ -1291,22 +1405,22 @@ Delete unused books to free up space or upgrade. Options - + Опции Find - + Найти Next - + Следующий Previous - + Предыдущий @@ -1314,17 +1428,17 @@ Delete unused books to free up space or upgrade. From start - + Сначала Case sensitive - + С учётом регистра Whole words - + Целые слова @@ -1332,13 +1446,13 @@ Delete unused books to free up space or upgrade. Unknown name - + Неизвестное имя of As in 21 "of" 400 - + из @@ -1347,13 +1461,13 @@ Delete unused books to free up space or upgrade. Key As in key on the keyboard - + Клавиша Press to record As in recording a key that is pressed on the keyboard - + Нажать для записи @@ -1361,68 +1475,69 @@ Delete unused books to free up space or upgrade. Welcome! - + Добро Пожаловать! Your credentials are only used to authenticate yourself. Everything will be stored in a secure database. - + Ваши учетные данные используются только для входа в Ваш аккаунт. Они будут сохранены в защищенной базе данных. First name - + Имя Last name - + Фамилия Email - + Почта Password - + Пароль Confirmation password - + Подтверждение пароля Let's start - + Давайте начнем Already have an account? Login - + Уже есть аккаунт? Войти Confirm Your Email - + Подтвердите Вашу Почту You're are almost ready to go! Confirm your email by clicking the link we sent you. - + Почти готово! +Подтвердите Вашу почту, перейдя по ссылке, которую мы Вам отправили. Resend - + Отправить снова Passwords don't match - + Пароли не совпадают @@ -1430,7 +1545,7 @@ Confirm your email by clicking the link we sent you. Search for books - + Искать книги @@ -1438,17 +1553,17 @@ Confirm your email by clicking the link we sent you. Click to select an image or drop it into in this area - + Нажмите, чтобы выбрать изображение, или перенесите его в эту область All files - + Все файлы files - + файлы @@ -1456,27 +1571,27 @@ Confirm your email by clicking the link we sent you. Copy - + Копировать Highlight - + Выделить Look Up - + Искать Explain - + Объяснить Remove - + Удалить @@ -1484,59 +1599,59 @@ Confirm your email by clicking the link we sent you. Settings - + Настройки GLOBAL SETTINGS Keep it capitalized - + ГЛОБАЛЬНЫЕ НАСТРОЙКИ About - + Справка Appearance - + Внешний вид Behavior - + Поведение Shortcuts - + Сочетания клавиш Updates - + Обновления USER & ACCOUNT Keep it capitalized - + ПОЛЬЗОВАТЕЛЬ И АККАУНТ Account - + Аккаунт Storage - + Хранилище Support us - + Поддержать нас @@ -1544,7 +1659,7 @@ Confirm your email by clicking the link we sent you. None - + Ничего @@ -1552,34 +1667,34 @@ Confirm your email by clicking the link we sent you. Shortcuts - + Сочетания клавиш Make your own experience - + Создайте свой собственный опыт Edit shortcut - + Изменить сочетания клавиш ACTION Keep it capitalized - + ДЕЙСТВИЕ SHORTCUTS Keep it capitalized - + СОЧЕТАНИЯ КЛАВИШ Search for shortcuts - + Искать сочетания клавиш @@ -1587,27 +1702,27 @@ Confirm your email by clicking the link we sent you. Free books - + Бесплатные Home - + Главная Statistics - + Статистика Add-ons - + Расширения Settings - + Настройки @@ -1615,7 +1730,7 @@ Confirm your email by clicking the link we sent you. Sort - + Сортировать @@ -1623,27 +1738,27 @@ Confirm your email by clicking the link we sent you. Recently added - + Недавно добавленные Recently read - + Недавно прочитанные Progress - + Прогресс Book (A-Z) - + Книга (A-Z) Authors (A-Z) - + Авторы (A-Z) @@ -1651,12 +1766,12 @@ Confirm your email by clicking the link we sent you. Statistics Page - + Страница со Статистикой Currently in Development - + В настоящий момент в Разработке @@ -1664,87 +1779,87 @@ Confirm your email by clicking the link we sent you. Storage - + Хранилище Your storage - + Ваше хранилище Upgrade - + Приобрести улучшение YOUR TIER Keep capitalized ("TIER" as in subscription) - + ВАШ УРОВЕНЬ BASIC Keep capitalized ("BASIC" is the name of the tier) - + БАЗОВЫЙ See why we offer multiple tiers - + Посмотрите, почему мы предоставляем несколько уровней USED STORAGE Keep capitalized - + ЗАНЯТО МЕСТА Used Storage - + Занято Места Remaining Storage - + Осталось Места YOUR BOOKS Keep capitalized - + ВАШИ КНИГИ Books in your Library - + Книги в Вашей Библиотеке Upgrade Your Account - + Улучшите Ваш Аккаунт We don't offer upgrading options at the moment. - + В настоящий момент мы не предоставляем опции для улучшения. If you require additional storage, please contact us at - + Если Вам нужно дополнительное место в хранилище, пожалуйста, свяжитесь с нами Close - + Закрыть Email Us - + Написать Нам @@ -1753,43 +1868,44 @@ Confirm your email by clicking the link we sent you. Support us - + Поддержать нас Thanks for considering - + Спасибо за поддержку We are a small team of opensource developers creating apps for the community. We love working on fun projects, supporting our community and trying to make the world a better place. - + Мы небольшая команда open-source разработчиков, которая создает приложения для сообщества. +Мы любим работать над интересными проектами, поддерживать наше сообщество и пытаться сделать мир лучше. If you feel like supporting us and our projects, feel free to support us: - + Если Вы захотите поддержать нас и наши проекты - не стесняйтесь это делать: You can support us in many other ways as well, if you are a developer or a designer, feel free to - + Вы можете поддержать нас многими другими способами, если Вы разработчик или дизайнер, то не стесняйтесь contribute to Librum - + учавствовать в разработке Librum If you are not, you can still help us by spreading the word about Librum. - + Также Вы можете помочь нам, рассказывая другим людям о Librum. Thank you for your support. We hope you enjoy Librum! - + Спасибо Вам за поддержку. Мы надеемся, что Вам нравится Librum! @@ -1797,7 +1913,7 @@ working on fun projects, supporting our community and trying to make the world a Tags - + Теги @@ -1805,17 +1921,17 @@ working on fun projects, supporting our community and trying to make the world a Select - + Выбрать Rename - + Переименовать Delete - + Удалить @@ -1823,12 +1939,12 @@ working on fun projects, supporting our community and trying to make the world a Title - + Название Description - + Описание @@ -1836,22 +1952,22 @@ working on fun projects, supporting our community and trying to make the world a Remove Filters - + Удалить фильтры Remove Tags - + You are offline - + Вы не в сети Your library is being synchronized with the cloud - + Сейчас Ваша библиотека синхронизируется с облаком @@ -1859,22 +1975,22 @@ working on fun projects, supporting our community and trying to make the world a You are up to date! - + У Вас последняя версия! Make sure to check for updates regularly, so you dont miss out on any great features. - + Регулярно проверяйте наличие обновлений, чтобы не пропустить интересный новый функционал. Your current version is: - + Ваша текущая версия: See our latest changes at: - + Посмотрите последние изменения здесь: @@ -1882,65 +1998,65 @@ working on fun projects, supporting our community and trying to make the world a A new update is available! - + Доступно новое обноление! Download the new version to get great new improvements. - + Загрузите новую версию, чтобы получить новые замечательные улучшения. The newest version is: - + Новейшая версия: Update - + Обновить See the exact changes on our website at: - + Посмотрите подробные изменения на нашем сайте: Updating on Linux - + Обновление на Linux Please use your package manager to update Librum or download the newest version from our - + Пожалуйста, используйте Ваш менеджер пакетов, чтобы обновить Librum, или загрузите новейшую версию с нашего website - + сайта Close - + Закрыть Email Us - + Написать Нам The Update Failed - + Не Удалось Обновить Please try again later or download the newest version from our - + Пожалуйста, повторите снова или загрузите новейшую версию с нашего @@ -1948,12 +2064,12 @@ working on fun projects, supporting our community and trying to make the world a Updates - + Обновления Any new update? - + Есть новое обновление? @@ -1961,22 +2077,22 @@ working on fun projects, supporting our community and trying to make the world a Accept - + Принять Decline - + Отклонить Do you Accept? - + Вы Принимаете? Message - + Сообщение @@ -1984,12 +2100,12 @@ working on fun projects, supporting our community and trying to make the world a Updating - + Процесс обновления Downloading - + Процесс загрузки @@ -1997,7 +2113,7 @@ working on fun projects, supporting our community and trying to make the world a Librum - Your ebook reader - + Librum - Ваше приложение для чтения электронных книг From d92f57ac2033eac13e10f686f523e75d3288b066 Mon Sep 17 00:00:00 2001 From: DavidLazarescu Date: Sun, 12 Nov 2023 17:41:11 +0100 Subject: [PATCH 2/4] Improved the russian translation --- src/presentation/CMakeLists.txt | 2 +- src/presentation/LanguageModel.qml | 8 +-- .../MConfirmAccountDeletionPopup.qml | 2 + .../modules/CustomComponents/MDualToggle.qml | 8 ++- src/presentation/settings/MAppearancePage.qml | 4 +- src/presentation/settings/MBehaviorPage.qml | 4 +- src/presentation/translations/librum_de.ts | 44 +++++++++------ src/presentation/translations/librum_en.ts | 44 +++++++++------ src/presentation/translations/librum_ru.ts | 54 +++++++++++-------- 9 files changed, 105 insertions(+), 65 deletions(-) diff --git a/src/presentation/CMakeLists.txt b/src/presentation/CMakeLists.txt index c068c9e89..786370d00 100644 --- a/src/presentation/CMakeLists.txt +++ b/src/presentation/CMakeLists.txt @@ -19,7 +19,7 @@ set(translation_files translations/librum_en.ts translations/librum_de.ts translations/librum_ru.ts - translations/librum_it.ts + translations/librum_pt.ts ) # Translations for the application diff --git a/src/presentation/LanguageModel.qml b/src/presentation/LanguageModel.qml index 364bc3760..31c9dc72b 100644 --- a/src/presentation/LanguageModel.qml +++ b/src/presentation/LanguageModel.qml @@ -13,8 +13,8 @@ ListModel { text: "Deutsch" code: "de" } - // ListElement { - // text: "Русский" - // code: "ru" - // } + ListElement { + text: "Русский" + code: "ru" + } } diff --git a/src/presentation/modules/CustomComponents/MConfirmAccountDeletionPopup.qml b/src/presentation/modules/CustomComponents/MConfirmAccountDeletionPopup.qml index b12f7496d..ddd67e4e5 100644 --- a/src/presentation/modules/CustomComponents/MConfirmAccountDeletionPopup.qml +++ b/src/presentation/modules/CustomComponents/MConfirmAccountDeletionPopup.qml @@ -72,6 +72,8 @@ Popup { id: infoText Layout.topMargin: 20 Layout.leftMargin: 52 + Layout.fillWidth: true + wrapMode: Text.WordWrap textFormat: Text.RichText text: qsTr("Deleting your account is an irreversible action.
Once you delete your account, there is no going back. Please be certain.") font.pointSize: Fonts.size14 diff --git a/src/presentation/modules/CustomComponents/MDualToggle.qml b/src/presentation/modules/CustomComponents/MDualToggle.qml index f7fe0899d..78194a66c 100644 --- a/src/presentation/modules/CustomComponents/MDualToggle.qml +++ b/src/presentation/modules/CustomComponents/MDualToggle.qml @@ -17,10 +17,16 @@ Item { property string rightDisplayText: qsTr("Right") property bool leftSelected: false property bool rightSelected: true // default + property int minWidth: 178 signal toggled(string newSelected) implicitHeight: 38 - implicitWidth: 178 + implicitWidth: { + let biggestText = Math.max(leftLabel.implicitWidth, + rightLabel.implicitWidth) + + return Math.max(minWidth, biggestText * 2 + 42) + } Pane { id: container diff --git a/src/presentation/settings/MAppearancePage.qml b/src/presentation/settings/MAppearancePage.qml index 0178ff59b..dbb2db224 100644 --- a/src/presentation/settings/MAppearancePage.qml +++ b/src/presentation/settings/MAppearancePage.qml @@ -212,7 +212,9 @@ Page { function calculateDefaultIndex() { let selectedLanguage = AppInfoController.language for (var i = 0; i < model.count; ++i) { - if (model.get(i).text === selectedLanguage) + if (model.get(i).text.toLowerCase( + ) === selectedLanguage.toLowerCase( + )) return i } diff --git a/src/presentation/settings/MBehaviorPage.qml b/src/presentation/settings/MBehaviorPage.qml index 0e9de1b9d..c4023d44c 100644 --- a/src/presentation/settings/MBehaviorPage.qml +++ b/src/presentation/settings/MBehaviorPage.qml @@ -129,7 +129,7 @@ MFlickWrapper { id: hideCursorAfterDelayTitle Layout.fillWidth: true Layout.topMargin: 18 - text: "Hide cursor after delay" + text: qsTr("Hide cursor after delay") font.pointSize: Fonts.size13 font.weight: Font.DemiBold color: Style.colorText @@ -154,7 +154,7 @@ MFlickWrapper { } Text { - text: "ms" + text: qsTr("ms") font.pointSize: Fonts.size13 font.weight: Font.DemiBold color: Style.colorText diff --git a/src/presentation/translations/librum_de.ts b/src/presentation/translations/librum_de.ts index 8044487bc..876bbb132 100644 --- a/src/presentation/translations/librum_de.ts +++ b/src/presentation/translations/librum_de.ts @@ -354,17 +354,17 @@ Wir hoffen, dass du eine tolle Zeit hast! Lass uns doch eine Bewertung da.Sprache - + Reading Lesen - + Page spacing Seiten Abstand - + Display book title in titlebar Den Buchtitel in der Titelleiste anzeigen @@ -413,22 +413,22 @@ Wir hoffen, dass du eine tolle Zeit hast! Lass uns doch eine Bewertung da.Tauschen - + Default Zoom Standard-Zoom - + Highlights Markierungen - + Colors Farben - + Opacity Transparenz @@ -457,24 +457,24 @@ Wir hoffen, dass du eine tolle Zeit hast! Lass uns doch eine Bewertung da.Immer sichtbar - + Reset settings? Einstellungen zurücksetzen? - + Resetting your settings is a permanent action, there will be no way to restore them! Einstellungen zurückzusetzen ist eine endgültige Aktion, es gibt keine Möglichkeit sie wiederherzustellen! - + No, Keep Nein, behalte - + Yes, Reset Ja, zurücksetzen @@ -516,6 +516,16 @@ es gibt keine Möglichkeit sie wiederherzustellen! Always visible Immer sichtbar + + + Hide cursor after delay + + + + + ms + + Reset settings? @@ -786,32 +796,32 @@ niemand wird es wiederherstellen können! Bestätige Konto Löschung - + Deleting your account is an irreversible action.<br>Once you delete your account, there is <b>no</b> going back. Please be certain. Das Löschen deines Kontos ist eine endgültige Aktion.<br>Nachdem du dein Konto gelöscht hast, gibt es <b>keinen</b> Weg zurück. - + Your Email Deine Email - + Confirm the deletion by entering your Account's email. Bestätige die Löschung deines Accounts indem du deine Email eingibst. - + Cancel Abbrechen - + Delete Löschen - + Your email is wrong Deine Email ist falsch diff --git a/src/presentation/translations/librum_en.ts b/src/presentation/translations/librum_en.ts index 8b06c72b6..2f0de0dad 100644 --- a/src/presentation/translations/librum_en.ts +++ b/src/presentation/translations/librum_en.ts @@ -345,58 +345,58 @@ We hope you have a great time using it! Feel free to leave us a rating and some - + Reading - + Page spacing - + Display book title in titlebar - + Default Zoom - + Highlights - + Colors - + Opacity - + Reset settings? - + Resetting your settings is a permanent action, there will be no way to restore them! - + No, Keep - + Yes, Reset @@ -438,6 +438,16 @@ We hope you have a great time using it! Feel free to leave us a rating and some Always visible + + + Hide cursor after delay + + + + + ms + + Reset settings? @@ -688,32 +698,32 @@ Either you are offline, or your storage is full. - + Deleting your account is an irreversible action.<br>Once you delete your account, there is <b>no</b> going back. Please be certain. - + Your Email - + Confirm the deletion by entering your Account's email. - + Cancel - + Delete - + Your email is wrong diff --git a/src/presentation/translations/librum_ru.ts b/src/presentation/translations/librum_ru.ts index ae25dbe6f..859bbea05 100644 --- a/src/presentation/translations/librum_ru.ts +++ b/src/presentation/translations/librum_ru.ts @@ -346,17 +346,17 @@ We hope you have a great time using it! Feel free to leave us a rating and some Язык - + Reading Чтение - + Page spacing Расстояние между страницами - + Display book title in titlebar Отображать название книги в строке с названием @@ -405,22 +405,22 @@ We hope you have a great time using it! Feel free to leave us a rating and some Замена - + Default Zoom Увеличение по-умолчанию - + Highlights Выделение - + Colors Цвета - + Opacity Непрозрачность @@ -449,23 +449,23 @@ We hope you have a great time using it! Feel free to leave us a rating and some Всегда виден - + Reset settings? Сбросить настройки? - + Resetting your settings is a permanent action, there will be no way to restore them! Сброс настроек необратим, Вы не сможете потом их восстановить! - + No, Keep Нет, Оставить - + Yes, Reset Да, Сбросить @@ -507,6 +507,16 @@ We hope you have a great time using it! Feel free to leave us a rating and some Always visible Всегда виден + + + Hide cursor after delay + Спрятать курсор после задержки + + + + ms + мс + Reset settings? @@ -759,32 +769,32 @@ Either you are offline, or your storage is full. Подтвердить Удаление Аккаунта - + Deleting your account is an irreversible action.<br>Once you delete your account, there is <b>no</b> going back. Please be certain. - Удаление Вашего аккаунта необратимо.<br>После удаления аккаунта пути назад уже <br>не<br> будет. Пожалуйста, будьте уверены. + Удаление Вашего аккаунта необратимо.<br>После удаления аккаунта пути назад уже <b>не</b> будет. Пожалуйста, будьте уверены. - + Your Email Ваша Почта - + Confirm the deletion by entering your Account's email. Подтвердите удаление, введя почту Аккаунта. - + Cancel Отмена - + Delete Удалить - + Your email is wrong Ваша почта неправильная @@ -1227,7 +1237,7 @@ Delete unused books to free up space or upgrade. Unsupported File - Неподдерживаемый Файл + Неподдерживаемый @@ -1790,7 +1800,7 @@ Confirm your email by clicking the link we sent you. Upgrade - Приобрести улучшение + Улучшить @@ -1807,7 +1817,7 @@ Confirm your email by clicking the link we sent you. See why we offer multiple tiers - Посмотрите, почему мы предоставляем несколько уровней + Об уровнях @@ -1839,7 +1849,7 @@ Confirm your email by clicking the link we sent you. Upgrade Your Account - Улучшите Ваш Аккаунт + Улучшите Аккаунт From 14b683ca10edba18e3e897e6923cac97bafb5288 Mon Sep 17 00:00:00 2001 From: DavidLazarescu Date: Sun, 12 Nov 2023 17:43:34 +0100 Subject: [PATCH 3/4] Removed generating pt ts file --- src/presentation/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/presentation/CMakeLists.txt b/src/presentation/CMakeLists.txt index 786370d00..4c14a88f0 100644 --- a/src/presentation/CMakeLists.txt +++ b/src/presentation/CMakeLists.txt @@ -19,7 +19,6 @@ set(translation_files translations/librum_en.ts translations/librum_de.ts translations/librum_ru.ts - translations/librum_pt.ts ) # Translations for the application From 62d5902d4ef2be74ed1bc46def80a78104eeb9b4 Mon Sep 17 00:00:00 2001 From: DavidLazarescu Date: Sun, 12 Nov 2023 17:44:59 +0100 Subject: [PATCH 4/4] Improved translation --- src/presentation/translations/librum_ru.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/presentation/translations/librum_ru.ts b/src/presentation/translations/librum_ru.ts index 859bbea05..4ad4a9df4 100644 --- a/src/presentation/translations/librum_ru.ts +++ b/src/presentation/translations/librum_ru.ts @@ -1237,7 +1237,7 @@ Delete unused books to free up space or upgrade. Unsupported File - Неподдерживаемый + Не поддерживается