From 4b4951aa4d12488bed31e7dd58b7645e6ffb7588 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sat, 18 Sep 2021 14:04:29 +0200 Subject: [PATCH] Refactor to use locale_with_underscore everywhere this should make it easier to integrate with crowdin and to be more consistent with future Languages --- ScreenPlay/CMakeLists.txt | 18 +-- ScreenPlay/ScreenPlayAssets.qrc | 25 +++- ScreenPlay/qml/Settings/Settings.qml | 32 ++-- ScreenPlay/src/screenplaymanager.cpp | 1 - ScreenPlay/src/settings.cpp | 27 +++- ScreenPlay/src/settings.h | 17 ++- ScreenPlay/src/util.h | 2 + .../{ScreenPlay_en.qm => ScreenPlay_.qm} | Bin .../{ScreenPlay_en.ts => ScreenPlay_.ts} | 135 ++++++++--------- .../{ScreenPlay_de.qm => ScreenPlay_de_DE.qm} | Bin .../{ScreenPlay_de.ts => ScreenPlay_de_DE.ts} | 137 +++++++++--------- .../{ScreenPlay_es.qm => ScreenPlay_es_ES.qm} | Bin .../{ScreenPlay_es.ts => ScreenPlay_es_ES.ts} | 135 ++++++++--------- .../{ScreenPlay_fr.qm => ScreenPlay_fr_FR.qm} | Bin .../{ScreenPlay_fr.ts => ScreenPlay_fr_FR.ts} | 135 ++++++++--------- .../{ScreenPlay_ko.qm => ScreenPlay_ko_KR.qm} | Bin .../{ScreenPlay_ko.ts => ScreenPlay_ko_KR.ts} | 135 ++++++++--------- ScreenPlay/translations/ScreenPlay_pt_br.ts | 135 ++++++++--------- .../{ScreenPlay_ru.qm => ScreenPlay_ru_RU.qm} | Bin .../{ScreenPlay_ru.ts => ScreenPlay_ru_RU.ts} | 135 ++++++++--------- .../{ScreenPlay_vi.qm => ScreenPlay_vi_VN.qm} | Bin 37082 -> 36920 bytes .../{ScreenPlay_vi.ts => ScreenPlay_vi_VN.ts} | 137 +++++++++--------- ScreenPlay/translations/ScreenPlay_zh_cn.ts | 137 +++++++++--------- crowdin.yml | 4 +- 24 files changed, 709 insertions(+), 638 deletions(-) rename ScreenPlay/translations/{ScreenPlay_en.qm => ScreenPlay_.qm} (100%) rename ScreenPlay/translations/{ScreenPlay_en.ts => ScreenPlay_.ts} (97%) rename ScreenPlay/translations/{ScreenPlay_de.qm => ScreenPlay_de_DE.qm} (100%) rename ScreenPlay/translations/{ScreenPlay_de.ts => ScreenPlay_de_DE.ts} (98%) rename ScreenPlay/translations/{ScreenPlay_es.qm => ScreenPlay_es_ES.qm} (100%) rename ScreenPlay/translations/{ScreenPlay_es.ts => ScreenPlay_es_ES.ts} (97%) rename ScreenPlay/translations/{ScreenPlay_fr.qm => ScreenPlay_fr_FR.qm} (100%) rename ScreenPlay/translations/{ScreenPlay_fr.ts => ScreenPlay_fr_FR.ts} (97%) rename ScreenPlay/translations/{ScreenPlay_ko.qm => ScreenPlay_ko_KR.qm} (100%) rename ScreenPlay/translations/{ScreenPlay_ko.ts => ScreenPlay_ko_KR.ts} (97%) rename ScreenPlay/translations/{ScreenPlay_ru.qm => ScreenPlay_ru_RU.qm} (100%) rename ScreenPlay/translations/{ScreenPlay_ru.ts => ScreenPlay_ru_RU.ts} (97%) rename ScreenPlay/translations/{ScreenPlay_vi.qm => ScreenPlay_vi_VN.qm} (85%) rename ScreenPlay/translations/{ScreenPlay_vi.ts => ScreenPlay_vi_VN.ts} (98%) diff --git a/ScreenPlay/CMakeLists.txt b/ScreenPlay/CMakeLists.txt index 6e4115a9..021a5aca 100644 --- a/ScreenPlay/CMakeLists.txt +++ b/ScreenPlay/CMakeLists.txt @@ -55,15 +55,15 @@ list( APPEND L10N_LIST # cmake-format: sortable - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_de.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_zh_cn.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_pt_br.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_en.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_es.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_fr.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_ko.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_ru.ts - ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_vi.ts) + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_de_DE.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_zh_CN.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_pt_BR.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_es_ES.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_fr_FR.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_ko_KR.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_ru_RU.ts + ${CMAKE_CURRENT_SOURCE_DIR}/translations/ScreenPlay_vi_VN.ts) include(QtUpdateTranslations) qt_update_translations("${CMAKE_CURRENT_SOURCE_DIR}/qml" "${L10N_LIST}") diff --git a/ScreenPlay/ScreenPlayAssets.qrc b/ScreenPlay/ScreenPlayAssets.qrc index 7d5178e5..c482f31a 100644 --- a/ScreenPlay/ScreenPlayAssets.qrc +++ b/ScreenPlay/ScreenPlayAssets.qrc @@ -115,13 +115,6 @@ legal/lgpl-2.1.txt profiles.json qtquickcontrols2.conf - translations/ScreenPlay_de.qm - translations/ScreenPlay_en.qm - translations/ScreenPlay_es.qm - translations/ScreenPlay_fr.qm - translations/ScreenPlay_ko.qm - translations/ScreenPlay_ru.qm - translations/ScreenPlay_vi.qm translations/ScreenPlay_zh_cn.qm assets/images/Early_Access.png translations/ScreenPlay_pt_br.qm @@ -131,5 +124,23 @@ assets/icons/steam_default_avatar.png assets/macos/app.screenplay.plist assets/icons/item_banner_new.svg + translations/ScreenPlay_de_DE.qm + translations/ScreenPlay_es_ES.qm + translations/ScreenPlay_fr_FR.qm + translations/ScreenPlay_ko_KR.qm + translations/ScreenPlay_pt_BR.qm + translations/ScreenPlay_ru_RU.qm + translations/ScreenPlay_vi_VN.qm + translations/ScreenPlay_zh_CN.qm + translations/ScreenPlay_.qm + translations/ScreenPlay_.ts + translations/ScreenPlay_de_DE.ts + translations/ScreenPlay_es_ES.ts + translations/ScreenPlay_fr_FR.ts + translations/ScreenPlay_ko_KR.ts + translations/ScreenPlay_pt_BR.ts + translations/ScreenPlay_ru_RU.ts + translations/ScreenPlay_vi_VN.ts + translations/ScreenPlay_zh_CN.ts diff --git a/ScreenPlay/qml/Settings/Settings.qml b/ScreenPlay/qml/Settings/Settings.qml index b1897944..5febdd9f 100644 --- a/ScreenPlay/qml/Settings/Settings.qml +++ b/ScreenPlay/qml/Settings/Settings.qml @@ -166,32 +166,32 @@ Item { comboBox { model: [{ - "value": Settings.En, - "text": qsTr("English") + "value": Settings.En_US, + "text": "English" }, { - "value": Settings.De, - "text": qsTr("German") + "value": Settings.De_DE, + "text": "German" }, { "value": Settings.Zh_CN, - "text": qsTr("Chinese - Simplified") + "text": "Chinese - Simplified" }, { - "value": Settings.Ru, - "text": qsTr("Russian") + "value": Settings.Ru_RU, + "text": "Russian" }, { - "value": Settings.Fr, - "text": qsTr("French") + "value": Settings.Fr_FR, + "text": "French" }, { - "value": Settings.Es, - "text": qsTr("Spanish") + "value": Settings.Es_ES, + "text": "Spanish" }, { - "value": Settings.Ko, - "text": qsTr("Korean") + "value": Settings.Ko_KR, + "text": "Korean" }, { - "value": Settings.Vi, - "text": qsTr("Vietnamese") + "value": Settings.Vi_VN, + "text": "Vietnamese" }, { "value": Settings.Pt_BR, - "text": qsTr("Portuguese (Brazil)") + "text": "Portuguese (Brazil)" }] onActivated: { ScreenPlay.settings.setLanguage(settingsLanguage.comboBox.currentValue); diff --git a/ScreenPlay/src/screenplaymanager.cpp b/ScreenPlay/src/screenplaymanager.cpp index 89c5f6a3..dcaaf14f 100644 --- a/ScreenPlay/src/screenplaymanager.cpp +++ b/ScreenPlay/src/screenplaymanager.cpp @@ -559,7 +559,6 @@ bool ScreenPlayManager::loadProfiles() return false; } - qInfo() << "Loading profiles " << activeProfilesTmp.size(); bool containsInvalidData = false; for (const QJsonValueRef wallpaper : activeProfilesTmp) { diff --git a/ScreenPlay/src/settings.cpp b/ScreenPlay/src/settings.cpp index 07fcf238..6ba3344a 100644 --- a/ScreenPlay/src/settings.cpp +++ b/ScreenPlay/src/settings.cpp @@ -194,7 +194,6 @@ void Settings::restoreDefault(const QString& appConfigLocation, const QString& s void Settings::initInstalledPath() { //If empty use steam workshop location - qInfo() << m_qSettings.value("ScreenPlayContentPath").toString(); if (QString(m_qSettings.value("ScreenPlayContentPath").toString()).isEmpty()) { /* @@ -261,7 +260,7 @@ void Settings::setupLanguage() langCode = m_qSettings.value("Language").toString(); } - setLanguage(QStringToEnum(langCode, Language::En)); + setLanguage(QStringToEnum(langCode, Language::En_US)); retranslateUI(); } @@ -272,17 +271,16 @@ void Settings::setupLanguage() */ bool Settings::retranslateUI() { - auto* app = static_cast(QApplication::instance()); - QString langCode = QVariant::fromValue(language()).toString(); - langCode = langCode.toLower(); - QFile tsFile; + QString langCode = fixLanguageCode(QVariant::fromValue(language()).toString()); + QFile tsFile; if (tsFile.exists(":/translations/ScreenPlay_" + langCode + ".qm")) { m_translator.load(":/translations/ScreenPlay_" + langCode + ".qm"); + auto* app = static_cast(QApplication::instance()); app->installTranslator(&m_translator); emit requestRetranslation(); - if (language() == Settings::Language::Ko) { + if (language() == Settings::Language::Ko_KR) { setFont("Noto Sans CJK KR Regular"); } else { setFont("Roboto"); @@ -292,4 +290,19 @@ bool Settings::retranslateUI() qWarning() << tsFile.fileName() << ", cannot be loaded width langCode " << langCode; return false; } + +/*! + \brief We must translate between qml langauge code and real ones. +*/ +QString Settings::fixLanguageCode(const QString& languageCode) +{ + QString langCode = languageCode; + // QML enums must begin with uppercase, but our code begin with lowercase + langCode = langCode.replace(0, 1, langCode.at(0).toLower()); + // For US we use the default .ts file without langauge code + if (langCode == "en_US") + langCode = ""; + return langCode; +} + } diff --git a/ScreenPlay/src/settings.h b/ScreenPlay/src/settings.h index 2faa3e6a..1d71b0f8 100644 --- a/ScreenPlay/src/settings.h +++ b/ScreenPlay/src/settings.h @@ -115,13 +115,13 @@ public: }; enum class Language { - En, - De, - Ru, - Fr, - Es, - Ko, - Vi, + En_US, + De_DE, + Ru_RU, + Fr_FR, + Es_ES, + Ko_KR, + Vi_VN, Pt_BR, Zh_CN, }; @@ -402,6 +402,7 @@ public slots: private: void restoreDefault(const QString& appConfigLocation, const QString& settingsFileType); void initInstalledPath(); + QString fixLanguageCode(const QString& languageCode); private: QSettings m_qSettings; @@ -419,7 +420,7 @@ private: QString m_gitBuildHash; QString m_decoder; ScreenPlay::FillMode::FillMode m_videoFillMode { ScreenPlay::FillMode::FillMode::Cover }; - Language m_language { Language::En }; + Language m_language { Language::En_US }; Theme m_theme { Theme::System }; QString m_font { "Roboto" }; bool m_steamVersion { false }; diff --git a/ScreenPlay/src/util.h b/ScreenPlay/src/util.h index a967fcb5..1d552a55 100644 --- a/ScreenPlay/src/util.h +++ b/ScreenPlay/src/util.h @@ -72,6 +72,8 @@ T QStringToEnum(const QString& key, const T defaultValue) if (ok) { return wantedEnum; + } else { + qWarning() << "Unable to convert QStringToEnum. Key: " << key; } return defaultValue; diff --git a/ScreenPlay/translations/ScreenPlay_en.qm b/ScreenPlay/translations/ScreenPlay_.qm similarity index 100% rename from ScreenPlay/translations/ScreenPlay_en.qm rename to ScreenPlay/translations/ScreenPlay_.qm diff --git a/ScreenPlay/translations/ScreenPlay_en.ts b/ScreenPlay/translations/ScreenPlay_.ts similarity index 97% rename from ScreenPlay/translations/ScreenPlay_en.ts rename to ScreenPlay/translations/ScreenPlay_.ts index c589e44c..5e88c671 100644 --- a/ScreenPlay/translations/ScreenPlay_en.ts +++ b/ScreenPlay/translations/ScreenPlay_.ts @@ -211,42 +211,42 @@ - + Convert a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -508,42 +508,42 @@ - + Import a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -589,43 +589,43 @@ - + Refreshing! - - + + Pull to refresh! - + Get more Wallpaper & Widgets via the Steam workshop! - + Open containing folder - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? @@ -779,12 +779,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets - + No active Wallpaper or Widgets @@ -792,12 +792,12 @@ PopupOffline - - You need to run Steam for this :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 - + Back @@ -902,7 +902,7 @@ ScreenPlayItem - + NEW @@ -1189,102 +1189,102 @@ Sidebar - + Tools Overview - + Video import and convert (all types) - + Video Import (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget - + Set Wallpaper - + Set Widget - + Headline - + Select a Monitor to display the content - + Set Volume - + Fill Mode - + Stretch - + Fill - + Contain - + Cover - + Scale-Down @@ -1402,72 +1402,77 @@ - + + Upload + + + + Search for Wallpaper and Widgets... - + Open Workshop in Steam - + Ranked By Vote - + Publication Date - + Ranked By Trend - + Favorited By Friends - + Created By Friends - + Created By Followed Users - + Not Yet Rated - + Total VotesAsc - + Votes Up - + Total Unique Subscriptions - + Back - + Forward diff --git a/ScreenPlay/translations/ScreenPlay_de.qm b/ScreenPlay/translations/ScreenPlay_de_DE.qm similarity index 100% rename from ScreenPlay/translations/ScreenPlay_de.qm rename to ScreenPlay/translations/ScreenPlay_de_DE.qm diff --git a/ScreenPlay/translations/ScreenPlay_de.ts b/ScreenPlay/translations/ScreenPlay_de_DE.ts similarity index 98% rename from ScreenPlay/translations/ScreenPlay_de.ts rename to ScreenPlay/translations/ScreenPlay_de_DE.ts index 5feba97c..9ecded53 100644 --- a/ScreenPlay/translations/ScreenPlay_de.ts +++ b/ScreenPlay/translations/ScreenPlay_de_DE.ts @@ -223,7 +223,7 @@ Analyse des Videos schlug Fehl! - + Convert a video to a wallpaper Konvertiere ein Video in ein Hintergrund Live Wallpaper @@ -233,37 +233,37 @@ - + Generating preview video... Generiere Vorschau-Video... - + Name (required!) Name (erforderlich!) - + Description Beschreibung - + Youtube URL YouTube-URL - + Abort Abbrechen - + Save Speichern - + Save Wallpaper... Speicher Wallpaper... @@ -520,7 +520,7 @@ Analyse des Videos schlug Fehl! - + Import a video to a wallpaper Importiere ein Video zu ein Wallpaper @@ -530,37 +530,37 @@ - + Generating preview video... Generiere Vorschau-Video... - + Name (required!) Name (erforderlich!) - + Description Beschreibung - + Youtube URL YouTube-URL - + Abort Abbrechen - + Save Speichern - + Save Wallpaper... Speicher Wallpaper... @@ -601,43 +601,43 @@ Installed - + Refreshing! Aktualisiere! - - + + Pull to refresh! Drücken zum aktualisieren! - + Get more Wallpaper & Widgets via the Steam workshop! Holen dir mehr Wallpaper und Widgets über den Steam-Workshop! - + Open containing folder Enthaltenden Ordner öffnen - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? Bist du dir sicher dass du dieses Item löschen möchtest? @@ -797,12 +797,12 @@ Bitte Konfiguriere deine Wallpaper noch erneut NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets Konfiguriere aktive Wallpaper oder Widgets - + No active Wallpaper or Widgets Keine aktiven Wallpaper oder Widgets @@ -810,12 +810,12 @@ Bitte Konfiguriere deine Wallpaper noch erneut PopupOffline - - You need to run Steam for this :) - Steam muss dafür ausgeführt sein :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 + - + Back Zurück @@ -920,7 +920,7 @@ Bitte Konfiguriere deine Wallpaper noch erneut ScreenPlayItem - + NEW @@ -1207,57 +1207,57 @@ Bitte Konfiguriere deine Wallpaper noch erneut Sidebar - + Set Widget - + Headline Überschrift - + Select a Monitor to display the content Wähle einen Monitor zur Anzeige des Inhalts - + Set Volume Audiolautstärke einstellen - + Fill Mode Füll-Modus - + Stretch Strecken - + Fill Ausfüllen - + Contain Enthält - + Cover - + Scale-Down Runter-Skallieren - + Set Wallpaper Wallpaper Festlegen @@ -1307,47 +1307,47 @@ Bitte Konfiguriere deine Wallpaper noch erneut Abonniere - + Tools Overview Werkzeugeübersicht - + Video import and convert (all types) - + Video Import (.webm) Importiere Video (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget @@ -1420,72 +1420,77 @@ Bitte Konfiguriere deine Wallpaper noch erneut Profil - + + Upload + + + + Search for Wallpaper and Widgets... Suche nach Hintergründen und Widgets... - + Open Workshop in Steam Öffne Workshop in Steam - + Ranked By Vote Nach Bewertungen sortieren - + Publication Date Veröffentlichungs Datum - + Ranked By Trend Nach Trends sortieren - + Favorited By Friends Von Freunden Favorisiert - + Created By Friends Von Freunden erstellt - + Created By Followed Users Von Gefolgten Benutzern erstellt - + Not Yet Rated Noch nicht Bewertet - + Total VotesAsc Abstimmungs Anzahl Absteigend - + Votes Up Abstimmungs Anzahl Steigend - + Total Unique Subscriptions Anzahl Einzigartiger Abonnennts - + Back Zurück - + Forward Vor diff --git a/ScreenPlay/translations/ScreenPlay_es.qm b/ScreenPlay/translations/ScreenPlay_es_ES.qm similarity index 100% rename from ScreenPlay/translations/ScreenPlay_es.qm rename to ScreenPlay/translations/ScreenPlay_es_ES.qm diff --git a/ScreenPlay/translations/ScreenPlay_es.ts b/ScreenPlay/translations/ScreenPlay_es_ES.ts similarity index 97% rename from ScreenPlay/translations/ScreenPlay_es.ts rename to ScreenPlay/translations/ScreenPlay_es_ES.ts index 59487656..27621307 100644 --- a/ScreenPlay/translations/ScreenPlay_es.ts +++ b/ScreenPlay/translations/ScreenPlay_es_ES.ts @@ -227,42 +227,42 @@ - + Convert a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -524,42 +524,42 @@ - + Import a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -605,43 +605,43 @@ - + Refreshing! - - + + Pull to refresh! - + Get more Wallpaper & Widgets via the Steam workshop! - + Open containing folder - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? @@ -795,12 +795,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets - + No active Wallpaper or Widgets @@ -808,12 +808,12 @@ PopupOffline - - You need to run Steam for this :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 - + Back @@ -918,7 +918,7 @@ ScreenPlayItem - + NEW @@ -1205,102 +1205,102 @@ Sidebar - + Tools Overview - + Video import and convert (all types) - + Video Import (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget - + Set Wallpaper - + Set Widget - + Headline - + Select a Monitor to display the content - + Set Volume - + Fill Mode - + Stretch - + Fill - + Contain - + Cover - + Scale-Down @@ -1418,72 +1418,77 @@ - + + Upload + + + + Search for Wallpaper and Widgets... - + Open Workshop in Steam - + Ranked By Vote - + Publication Date - + Ranked By Trend - + Favorited By Friends - + Created By Friends - + Created By Followed Users - + Not Yet Rated - + Total VotesAsc - + Votes Up - + Total Unique Subscriptions - + Back - + Forward diff --git a/ScreenPlay/translations/ScreenPlay_fr.qm b/ScreenPlay/translations/ScreenPlay_fr_FR.qm similarity index 100% rename from ScreenPlay/translations/ScreenPlay_fr.qm rename to ScreenPlay/translations/ScreenPlay_fr_FR.qm diff --git a/ScreenPlay/translations/ScreenPlay_fr.ts b/ScreenPlay/translations/ScreenPlay_fr_FR.ts similarity index 97% rename from ScreenPlay/translations/ScreenPlay_fr.ts rename to ScreenPlay/translations/ScreenPlay_fr_FR.ts index 164a84fa..0a33c34f 100644 --- a/ScreenPlay/translations/ScreenPlay_fr.ts +++ b/ScreenPlay/translations/ScreenPlay_fr_FR.ts @@ -211,42 +211,42 @@ - + Convert a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -508,42 +508,42 @@ - + Import a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -589,43 +589,43 @@ - + Refreshing! - - + + Pull to refresh! - + Get more Wallpaper & Widgets via the Steam workshop! - + Open containing folder - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? @@ -779,12 +779,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets - + No active Wallpaper or Widgets @@ -792,12 +792,12 @@ PopupOffline - - You need to run Steam for this :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 - + Back @@ -902,7 +902,7 @@ ScreenPlayItem - + NEW @@ -1189,102 +1189,102 @@ Sidebar - + Tools Overview - + Video import and convert (all types) - + Video Import (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget - + Set Wallpaper - + Set Widget - + Headline - + Select a Monitor to display the content - + Set Volume - + Fill Mode - + Stretch - + Fill - + Contain - + Cover - + Scale-Down @@ -1402,72 +1402,77 @@ - + + Upload + + + + Search for Wallpaper and Widgets... - + Open Workshop in Steam - + Ranked By Vote - + Publication Date - + Ranked By Trend - + Favorited By Friends - + Created By Friends - + Created By Followed Users - + Not Yet Rated - + Total VotesAsc - + Votes Up - + Total Unique Subscriptions - + Back - + Forward diff --git a/ScreenPlay/translations/ScreenPlay_ko.qm b/ScreenPlay/translations/ScreenPlay_ko_KR.qm similarity index 100% rename from ScreenPlay/translations/ScreenPlay_ko.qm rename to ScreenPlay/translations/ScreenPlay_ko_KR.qm diff --git a/ScreenPlay/translations/ScreenPlay_ko.ts b/ScreenPlay/translations/ScreenPlay_ko_KR.ts similarity index 97% rename from ScreenPlay/translations/ScreenPlay_ko.ts rename to ScreenPlay/translations/ScreenPlay_ko_KR.ts index 11abc7ff..135b4a3c 100644 --- a/ScreenPlay/translations/ScreenPlay_ko.ts +++ b/ScreenPlay/translations/ScreenPlay_ko_KR.ts @@ -227,42 +227,42 @@ - + Convert a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -524,42 +524,42 @@ - + Import a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -605,43 +605,43 @@ - + Refreshing! - - + + Pull to refresh! - + Get more Wallpaper & Widgets via the Steam workshop! - + Open containing folder - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? @@ -795,12 +795,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets - + No active Wallpaper or Widgets @@ -808,12 +808,12 @@ PopupOffline - - You need to run Steam for this :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 - + Back @@ -918,7 +918,7 @@ ScreenPlayItem - + NEW @@ -1205,102 +1205,102 @@ Sidebar - + Tools Overview - + Video import and convert (all types) - + Video Import (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget - + Set Wallpaper - + Set Widget - + Headline - + Select a Monitor to display the content - + Set Volume - + Fill Mode - + Stretch - + Fill - + Contain - + Cover - + Scale-Down @@ -1418,72 +1418,77 @@ - + + Upload + + + + Search for Wallpaper and Widgets... - + Open Workshop in Steam - + Ranked By Vote - + Publication Date - + Ranked By Trend - + Favorited By Friends - + Created By Friends - + Created By Followed Users - + Not Yet Rated - + Total VotesAsc - + Votes Up - + Total Unique Subscriptions - + Back - + Forward diff --git a/ScreenPlay/translations/ScreenPlay_pt_br.ts b/ScreenPlay/translations/ScreenPlay_pt_br.ts index 3887a1bc..ce2dd611 100644 --- a/ScreenPlay/translations/ScreenPlay_pt_br.ts +++ b/ScreenPlay/translations/ScreenPlay_pt_br.ts @@ -227,42 +227,42 @@ - + Convert a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -524,42 +524,42 @@ - + Import a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -605,43 +605,43 @@ - + Refreshing! - - + + Pull to refresh! - + Get more Wallpaper & Widgets via the Steam workshop! - + Open containing folder - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? @@ -795,12 +795,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets - + No active Wallpaper or Widgets @@ -808,12 +808,12 @@ PopupOffline - - You need to run Steam for this :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 - + Back @@ -918,7 +918,7 @@ ScreenPlayItem - + NEW @@ -1205,102 +1205,102 @@ Sidebar - + Tools Overview - + Video import and convert (all types) - + Video Import (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget - + Set Wallpaper - + Set Widget - + Headline - + Select a Monitor to display the content - + Set Volume - + Fill Mode - + Stretch - + Fill - + Contain - + Cover - + Scale-Down @@ -1418,72 +1418,77 @@ - + + Upload + + + + Search for Wallpaper and Widgets... - + Open Workshop in Steam - + Ranked By Vote - + Publication Date - + Ranked By Trend - + Favorited By Friends - + Created By Friends - + Created By Followed Users - + Not Yet Rated - + Total VotesAsc - + Votes Up - + Total Unique Subscriptions - + Back - + Forward diff --git a/ScreenPlay/translations/ScreenPlay_ru.qm b/ScreenPlay/translations/ScreenPlay_ru_RU.qm similarity index 100% rename from ScreenPlay/translations/ScreenPlay_ru.qm rename to ScreenPlay/translations/ScreenPlay_ru_RU.qm diff --git a/ScreenPlay/translations/ScreenPlay_ru.ts b/ScreenPlay/translations/ScreenPlay_ru_RU.ts similarity index 97% rename from ScreenPlay/translations/ScreenPlay_ru.ts rename to ScreenPlay/translations/ScreenPlay_ru_RU.ts index d659beab..cee143d7 100644 --- a/ScreenPlay/translations/ScreenPlay_ru.ts +++ b/ScreenPlay/translations/ScreenPlay_ru_RU.ts @@ -227,42 +227,42 @@ - + Convert a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -524,42 +524,42 @@ - + Import a video to a wallpaper - + Generating preview video... - + Name (required!) - + Description - + Youtube URL - + Abort - + Save - + Save Wallpaper... @@ -605,43 +605,43 @@ - + Refreshing! - - + + Pull to refresh! - + Get more Wallpaper & Widgets via the Steam workshop! - + Open containing folder - + Remove Item - + Remove via Workshop - + Open Workshop Page - + Are you sure you want to delete this item? @@ -795,12 +795,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets - + No active Wallpaper or Widgets @@ -808,12 +808,12 @@ PopupOffline - - You need to run Steam for this :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 - + Back @@ -918,7 +918,7 @@ ScreenPlayItem - + NEW @@ -1205,102 +1205,102 @@ Sidebar - + Tools Overview - + Video import and convert (all types) - + Video Import (.webm) - + GIF Wallpaper - + QML Wallpaper - + HTML5 Wallpaper - + Website Wallpaper - + QML Widget - + HTML Widget - + Set Wallpaper - + Set Widget - + Headline - + Select a Monitor to display the content - + Set Volume - + Fill Mode - + Stretch - + Fill - + Contain - + Cover - + Scale-Down @@ -1418,72 +1418,77 @@ - + + Upload + + + + Search for Wallpaper and Widgets... - + Open Workshop in Steam - + Ranked By Vote - + Publication Date - + Ranked By Trend - + Favorited By Friends - + Created By Friends - + Created By Followed Users - + Not Yet Rated - + Total VotesAsc - + Votes Up - + Total Unique Subscriptions - + Back - + Forward diff --git a/ScreenPlay/translations/ScreenPlay_vi.qm b/ScreenPlay/translations/ScreenPlay_vi_VN.qm similarity index 85% rename from ScreenPlay/translations/ScreenPlay_vi.qm rename to ScreenPlay/translations/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Goff?Mf3bJQb6xVo-{vC2uDeXEvLxRbm3)LL^Kz`qjd6R7sQ*-OJT zQ$4$XA&~O5I;?pLnc#^!K8)hI$OiT5`wOUxXTk-!&MQ4jU1B69rRnM##cg0lgSyd{ zPeWEE^vOqi_VXTNf=R$L{P6k~V1tqOjccN+UkDQw@8&l~p|>Z`}h8wNCa$4R1uSWU^G1Yll^5Tgv4T&r+M(;iqxpNgex zv^Rz~&?G+9-djzL4Js5lBHjWNn@$(0xLNka2-R1@1_KiHb?=#hRDCrp?{?^}5*z4l zKC+R7cv!_|zyPR}vel9E;#veONj eIX1)m?4)?BAvrzMke$j}vJ6JQ)9WKH&iNmQ%mp6+ diff --git a/ScreenPlay/translations/ScreenPlay_vi.ts b/ScreenPlay/translations/ScreenPlay_vi_VN.ts similarity index 98% rename from ScreenPlay/translations/ScreenPlay_vi.ts rename to ScreenPlay/translations/ScreenPlay_vi_VN.ts index aa80fe35..26e9b636 100644 --- a/ScreenPlay/translations/ScreenPlay_vi.ts +++ b/ScreenPlay/translations/ScreenPlay_vi_VN.ts @@ -215,42 +215,42 @@ Đã có lỗi xảy ra khi đang xử lý video! - + Convert a video to a wallpaper Chuyển đổi một video sang ảnh động - + Generating preview video... Đang tạo ra video xem trước... - + Name (required!) Tên (bắt buộc!) - + Description Mô tả - + Youtube URL Link YouTube - + Abort Hủy bỏ - + Save Lưu - + Save Wallpaper... Lưu hình nền... @@ -513,43 +513,43 @@ Đã có lỗi xảy ra khi đang xử lý video! - + Import a video to a wallpaper google translate xD Nhập một video vào hình nền - + Generating preview video... Đang tạo ra video xem trước... - + Name (required!) Tên (bắt buộc!) - + Description Mô tả - + Youtube URL Link YouTube - + Abort Hủy bỏ - + Save Lưu - + Save Wallpaper... Lưu hình nền... @@ -595,43 +595,43 @@ - + Refreshing! Đang làm mới! - - + + Pull to refresh! Kéo xuống để làm mới! - + Get more Wallpaper & Widgets via the Steam workshop! Lấy thêm nhiều hình nền & widgets từ Steam Workshop! - + Open containing folder Mở thư mục chứa hình nền. - + Remove Item Xóa hình nền - + Remove via Workshop Xóa nhờ Workshop - + Open Workshop Page Mở trang workshop - + Are you sure you want to delete this item? Bạn có chắc chắn muốn xóa hình nền này không? @@ -789,12 +789,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets Thiết lập hình nền hoặc widgets đang hoạt động - + No active Wallpaper or Widgets Không có hình nền hoặc widgets đang hoạt động @@ -802,12 +802,12 @@ PopupOffline - - You need to run Steam for this :) - Bạn cần phải chạy Steam cho việc này (*≧ω≦*) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 + - + Back Quay lại @@ -913,7 +913,7 @@ ScreenPlayItem - + NEW @@ -1203,102 +1203,102 @@ Sidebar - + Tools Overview Tổng quan về công cụ - + Video import and convert (all types) Nhập video và chuyển đổi (tất cả các loại) - + Video Import (.webm) Nhập video (.webm) - + GIF Wallpaper Hình nền GIF - + QML Wallpaper Hình nền QML - + HTML5 Wallpaper Hình nền HTML5 - + Website Wallpaper Trang chủ của hình nền - + QML Widget Widget QML - + HTML Widget Widget HTML - + Set Wallpaper Đặt hình nền - + Set Widget Đặt widget - + Headline Tiêu đề - + Select a Monitor to display the content Chọn một màn hình để hiển thị nội dung - + Set Volume Chỉnh âm lượng - + Fill Mode Cách lấp đầy - + Stretch Kéo dài - + Fill Lấp đầy - + Contain Chứa đựng - + Cover Bao phủ - + Scale-Down Giảm tỉ lệ @@ -1418,72 +1418,77 @@ Hồ sơ - + + Upload + + + + Search for Wallpaper and Widgets... Tìm hình nền & widgets... - + Open Workshop in Steam Mở workshop trong Steam - + Ranked By Vote Xếp hạng theo bình chọn - + Publication Date Ngày xuất bản - + Ranked By Trend Xếp hạng theo xu hướng - + Favorited By Friends Được yêu thích bởỉ bạn bè - + Created By Friends Được tạo bởi bạn bè - + Created By Followed Users Được tạo bởi những người đã theo dõi - + Not Yet Rated Chưa được đánh giá - + Total VotesAsc Tổng lượt bình chọn - + Votes Up Bình chọn - + Total Unique Subscriptions Tổng số đăng ký - + Back Quay lại - + Forward Tiếp tục diff --git a/ScreenPlay/translations/ScreenPlay_zh_cn.ts b/ScreenPlay/translations/ScreenPlay_zh_cn.ts index d9270d46..6bac3e9c 100644 --- a/ScreenPlay/translations/ScreenPlay_zh_cn.ts +++ b/ScreenPlay/translations/ScreenPlay_zh_cn.ts @@ -213,42 +213,42 @@ 分析视频出错! - + Convert a video to a wallpaper 将视频转换为壁纸 - + Generating preview video... 生成预览视频... - + Name (required!) 名称(必选) - + Description 简介 - + Youtube URL Youtube 链接 - + Abort 中止 - + Save 保存 - + Save Wallpaper... 保存壁纸... @@ -510,42 +510,42 @@ 分析视频出错! - + Import a video to a wallpaper 将视频导入为壁纸 - + Generating preview video... 生成预览视频... - + Name (required!) 名称(必选) - + Description 简介 - + Youtube URL Youtube 链接 - + Abort 中止 - + Save 保存 - + Save Wallpaper... 保存壁纸... @@ -586,43 +586,43 @@ Installed - + Refreshing! 刷新中! - - + + Pull to refresh! 下拉以刷新! - + Get more Wallpaper & Widgets via the Steam workshop! 从创意工坊获取更多壁纸和物件! - + Open containing folder 打开文件夹 - + Remove Item 删除物品 - + Remove via Workshop 从创意工坊中删除 - + Open Workshop Page 打开创意工坊页面 - + Are you sure you want to delete this item? 您确定要删除此物品? @@ -777,12 +777,12 @@ NavigationWallpaperConfiguration - + Configurate active Wallpaper or Widgets 设置活动壁纸或物件 - + No active Wallpaper or Widgets 没有活动壁纸或物件 @@ -790,12 +790,12 @@ PopupOffline - - You need to run Steam for this :) - 使用此功能需运行Steam :) + + You need to run Steam for this. steamErrorRestart: %1 - steamErrorAPIInit: %2 + - + Back 返回 @@ -900,7 +900,7 @@ ScreenPlayItem - + NEW @@ -1187,57 +1187,57 @@ Sidebar - + Set Widget 设置物件 - + Headline 标题 - + Select a Monitor to display the content 选择显示此内容的显示器 - + Set Volume 设置音量 - + Fill Mode 填充模式 - + Stretch 拉伸 - + Fill 填充 - + Contain 适应 - + Cover 平铺 - + Scale-Down 裁剪 - + Set Wallpaper 设置壁纸 @@ -1287,47 +1287,47 @@ 订阅 - + Tools Overview 工具概览 - + Video import and convert (all types) - + Video Import (.webm) 视频导入 (.webm) - + GIF Wallpaper GIF 壁纸 - + QML Wallpaper QML 壁纸 - + HTML5 Wallpaper HTML5 壁纸 - + Website Wallpaper 网页壁纸 - + QML Widget QML 部件 - + HTML Widget HTML 部件 @@ -1400,72 +1400,77 @@ 配置 - + + Upload + + + + Search for Wallpaper and Widgets... 搜索壁纸和物件... - + Open Workshop in Steam 在Steam中打开创意工坊 - + Ranked By Vote 评分最好 - + Publication Date 发布日期 - + Ranked By Trend 评分趋势 - + Favorited By Friends 好友收藏 - + Created By Friends 好友创建 - + Created By Followed Users 已关注的 - + Not Yet Rated 尚未评分 - + Total VotesAsc 按总票数升序 - + Votes Up 评分上升 - + Total Unique Subscriptions 总订阅量 - + Back 返回 - + Forward 前进 diff --git a/crowdin.yml b/crowdin.yml index 28fc5d8d..41da277c 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,3 +1,3 @@ files: - - source: /ScreenPlay/translations/ScreenPlay_en.ts - translation: /ScreenPlay/translations/ScreenPlay_%two_letters_code%.ts \ No newline at end of file + - source: /ScreenPlay/translations/ScreenPlay_.ts + translation: /ScreenPlay/translations/ScreenPlay_%locale_with_underscore%.ts \ No newline at end of file