Frontend: Improve translations

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-04 12:54:56 +02:00
parent 68843a626d
commit ebc32f7cc1
9 changed files with 64 additions and 60 deletions

View file

@ -355,7 +355,7 @@
} else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One entry found"));
} else {
this.$notify.info(this.results.length + this.$gettext(" entries found"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} entries found"), {n: this.results.length}));
}
} else {
this.$notify.info(this.$gettext('More than 50 entries found'));

View file

@ -362,7 +362,7 @@
this.offset = offset;
if (this.results.length > 1) {
this.$notify.info(this.$gettext("All ") + this.results.length + this.$gettext(" albums loaded"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("All %{n} albums loaded"), {n: this.results.length}));
}
} else {
this.offset = offset + count;
@ -440,7 +440,7 @@
} else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One album found"));
} else {
this.$notify.info(this.results.length + this.$gettext(" albums found"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} albums found"), {n: this.results.length}));
}
} else {
this.$notify.info(this.$gettext('More than 20 albums found'));

View file

@ -287,7 +287,7 @@
this.offset = offset;
if (this.results.length > 1) {
this.$notify.info(this.$gettext('All ') + this.results.length + this.$gettext(' photos loaded'));
this.$notify.info(this.$gettextInterpolate(this.$gettext("All %{n} photos loaded"), {n: this.results.length}));
}
} else if (this.results.length >= Photo.limit()) {
this.offset = offset;
@ -388,7 +388,7 @@
} else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One photo found"));
} else {
this.$notify.info(this.results.length + this.$gettext(" photos found"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} photos found"), {n: this.results.length}));
}
} else {
this.$notify.info(this.$gettext('More than 50 photos found'));

Binary file not shown.

View file

@ -13,23 +13,10 @@ msgstr ""
"X-Generator: Poedit 2.3.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/pages/albums.vue:443 src/share/albums.vue:347
msgid " albums found"
msgstr " Alben gefunden"
#: src/pages/albums.vue:365 src/share/albums.vue:269
msgid " albums loaded"
msgstr " Alben geladen"
#: src/pages/album/photos.vue:358 src/pages/library/files.vue:412
#: src/share/photos.vue:401
#: src/pages/library/files.vue:412
msgid " entries found"
msgstr " Einträge gefunden"
#: src/share/photos.vue:298
msgid " entries loaded"
msgstr " Einträge geladen"
#: src/pages/labels.vue:423
msgid " labels found"
msgstr " Kategorien gefunden"
@ -38,13 +25,17 @@ msgstr " Kategorien gefunden"
msgid " labels loaded"
msgstr " Kategorien geladen"
#: src/pages/photos.vue:391
msgid " photos found"
msgstr " Fotos gefunden"
#: src/pages/albums.vue:443 src/share/albums.vue:347
msgid "%{n} albums found"
msgstr "%{n} Alben gefunden"
#: src/pages/photos.vue:290
msgid " photos loaded"
msgstr " Fotos geladen"
#: src/pages/album/photos.vue:358 src/share/photos.vue:401
msgid "%{n} entries found"
msgstr "%{n} Einträge gefunden"
#: src/pages/photos.vue:391
msgid "%{n} photos found"
msgstr "%{n} Fotos gefunden"
#: src/resources/options.js:114
msgid "1 hour"
@ -157,15 +148,22 @@ msgstr "Alben"
msgid "Albums deleted"
msgstr "Alben gelöscht"
#: src/pages/albums.vue:365 src/pages/labels.vue:342 src/pages/photos.vue:290
#: src/share/albums.vue:269 src/share/photos.vue:298
#: src/pages/labels.vue:342
msgid "All "
msgstr "Alle "
#: src/pages/album/photos.vue:255
#: src/pages/albums.vue:365 src/share/albums.vue:269
msgid "All %{n} albums loaded"
msgstr "Alle %{n} Alben geladen"
#: src/pages/album/photos.vue:255 src/share/photos.vue:298
msgid "All %{n} entries loaded"
msgstr "Alle %{n} Einträge geladen"
#: src/pages/photos.vue:290
msgid "All %{n} photos loaded"
msgstr "Alle %{n} Fotos geladen"
#: src/component/album/toolbar.vue:79 src/component/photo/toolbar.vue:174
msgid "All Cameras"
msgstr "Alle Kameras"
@ -807,6 +805,7 @@ msgstr "PhotoPrism erstellt automatisch Alben deiner schönsten Erlebnisse."
#: src/component/navigation.vue:243 src/component/navigation.vue:252
#: src/pages/settings/general.vue:6 src/pages/settings/general.vue:575
#: src/routes.js:241 src/routes.js:248 src/routes.js:255
msgid "Library"
msgstr "Dateien"
@ -819,7 +818,7 @@ msgstr "Lizenz"
msgid "Lime"
msgstr "Hellgrün"
#: src/model/link.js:122
#: src/model/link.js:101
msgid "Link"
msgstr "Link"
@ -992,7 +991,7 @@ msgstr "Keine Labels entsprechen deinen Suchkriterien"
msgid "No moments matched your search"
msgstr "Keine passenden Alben gefunden"
#: src/pages/photos.vue:387
#: src/pages/photos.vue:387 src/pages/places.vue:194 src/pages/places.vue:231
msgid "No photos found"
msgstr "Keine Fotos gefunden"
@ -1725,6 +1724,12 @@ msgstr "Du kannst nur ein Album gleichzeitig downloaden"
msgid "You can only download one label"
msgstr "Es kann nur eine Kategorie gleichzeitig downgeloadet werden"
#~ msgid " entries loaded"
#~ msgstr " Einträge geladen"
#~ msgid " photos loaded"
#~ msgstr " Fotos geladen"
#~ msgid "Update"
#~ msgstr "Ändern"

File diff suppressed because one or more lines are too long

View file

@ -5,26 +5,10 @@ msgstr ""
"Generated-By: easygettext\n"
"Project-Id-Version: \n"
#: src/pages/albums.vue:443
#: src/share/albums.vue:347
msgid " albums found"
msgstr ""
#: src/pages/albums.vue:365
#: src/share/albums.vue:269
msgid " albums loaded"
msgstr ""
#: src/pages/album/photos.vue:358
#: src/pages/library/files.vue:412
#: src/share/photos.vue:401
msgid " entries found"
msgstr ""
#: src/share/photos.vue:298
msgid " entries loaded"
msgstr ""
#: src/pages/labels.vue:423
msgid " labels found"
msgstr ""
@ -33,12 +17,18 @@ msgstr ""
msgid " labels loaded"
msgstr ""
#: src/pages/photos.vue:391
msgid " photos found"
#: src/pages/albums.vue:443
#: src/share/albums.vue:347
msgid "%{n} albums found"
msgstr ""
#: src/pages/photos.vue:290
msgid " photos loaded"
#: src/pages/album/photos.vue:358
#: src/share/photos.vue:401
msgid "%{n} entries found"
msgstr ""
#: src/pages/photos.vue:391
msgid "%{n} photos found"
msgstr ""
#: src/resources/options.js:114
@ -151,18 +141,24 @@ msgstr ""
msgid "Albums deleted"
msgstr ""
#: src/pages/albums.vue:365
#: src/pages/labels.vue:342
#: src/pages/photos.vue:290
#: src/share/albums.vue:269
#: src/share/photos.vue:298
msgid "All "
msgstr ""
#: src/pages/albums.vue:365
#: src/share/albums.vue:269
msgid "All %{n} albums loaded"
msgstr ""
#: src/pages/album/photos.vue:255
#: src/share/photos.vue:298
msgid "All %{n} entries loaded"
msgstr ""
#: src/pages/photos.vue:290
msgid "All %{n} photos loaded"
msgstr ""
#: src/component/album/toolbar.vue:79
#: src/component/photo/toolbar.vue:174
msgid "All Cameras"
@ -856,6 +852,9 @@ msgstr ""
#: src/component/navigation.vue:252
#: src/pages/settings/general.vue:6
#: src/pages/settings/general.vue:575
#: src/routes.js:241
#: src/routes.js:248
#: src/routes.js:255
msgid "Library"
msgstr ""
@ -870,7 +869,7 @@ msgstr ""
msgid "Lime"
msgstr ""
#: src/model/link.js:122
#: src/model/link.js:101
msgid "Link"
msgstr ""

View file

@ -266,7 +266,7 @@
this.offset = offset;
if (this.results.length > 1) {
this.$notify.info(this.$gettext("All ") + this.results.length + this.$gettext(" albums loaded"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("All %{n} albums loaded"), {n: this.results.length}));
}
} else {
this.offset = offset + count;
@ -344,7 +344,7 @@
} else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One album found"));
} else {
this.$notify.info(this.results.length + this.$gettext(" albums found"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} albums found"), {n: this.results.length}));
}
} else {
this.$notify.info(this.$gettext('More than 20 albums found'));

View file

@ -295,7 +295,7 @@
this.offset = offset;
if (this.results.length > 1) {
this.$notify.info(this.$gettext('All ') + this.results.length + this.$gettext(' entries loaded'));
this.$notify.info(this.$gettextInterpolate(this.$gettext("All %{n} entries loaded"), {n: this.results.length}));
}
} else if (this.results.length >= Photo.limit()) {
this.offset = offset;
@ -398,7 +398,7 @@
} else if (this.results.length === 1) {
this.$notify.info(this.$gettext("One entry found"));
} else {
this.$notify.info(this.results.length + this.$gettext(" entries found"));
this.$notify.info(this.$gettextInterpolate(this.$gettext("%{n} entries found"), {n: this.results.length}));
}
} else {
this.$notify.info(this.$gettext('More than 50 entries found'));