From 73bb321123a25b81664abc7b11c5361c3408f355 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 5 Oct 2016 23:01:53 +0200 Subject: [PATCH] Add translations for backend libs --- connector/CMakeLists.txt | 5 + .../translations/syncthingconnector_de_DE.ts | 171 ++++++++++++ .../translations/syncthingconnector_en_US.ts | 171 ++++++++++++ model/CMakeLists.txt | 5 + model/translations/syncthingmodel_de_DE.ts | 249 ++++++++++++++++++ model/translations/syncthingmodel_en_US.ts | 249 ++++++++++++++++++ tray/application/main.cpp | 2 + tray/translations/syncthingtray_de_DE.ts | 10 +- tray/translations/syncthingtray_en_US.ts | 10 +- 9 files changed, 862 insertions(+), 10 deletions(-) create mode 100644 connector/translations/syncthingconnector_de_DE.ts create mode 100644 connector/translations/syncthingconnector_en_US.ts create mode 100644 model/translations/syncthingmodel_de_DE.ts create mode 100644 model/translations/syncthingmodel_en_US.ts diff --git a/connector/CMakeLists.txt b/connector/CMakeLists.txt index fdf309f..f12bc0c 100644 --- a/connector/CMakeLists.txt +++ b/connector/CMakeLists.txt @@ -27,6 +27,11 @@ set(SRC_FILES utils.cpp ) +set(TS_FILES + translations/${META_PROJECT_NAME}_de_DE.ts + translations/${META_PROJECT_NAME}_en_US.ts +) + # find c++utilities find_package(c++utilities 4.0.0 REQUIRED) use_cpp_utilities() diff --git a/connector/translations/syncthingconnector_de_DE.ts b/connector/translations/syncthingconnector_de_DE.ts new file mode 100644 index 0000000..ef08d1b --- /dev/null +++ b/connector/translations/syncthingconnector_de_DE.ts @@ -0,0 +1,171 @@ + + + + + Data::SyncthingConnection + + + disconnected + + + + + reconnecting + + + + + connected + + + + + connected, paused + + + + + connected, synchronizing + + + + + unknown + + + + + + Connection configuration is insufficient. + + + + + Unable to request QR-Code: + + + + + Unable to parse Syncthing log: + + + + + Unable to request system log: + + + + + Unable to locate certificate used by Syncthing GUI. + + + + + Unable to load certificate used by Syncthing GUI. + + + + + Unable to parse Syncthing config: + + + + + Unable to request Syncthing config: + + + + + Unable to parse Syncthing status: + + + + + Unable to request Syncthing status: + + + + + Unable to parse connections: + + + + + Unable to request connections: + + + + + Unable to parse directory statistics: + + + + + Unable to request directory statistics: + + + + + Unable to parse device statistics: + + + + + Unable to request device statistics: + + + + + Unable to parse errors: + + + + + Unable to request errors: + + + + + Unable to parse Syncthing events: + + + + + Unable to request Syncthing events: + + + + + Unable to request rescan: + + + + + Unable to request pause/resume: + + + + + Unable to request restart: + + + + + Unable to request shutdown: + + + + + Data::Utils + + + %1 ago + + + + + right now + + + + diff --git a/connector/translations/syncthingconnector_en_US.ts b/connector/translations/syncthingconnector_en_US.ts new file mode 100644 index 0000000..3df91c3 --- /dev/null +++ b/connector/translations/syncthingconnector_en_US.ts @@ -0,0 +1,171 @@ + + + + + Data::SyncthingConnection + + + disconnected + + + + + reconnecting + + + + + connected + + + + + connected, paused + + + + + connected, synchronizing + + + + + unknown + + + + + + Connection configuration is insufficient. + + + + + Unable to request QR-Code: + + + + + Unable to parse Syncthing log: + + + + + Unable to request system log: + + + + + Unable to locate certificate used by Syncthing GUI. + + + + + Unable to load certificate used by Syncthing GUI. + + + + + Unable to parse Syncthing config: + + + + + Unable to request Syncthing config: + + + + + Unable to parse Syncthing status: + + + + + Unable to request Syncthing status: + + + + + Unable to parse connections: + + + + + Unable to request connections: + + + + + Unable to parse directory statistics: + + + + + Unable to request directory statistics: + + + + + Unable to parse device statistics: + + + + + Unable to request device statistics: + + + + + Unable to parse errors: + + + + + Unable to request errors: + + + + + Unable to parse Syncthing events: + + + + + Unable to request Syncthing events: + + + + + Unable to request rescan: + + + + + Unable to request pause/resume: + + + + + Unable to request restart: + + + + + Unable to request shutdown: + + + + + Data::Utils + + + %1 ago + + + + + right now + + + + diff --git a/model/CMakeLists.txt b/model/CMakeLists.txt index c8e17d5..90fe48f 100644 --- a/model/CMakeLists.txt +++ b/model/CMakeLists.txt @@ -19,6 +19,11 @@ set(SRC_FILES syncthingdownloadmodel.cpp ) +set(TS_FILES + translations/${META_PROJECT_NAME}_de_DE.ts + translations/${META_PROJECT_NAME}_en_US.ts +) + # find c++utilities find_package(c++utilities 4.0.0 REQUIRED) use_cpp_utilities() diff --git a/model/translations/syncthingmodel_de_DE.ts b/model/translations/syncthingmodel_de_DE.ts new file mode 100644 index 0000000..3114d4f --- /dev/null +++ b/model/translations/syncthingmodel_de_DE.ts @@ -0,0 +1,249 @@ + + + + + Data::SyncthingDeviceModel + + + + ID + + + + + Status + + + + + Addresses + + + + + Last seen + + + + + Compression + + + + + Certificate + + + + + Introducer + + + + + unknown or own device + + + + + none + + + + + yes + + + + + no + + + + + Paused + + + + + Unknown status + + + + + Own device + + + + + Idle + + + + + Disconnected + + + + + Synchronizing (%1 %) + + + + + Synchronizing + + + + + Out of sync + + + + + Rejected + + + + + Data::SyncthingDirectoryModel + + + + ID + + + + + Status + + + + + Path + + + + + Devices + + + + + Read-only + + + + + Rescan interval + + + + + Last scan + + + + + Last file + + + + + Errors + + + + + yes + + + + + no + + + + + + unknown + + + + + none + + + + + %1 item(s) out of sync + + + + + + + + Deleted at %1 + + + + + Updated at %1 + + + + + Unknown status + + + + + Idle + + + + + Scanning (%1 %) + + + + + Scanning + + + + + Synchronizing (%1 %) + + + + + Synchronizing + + + + + Paused + + + + + Out of sync + + + + + Data::SyncthingDownloadModel + + + Dir/item + + + + + Progress + + + + diff --git a/model/translations/syncthingmodel_en_US.ts b/model/translations/syncthingmodel_en_US.ts new file mode 100644 index 0000000..e82f284 --- /dev/null +++ b/model/translations/syncthingmodel_en_US.ts @@ -0,0 +1,249 @@ + + + + + Data::SyncthingDeviceModel + + + + ID + + + + + Status + + + + + Addresses + + + + + Last seen + + + + + Compression + + + + + Certificate + + + + + Introducer + + + + + unknown or own device + + + + + none + + + + + yes + + + + + no + + + + + Paused + + + + + Unknown status + + + + + Own device + + + + + Idle + + + + + Disconnected + + + + + Synchronizing (%1 %) + + + + + Synchronizing + + + + + Out of sync + + + + + Rejected + + + + + Data::SyncthingDirectoryModel + + + + ID + + + + + Status + + + + + Path + + + + + Devices + + + + + Read-only + + + + + Rescan interval + + + + + Last scan + + + + + Last file + + + + + Errors + + + + + yes + + + + + no + + + + + + unknown + + + + + none + + + + + %1 item(s) out of sync + + %1 item out of sync + %1 items out of sync + + + + + Deleted at %1 + + + + + Updated at %1 + + + + + Unknown status + + + + + Idle + + + + + Scanning (%1 %) + + + + + Scanning + + + + + Synchronizing (%1 %) + + + + + Synchronizing + + + + + Paused + + + + + Out of sync + + + + + Data::SyncthingDownloadModel + + + Dir/item + + + + + Progress + + + + diff --git a/tray/application/main.cpp b/tray/application/main.cpp index 567b54d..da81d62 100644 --- a/tray/application/main.cpp +++ b/tray/application/main.cpp @@ -103,6 +103,8 @@ int runApplication(int argc, const char *const *argv) qtConfigArgs.applySettings(true); LOAD_QT_TRANSLATIONS; + TranslationFiles::loadApplicationTranslationFile(QStringLiteral("syncthingconnection")); + TranslationFiles::loadApplicationTranslationFile(QStringLiteral("syncthingmodel")); QtUtilitiesResources::init(); int res = initSyncthingTray(windowedArg.isPresent(), waitForTrayArg.isPresent()); diff --git a/tray/translations/syncthingtray_de_DE.ts b/tray/translations/syncthingtray_de_DE.ts index fa816c4..2acd016 100644 --- a/tray/translations/syncthingtray_de_DE.ts +++ b/tray/translations/syncthingtray_de_DE.ts @@ -488,6 +488,11 @@ At least one directory is out of sync + + + Notifications available + + Syncthing is idling @@ -498,11 +503,6 @@ Syncthing is scanning - - - Notifications available - - At least one device is paused diff --git a/tray/translations/syncthingtray_en_US.ts b/tray/translations/syncthingtray_en_US.ts index 9e7017d..17c745f 100644 --- a/tray/translations/syncthingtray_en_US.ts +++ b/tray/translations/syncthingtray_en_US.ts @@ -488,6 +488,11 @@ At least one directory is out of sync + + + Notifications available + + Syncthing is idling @@ -498,11 +503,6 @@ Syncthing is scanning - - - Notifications available - - At least one device is paused