From 8b94a2dd3014175bd1dfae56f9976944457038a9 Mon Sep 17 00:00:00 2001 From: Mikhail Barashkov Date: Sat, 23 Dec 2023 17:06:36 +0300 Subject: [PATCH 1/2] Fix translation settings in CMake; add Russian translation. --- sailfish/CMakeLists.txt | 23 +- sailfish/translations/harbour-sailfin-de.ts | 591 +++++++++++++++++++- sailfish/translations/harbour-sailfin-ru.ts | 583 +++++++++++++++++++ sailfish/translations/harbour-sailfin.ts | 250 ++++++++- 4 files changed, 1421 insertions(+), 26 deletions(-) create mode 100644 sailfish/translations/harbour-sailfin-ru.ts diff --git a/sailfish/CMakeLists.txt b/sailfish/CMakeLists.txt index 5018548..f3f84d2 100644 --- a/sailfish/CMakeLists.txt +++ b/sailfish/CMakeLists.txt @@ -11,7 +11,7 @@ ExternalProject_Add(BlurhashQt CMAKE_ARGS -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_EXPORT=OFF -DQML_PLUGIN_PATH=${PROJECT_BINARY_DIR}/plugins/) -find_package(Qt5 COMPONENTS Gui Qml Quick) +find_package(Qt5 COMPONENTS Gui Qml Quick LinguistTools) find_package(SailfishApp 1.0 REQUIRED) set(harbour-sailfin_SOURCES @@ -68,6 +68,22 @@ set(sailfin_QML_SOURCES qml/pages/setup/LoginDialog.qml qml/qmldir) +set(TRANSLATION_SOURCE_FILES + ${harbour-sailfin_SOURCES} + ${sailfin_QML_SOURCES} + ) + +set(TRANSLATION_TS_FILES + translations/harbour-sailfin.ts + translations/harbour-sailfin-de.ts + translations/harbour-sailfin-ru.ts + ) + +qt5_create_translation(TRANSLATION_QM_FILES + ${TRANSLATION_SOURCE_FILES} + ${TRANSLATION_TS_FILES}) +add_custom_target(translations ALL DEPENDS ${TRANSLATION_QM_FILES}) + add_executable(harbour-sailfin ${harbour-sailfin_SOURCES} ${sailfin_QML_SOURCES}) target_link_libraries(harbour-sailfin PRIVATE Qt5::Gui Qt5::Qml Qt5::Quick SailfishApp::SailfishApp # Note: this may break when the compiler changes. -rdynamic and -pie seem to be needed for the @@ -84,9 +100,8 @@ install(DIRECTORY ${PROJECT_BINARY_DIR}/plugins/ install(DIRECTORY qml DESTINATION share/harbour-sailfin ) -install(DIRECTORY translations - DESTINATION share/harbour-sailfin - FILES_MATCHING PATTERN "*.qm" +install(FILES ${TRANSLATION_QM_FILES} + DESTINATION share/harbour-sailfin/translations ) install(FILES harbour-sailfin.desktop DESTINATION share/applications diff --git a/sailfish/translations/harbour-sailfin-de.ts b/sailfish/translations/harbour-sailfin-de.ts index 7dbef71..9378f91 100644 --- a/sailfish/translations/harbour-sailfin-de.ts +++ b/sailfish/translations/harbour-sailfin-de.ts @@ -1,37 +1,614 @@ - + + + AboutPage + + About Sailfin + + + + <p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p> + + + + Open externally + + + + LGPL 2.1 License + + + + + AddServerConnectingPage + + Connecting to %1 + + + + + AddServerPage + + Connect + + + + Connect to Jellyfin + + + + Server + + + + Sailfin will try to search for Jellyfin servers on your local network automatically + + + + enter address manually + + + + Server address + + + + e.g. https://demo.jellyfin.org + + + + + BaseDetailPage + + Retry + + + + An error has occured + + + + + CollectionPage + + Loading + + + + Sort by + Menu item for selecting the sort order of a collection + + + + Empty collection + + + + Add some items to this collection! + + + + Name + + + + Play count + + + + Date added + + + + Ascending + Sort order + + + + Descending + Sort order + + + + Sailfin + + + CoverPage My Cover - Mein Cover + Mein Cover + + + + DebugPage + + Debug information + + + + Show debug information + + + + Websocket + + + + Connection state + + + + Unconnected + + + + %1 (%2) + + + + Device profile + + + + + EpisodePage + + Episode %1–%2 | %3 + + + + Episode %1 | %2 + + + + Overview + + + + No overview available + + + + + FilmPage + + Released: %1 — Run time: %2 + + + + Overview + FirstPage Show Page 2 - Zur Seite 2 + Zur Seite 2 UI Template - UI-Vorlage + UI-Vorlage Hello Sailors - Hallo Matrosen + Hallo Matrosen + + + + LegalPage + + Legal + + + + Sailfin contains code taken from other projects. Without them, Sailfin would not be possible! + + + + This program contains small snippets of code taken from <a href="%1">%2</a>, which is licensed under the %3 license: + + + + + LoginDialog + + Logging in as %1 + + + + Invalid username or password + + + + Login + Dialog action + + + + Credentials + Section header for entering username and password + + + + Username + Label placeholder for username field + + + + Password + Label placeholder for password field + + + + Login message + Message shown on login, configured by the server owner. Some form of a MOTD + + + + + MainPage + + Settings + Pulley menu item: navigate to application settings page + + + + Reload + Pulley menu item: reload items on page + + + + Resume watching + + + + Next up + + + + Network error + + + + Pull down to retry again + + + + + MusicAlbumPage + + %1 +%2 songs | %3 | %4 + Short description of the album: %1 -> album artist, %2 -> amount of songs, %3 -> duration, %4 -> release year + + + + Unknown year + Unknown album release year + + + + Playlist +%1 songs | %2 + + + + Disc %1 + + + + + MusicArtistPage + + %1 songs | %2 albums + + + + Discography + + + + Discography of %1 + Page title for the page with an overview of all albums, eps and singles by a specific artist + + + + Appears on + + + + %1 appears on + Page title for the page with an overview of all albums a specific artist appears on + + + + + MusicLibraryPage + + Recently added + Header on music library: Recently added music albums + + + + Latest media + Page title for the list of all albums within the music library + + + + Albums + Page title for the list of all albums within the music library + + + + Playlists + Page title for the list of all playlists within the music library + + + + Artists + Header for music artists +---------- +Page title for the list of all artists within the music library + + + + + PlayQueue + + Queue + Now playing page queue section header + + + + Playlist + Now playing page playlist section header + + + + Unknown section: %1 + + + + + PlaybackBar + + No media selected + + + + Play some media! + + + + No audio + + + + Shuffle not yet implemented + + + + Stop + Pulley menu item: stops playback of music + + + + + PosterCover + + %1/%2 + + + + + QObject + + Sailfin + Application display name + + + + + SeasonPage + + No overview available + No overview/summary text of an episode available + SecondPage Nested Page - Unterseite + Unterseite Item - Element + Element + + + + SeriesPage + + Seasons + Seasons of a (TV) show + + + + + SettingsPage + + Settings + Header of Settings page + + + + Session + + + + Log out + + + + Logging out + + + + Other + Other settings menu item + + + + Streaming settings + Settings list item for settings related to streaming + + + + Debug information + Debug information settings menu itemy + + + + About Sailfin + About Sailfin settings menu itemy + + + + + SongDelegate + + Go to %1 + Context menu item for navigating to the artist of the selected track + + + + Go to artists + Context menu item for navigating to one of the artists of the selected track (opens submenu) + + + + + StreamingPage + + Streaming settings + + + + Allow transcoding + + + + If enabled, Sailfin may request the Jellyfin server to transcode media to a more suitable media format for this device. It is recommended to leave this enabled unless your server is weak. + + + + %1 mbps + + + + Maximum streaming bitrate + + + + + UnsupportedPage + + Item type (%1) unsupported + + + + Fallback page for %2 not found either +This is still an alpha version :) + + + + + UserGridDelegate + + Other account + + + + + VideoError + + No error + Just to be complete if the application shows a video playback error when there's no error. + + + + Resource allocation error + Video playback error: out of resources + + + + Video format unsupported + Video playback error: unsupported format/codec + + + + Network error + Video playback error: network error + + + + Access denied + Video playback error: access denied + + + + Media service missing + Video playback error: the media cannot be played because the media service could not be instantiated. + + + + Retry + Button to retry loading a video after a failure + + + + Hide + + + + + VideoPage + + Run time: %2 + + + + + VideoTrackSelector + + Video track + + + + Audio track + + + + Subtitle track + + + + Off + Value in ComboBox to disable subtitles + + + + + harbour-sailfin + + Sailfin + The application name for the notification + diff --git a/sailfish/translations/harbour-sailfin-ru.ts b/sailfish/translations/harbour-sailfin-ru.ts new file mode 100644 index 0000000..6ddac28 --- /dev/null +++ b/sailfish/translations/harbour-sailfin-ru.ts @@ -0,0 +1,583 @@ + + + + + AboutPage + + About Sailfin + О программе Sailfin + + + Open externally + Открыть внешним приложением + + + + Лицензия LGPL 2.1 + + + <p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p> + + + + + AddServerConnectingPage + + Connecting to %1 + Соединяемся с %1 + + + + AddServerPage + + Connect + Соединиться + + + Connect to Jellyfin + Соединиться с Jellyfin + + + Server + Сервер + + + Sailfin will try to search for Jellyfin servers on your local network automatically + Sailfin попробует найти серверы Jellyfin в локальной сети автоматически + + + enter address manually + ввести адрес вручную + + + Server address + Адрес сервера + + + e.g. https://demo.jellyfin.org + Напр. https://demo.jellyfin.org + + + + BaseDetailPage + + Retry + Попробовать снова + + + An error has occured + Произошла ошибка + + + + CollectionPage + + Loading + Загрузка + + + Sort by + Menu item for selecting the sort order of a collection + Сортировка + + + Empty collection + Пустая коллекция + + + Add some items to this collection! + Добавьте что-то в эту коллекцию! + + + Name + Название + + + Play count + Количество проигрываний + + + Date added + Дата добавления + + + Ascending + Sort order + По возрастанию + + + Descending + Sort order + По убыванию + + + Sailfin + + + + + DebugPage + + Debug information + Отладочная информация + + + Show debug information + Показывать отладочную информацию + + + Websocket + + + + Connection state + + + + Unconnected + + + + %1 (%2) + + + + Device profile + + + + + EpisodePage + + Episode %1–%2 | %3 + Серия %1–%2 | %3 + + + Episode %1 | %2 + Серия %1 | %2 + + + Overview + Описание + + + No overview available + Нет описания + + + + FilmPage + + Released: %1 — Run time: %2 + Вышел: %1 — Длительность: %2 + + + Overview + Описание + + + + LegalPage + + Legal + + + + This program contains small snippets of code taken from <a href="%1">%2</a>, which is licensed under the %3 license: + + + + Sailfin contains code taken from other projects. Without them, Sailfin would not be possible! + + + + + LoginDialog + + Logging in as %1 + Входим как %1 + + + Login + Dialog action + Войти + + + Credentials + Section header for entering username and password + Учетные данные + + + Username + Label placeholder for username field + Имя пользователя + + + Password + Label placeholder for password field + Пароль + + + Login message + Message shown on login, configured by the server owner. Some form of a MOTD + Сообщение при входе + + + Invalid username or password + Неверное имя пользователя или пароль + + + + MainPage + + Resume watching + Продолжить просмотр + + + Next up + Продолжения + + + Network error + Ошибка сети + + + Pull down to retry again + Потяните вниз чтобы попробовать снова + + + Settings + Pulley menu item: navigate to application settings page + Настройки + + + Reload + Pulley menu item: reload items on page + Обновить + + + + MusicAlbumPage + + %1 +%2 songs | %3 | %4 + Short description of the album: %1 -> album artist, %2 -> amount of songs, %3 -> duration, %4 -> release year + %1 +%2 песен | %3 | %4 + + + Unknown year + Unknown album release year + Неизвестный год + + + Playlist +%1 songs | %2 + Плейлист +%1 песни | %2 + + + Disc %1 + Диск %1 + + + + MusicArtistPage + + %1 songs | %2 albums + %1 песен | %2 альбомов + + + Discography + Дискография + + + Discography of %1 + Page title for the page with an overview of all albums, eps and singles by a specific artist + Дискография %1 + + + Appears on + Появляется на + + + %1 appears on + Page title for the page with an overview of all albums a specific artist appears on + + + + + MusicLibraryPage + + Recently added + Header on music library: Recently added music albums + + + + Latest media + Page title for the list of all albums within the music library + + + + Albums + Page title for the list of all albums within the music library + + + + Playlists + Page title for the list of all playlists within the music library + + + + Artists + Header for music artists +---------- +Page title for the list of all artists within the music library + + + + + PlayQueue + + Queue + Now playing page queue section header + + + + Playlist + Now playing page playlist section header + + + + Unknown section: %1 + + + + + PlaybackBar + + No media selected + + + + Play some media! + + + + No audio + + + + Shuffle not yet implemented + + + + Stop + Pulley menu item: stops playback of music + + + + + PosterCover + + %1/%2 + + + + + QObject + + Sailfin + Application display name + + + + + SeasonPage + + No overview available + No overview/summary text of an episode available + Нет описания + + + + SeriesPage + + Seasons + Seasons of a (TV) show + Сезоны + + + + SettingsPage + + Other + Other settings menu item + Другие + + + About Sailfin + About Sailfin settings menu itemy + О программе Sailfin + + + Session + Сессия + + + Log out + Выйти + + + Logging out + Выходим + + + Debug information + Debug information settings menu itemy + Отладочная информация + + + Settings + Header of Settings page + Настройки + + + Streaming settings + Settings list item for settings related to streaming + Настройки стриминга + + + + SongDelegate + + Go to %1 + Context menu item for navigating to the artist of the selected track + + + + Go to artists + Context menu item for navigating to one of the artists of the selected track (opens submenu) + + + + + StreamingPage + + Streaming settings + Настройки стриминга + + + Allow transcoding + Разрешить транскодинг + + + If enabled, Sailfin may request the Jellyfin server to transcode media to a more suitable media format for this device. It is recommended to leave this enabled unless your server is weak. + + + + %1 mbps + %1 мегабит/сек + + + Maximum streaming bitrate + Максимальный битрейт стриминга + + + + UnsupportedPage + + Item type (%1) unsupported + + + + Fallback page for %2 not found either +This is still an alpha version :) + + + + + UserGridDelegate + + Other account + + + + + VideoError + + Resource allocation error + Video playback error: out of resources + + + + Video format unsupported + Video playback error: unsupported format/codec + + + + Network error + Video playback error: network error + + + + Access denied + Video playback error: access denied + + + + Media service missing + Video playback error: the media cannot be played because the media service could not be instantiated. + + + + Retry + Button to retry loading a video after a failure + + + + No error + Just to be complete if the application shows a video playback error when there's no error. + + + + Hide + + + + + VideoPage + + Run time: %2 + + + + + VideoTrackSelector + + Audio track + Аудиодорожка + + + Subtitle track + Дорожка субтитров + + + Off + Value in ComboBox to disable subtitles + Выключено + + + Video track + Видеодорожка + + + + harbour-sailfin + + Sailfin + The application name for the notification + + + + diff --git a/sailfish/translations/harbour-sailfin.ts b/sailfish/translations/harbour-sailfin.ts index 0ab2ad9..5da9dc4 100644 --- a/sailfish/translations/harbour-sailfin.ts +++ b/sailfish/translations/harbour-sailfin.ts @@ -5,7 +5,7 @@ AboutPage About Sailfin - + About Sailfin1 Open externally @@ -16,7 +16,7 @@ - <p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p> + <p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p> @@ -49,10 +49,6 @@ enter address manually - - %1 - %2 - - Server address @@ -114,14 +110,42 @@ Sort order - - - CoverPage Sailfin + + DebugPage + + Debug information + + + + Show debug information + + + + Websocket + + + + Connection state + + + + Unconnected + + + + %1 (%2) + + + + Device profile + + + EpisodePage @@ -215,6 +239,7 @@ Settings + Pulley menu item: navigate to application settings page @@ -222,15 +247,146 @@ - An error has occurred. Please try again. + Reload + Pulley menu item: reload items on page - Retry + Pull down to retry again + + + + + MusicAlbumPage + + %1 +%2 songs | %3 | %4 + Short description of the album: %1 -> album artist, %2 -> amount of songs, %3 -> duration, %4 -> release year - Refresh + Unknown year + Unknown album release year + + + + Playlist +%1 songs | %2 + + + + Disc %1 + + + + + MusicArtistPage + + %1 songs | %2 albums + + + + Discography + + + + Discography of %1 + Page title for the page with an overview of all albums, eps and singles by a specific artist + + + + Appears on + + + + %1 appears on + Page title for the page with an overview of all albums a specific artist appears on + + + + + MusicLibraryPage + + Recently added + Header on music library: Recently added music albums + + + + Latest media + Page title for the list of all albums within the music library + + + + Albums + Page title for the list of all albums within the music library + + + + Playlists + Page title for the list of all playlists within the music library + + + + Artists + Header for music artists +---------- +Page title for the list of all artists within the music library + + + + + PlayQueue + + Queue + Now playing page queue section header + + + + Playlist + Now playing page playlist section header + + + + Unknown section: %1 + + + + + PlaybackBar + + No media selected + + + + Play some media! + + + + No audio + + + + Shuffle not yet implemented + + + + Stop + Pulley menu item: stops playback of music + + + + + PosterCover + + %1/%2 + + + + + QObject + + Sailfin + Application display name @@ -259,12 +415,13 @@ Other - Other settings + Other settings menu item About Sailfin - + About Sailfin settings menu itemy + About Sailfin1 Session @@ -278,6 +435,52 @@ Logging out + + Streaming settings + Settings list item for settings related to streaming + + + + Debug information + Debug information settings menu itemy + + + + + SongDelegate + + Go to %1 + Context menu item for navigating to the artist of the selected track + + + + Go to artists + Context menu item for navigating to one of the artists of the selected track (opens submenu) + + + + + StreamingPage + + Streaming settings + + + + Allow transcoding + + + + If enabled, Sailfin may request the Jellyfin server to transcode media to a more suitable media format for this device. It is recommended to leave this enabled unless your server is weak. + + + + %1 mbps + + + + Maximum streaming bitrate + + UnsupportedPage @@ -286,7 +489,8 @@ - This is still an alpha version :) + Fallback page for %2 not found either +This is still an alpha version :) @@ -334,6 +538,10 @@ Just to be complete if the application shows a video playback error when there's no error. + + Hide + + VideoPage @@ -357,5 +565,17 @@ Value in ComboBox to disable subtitles + + Video track + + + + + harbour-sailfin + + Sailfin + The application name for the notification + + From 8b81fae67f42bfb984f4f56cbb01efe1a3f6c0a6 Mon Sep 17 00:00:00 2001 From: Mikhail Barashkov Date: Sat, 23 Dec 2023 17:13:53 +0300 Subject: [PATCH 2/2] Complete Russian translations --- sailfish/translations/harbour-sailfin-ru.ts | 42 ++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/sailfish/translations/harbour-sailfin-ru.ts b/sailfish/translations/harbour-sailfin-ru.ts index 6ddac28..1b15949 100644 --- a/sailfish/translations/harbour-sailfin-ru.ts +++ b/sailfish/translations/harbour-sailfin-ru.ts @@ -298,12 +298,12 @@ Appears on - Появляется на + Появляется на %1 appears on Page title for the page with an overview of all albums a specific artist appears on - + %1 появляется на @@ -311,29 +311,29 @@ Recently added Header on music library: Recently added music albums - + Добавлены недавно Latest media Page title for the list of all albums within the music library - + Самые новые песни Albums Page title for the list of all albums within the music library - + Альбомы Playlists Page title for the list of all playlists within the music library - + Плейлисты Artists Header for music artists ---------- Page title for the list of all artists within the music library - + Исполнители @@ -341,40 +341,40 @@ Page title for the list of all artists within the music library Queue Now playing page queue section header - + Очередь Playlist Now playing page playlist section header - + Плейлист Unknown section: %1 - + Неизвестная секция: %1 PlaybackBar No media selected - + Ничего не выбрано Play some media! - + Начните что-то проигрывать! No audio - + Нет звука Shuffle not yet implemented - + Перемешивание ещё не работает Stop Pulley menu item: stops playback of music - + Стоп @@ -453,12 +453,12 @@ Page title for the list of all artists within the music library Go to %1 Context menu item for navigating to the artist of the selected track - + Перейти к %1 Go to artists Context menu item for navigating to one of the artists of the selected track (opens submenu) - + Перейти к исполнителям @@ -473,7 +473,7 @@ Page title for the list of all artists within the music library If enabled, Sailfin may request the Jellyfin server to transcode media to a more suitable media format for this device. It is recommended to leave this enabled unless your server is weak. - + Если включено, Sailfin может попросить сервер Jellyfin перекодировать медиафайл в более подходящий формат для устройства. Рекомендуется оставить это включенным, если ваш сервер не слишком слабый. %1 mbps @@ -488,7 +488,7 @@ Page title for the list of all artists within the music library UnsupportedPage Item type (%1) unsupported - + Тип файла (%1) не поддерживается Fallback page for %2 not found either @@ -500,7 +500,7 @@ This is still an alpha version :) UserGridDelegate Other account - + Другая учетная запись @@ -549,7 +549,7 @@ This is still an alpha version :) VideoPage Run time: %2 - + Длительность: %2