From f1f2e7517d5050b29434747b52c775a1e1d78e17 Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Mon, 11 Feb 2019 13:56:03 +0100 Subject: [PATCH 01/13] Added translation context strings --- front/src/views/content/Base.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/src/views/content/Base.vue b/front/src/views/content/Base.vue index b92a88bd7..daa45e4dc 100644 --- a/front/src/views/content/Base.vue +++ b/front/src/views/content/Base.vue @@ -3,10 +3,10 @@ @@ -15,7 +15,7 @@ export default { computed: { labels() { - let title = this.$gettext("Add content") + let title = this.$pgettext('Head/Library/Title', "Add content") let secondaryMenu = this.$pgettext('Menu/*/Hidden text', "Secondary menu") return { title, From ba5a9c486dbb9b54623ec2823011f4a3adce2e0b Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Mon, 11 Feb 2019 13:56:59 +0100 Subject: [PATCH 02/13] Removed doubled location part 'Popup' --- CONTRIBUTING.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index e35a953f9..2a1f46e0a 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -435,7 +435,6 @@ This hierarchical structure is made of several parts: - ``Popup`` - ``Sidebar`` - ``Head`` - - ``Popup`` - ``*`` for strings that are not tied to a specific location - The feature part, which is required, and refers to the feature associated with the translated string: From 86889e212e51e7d84a24ade8c51f2ef984fb53ed Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Mon, 11 Feb 2019 13:59:52 +0100 Subject: [PATCH 03/13] Added translation strings context --- front/src/views/content/Home.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/front/src/views/content/Home.vue b/front/src/views/content/Home.vue index a23a0e383..d7753fd3a 100644 --- a/front/src/views/content/Home.vue +++ b/front/src/views/content/Home.vue @@ -2,22 +2,22 @@

{{ labels.title }}

-

There are various ways to grab new content and make it available here.

+

There are various ways to grab new content and make it available here.

-

Upload audio content

-

Upload music files (MP3, OGG, FLAC, etc.) from your personal library directly from your browser to enjoy them here.

+

Upload audio content

+

Upload music files (MP3, OGG, FLAC, etc.) from your personal library directly from your browser to enjoy them here.

- This instance offers up to %{quota} of storage space for every user. + This instance offers up to %{quota} of storage space for every user.

- Get started + Get started
-

Follow remote libraries

-

You can follow libraries from other users to get access to new music. Public libraries can be followed immediatly, while following a private library requires approval from its owner.

+

Follow remote libraries

+

You can follow libraries from other users to get access to new music. Public libraries can be followed immediatly, while following a private library requires approval from its owner.

- Get started + Get started
@@ -32,7 +32,7 @@ export default { computed: { labels() { return { - title: this.$gettext("Add and manage content") + title: this.$pgettext('Content/Library/Title/Verb', "Add and manage content") } }, defaultQuota() { From 2cbb983bdea3feedc7789fef0befa899e68d0900 Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Mon, 11 Feb 2019 14:05:19 +0100 Subject: [PATCH 04/13] Added string context --- front/src/views/content/libraries/Card.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/front/src/views/content/libraries/Card.vue b/front/src/views/content/libraries/Card.vue index 6b327f370..775cbf604 100644 --- a/front/src/views/content/libraries/Card.vue +++ b/front/src/views/content/libraries/Card.vue @@ -37,15 +37,15 @@ {{ library.size | humanSize }} - %{ count } track + %{ count } track
- Upload + Upload - Detail + Details
@@ -55,10 +55,10 @@ export default { props: ['library'], computed: { labels () { - let me = this.$gettext('Visibility: nobody except me') - let instance = this.$gettext('Visibility: everyone on this instance') - let everyone = this.$gettext('Visibility: everyone, including other instances') - let size = this.$gettext('Total size of the files in this library') + let me = this.$pgettext('Content/Library/Card.Help text', 'Visibility: nobody except me') + let instance = this.$pgettext('Content/Library/Card.Help text', 'Visibility: everyone on this instance') + let everyone = this.$pgettext('Content/Library/Card.Help text', 'Visibility: everyone, including other instances') + let size = this.$pgettext('Content/Library/Card.Help text', 'Total size of the files in this library') return { tooltips: { From 31d55e036175c5e87af9096f221e6d526ef0432a Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Mon, 11 Feb 2019 14:07:55 +0100 Subject: [PATCH 05/13] Added translation context --- front/src/views/content/libraries/DetailArea.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/views/content/libraries/DetailArea.vue b/front/src/views/content/libraries/DetailArea.vue index eb481ea88..69e9eff01 100644 --- a/front/src/views/content/libraries/DetailArea.vue +++ b/front/src/views/content/libraries/DetailArea.vue @@ -2,7 +2,7 @@
-

Current library

+

Current library

@@ -21,7 +21,7 @@ export default { }, computed: { links () { - let upload = this.$gettext('Upload') + let upload = this.$pgettext('Content/Library/Card.Button.Label/Verb', 'Upload') return [ { name: 'libraries.detail.upload', From fbb8e1a227f894575b24834c6108f6d831c72fea Mon Sep 17 00:00:00 2001 From: Jo Vuit Date: Mon, 11 Feb 2019 14:14:26 +0100 Subject: [PATCH 06/13] Added translation context --- front/src/views/content/libraries/Detail.vue | 34 ++++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/front/src/views/content/libraries/Detail.vue b/front/src/views/content/libraries/Detail.vue index f0bbc2a6e..651447f36 100644 --- a/front/src/views/content/libraries/Detail.vue +++ b/front/src/views/content/libraries/Detail.vue @@ -1,33 +1,33 @@