From 4f6fd4ccf32bf7e8c03019b2c671f0837987cc9c Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 2 Jul 2020 15:43:28 +0200 Subject: [PATCH] Frontend: Translate options, labels and hints Signed-off-by: Michael Mayer --- frontend/src/component/notify.vue | 2 +- frontend/src/dialog/account/edit.vue | 69 +- frontend/src/dialog/photo/details.vue | 10 +- frontend/src/pages/album/photos.vue | 6 +- frontend/src/pages/albums.vue | 2 +- frontend/src/pages/library/index.vue | 2 +- frontend/src/pages/settings/general.vue | 58 +- frontend/src/pages/settings/sync.vue | 4 +- frontend/src/resources/de.mo | Bin 19196 -> 19724 bytes frontend/src/resources/de.po | 1203 ++++++++++++++-------- frontend/src/resources/hints.js | 21 + frontend/src/resources/labels.js | 50 + frontend/src/resources/options.js | 95 ++ frontend/src/resources/translations.json | 2 +- frontend/src/resources/translations.pot | 282 +++-- 15 files changed, 1159 insertions(+), 647 deletions(-) create mode 100644 frontend/src/resources/hints.js create mode 100644 frontend/src/resources/labels.js create mode 100644 frontend/src/resources/options.js diff --git a/frontend/src/component/notify.vue b/frontend/src/component/notify.vue index 97fa6660a..b2b11a174 100644 --- a/frontend/src/component/notify.vue +++ b/frontend/src/component/notify.vue @@ -49,7 +49,7 @@ let m = data.msg; if (!m || !m.length) { - console.warn("notify: error message missing in api response"); + console.warn("notify: empty message"); return; } diff --git a/frontend/src/dialog/account/edit.vue b/frontend/src/dialog/account/edit.vue index 1a548fcea..0667a99d2 100644 --- a/frontend/src/dialog/account/edit.vue +++ b/frontend/src/dialog/account/edit.vue @@ -12,7 +12,7 @@ color="secondary-dark" :true-value="true" :false-value="false" - :label="model.AccShare ? label.enabled : label.disabled" + :label="model.AccShare ? labels.enabled : labels.disabled" :disabled="model.AccType !== 'webdav'" class="ma-0 hidden-xs-only" hide-details @@ -38,7 +38,7 @@ color="secondary-dark" :true-value="true" :false-value="false" - :label="model.AccSync ? label.enabled : label.disabled" + :label="model.AccSync ? labels.enabled : labels.disabled" :disabled="model.AccType !== 'webdav'" class="mt-0 hidden-xs-only" hide-details @@ -82,7 +82,7 @@ :loading="loading" item-text="abs" item-value="abs" - :label="label.SharePath" + :label="labels.SharePath" :disabled="!model.AccShare || loading" > @@ -90,7 +90,7 @@ @@ -135,7 +135,7 @@ @@ -159,7 +159,7 @@ :disabled="!model.AccSync" hide-details color="secondary-dark" - :label="label.SyncFilenames" + :label="labels.SyncFilenames" v-model="model.SyncFilenames" > @@ -168,7 +168,7 @@ :disabled="!model.AccSync" hide-details color="secondary-dark" - :label="label.SyncUpload" + :label="labels.SyncUpload" v-model="model.SyncUpload" > @@ -177,7 +177,7 @@ :disabled="!model.AccSync" hide-details color="secondary-dark" - :label="label.SyncRaw" + :label="labels.SyncRaw" v-model="model.SyncRaw" > @@ -187,7 +187,7 @@ @@ -268,7 +268,8 @@