From 86889e212e51e7d84a24ade8c51f2ef984fb53ed Mon Sep 17 00:00:00 2001
From: Jo Vuit <jo.vuitton@gmail.com>
Date: Mon, 11 Feb 2019 13:59:52 +0100
Subject: [PATCH] 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 @@
   <section class="ui vertical aligned stripe segment" v-title="labels.title">
     <div class="ui text container">
       <h1>{{ labels.title }}</h1>
-      <p><translate>There are various ways to grab new content and make it available here.</translate></p>
+      <p><translate :translate-context="'Content/Library/Paragraph'">There are various ways to grab new content and make it available here.</translate></p>
       <div class="ui segment">
-        <h2><translate>Upload audio content</translate></h2>
-        <p><translate>Upload music files (MP3, OGG, FLAC, etc.) from your personal library directly from your browser to enjoy them here.</translate></p>
+        <h2><translate :translate-context="'Content/Library/Title/Verb'">Upload audio content</translate></h2>
+        <p><translate :translate-context="'Content/Library/Paragraph'">Upload music files (MP3, OGG, FLAC, etc.) from your personal library directly from your browser to enjoy them here.</translate></p>
         <p>
-          <strong><translate :translate-params="{quota: defaultQuota}">This instance offers up to %{quota} of storage space for every user.</translate></strong>
+          <strong><translate :translate-context="'Content/Library/Paragraph'" :translate-params="{quota: defaultQuota}">This instance offers up to %{quota} of storage space for every user.</translate></strong>
         </p>
         <router-link :to="{name: 'content.libraries.index'}" class="ui green button">
-          <translate>Get started</translate>
+          <translate :translate-context="'Content/Library/Button.Label/Verb'">Get started</translate>
         </router-link>
       </div>
       <div class="ui segment">
-        <h2><translate>Follow remote libraries</translate></h2>
-        <p><translate>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.</translate></p>
+        <h2><translate :translate-context="'Content/Library/Title/Verb'">Follow remote libraries</translate></h2>
+        <p><translate :translate-context="'Content/Library/Paragraph'">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.</translate></p>
         <router-link :to="{name: 'content.remote.index'}" class="ui green button">
-          <translate>Get started</translate>
+          <translate :translate-context="'Content/Library/Button.Label/Verb'">Get started</translate>
         </router-link>
       </div>
 
@@ -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() {
-- 
GitLab