From bb6c97ddc6fdafbbc8cf1ebf49a52d53a5e217a8 Mon Sep 17 00:00:00 2001
From: FORESTIER Fabien <fabien.forestier@soprasteria.com>
Date: Tue, 30 Oct 2018 11:23:08 +0100
Subject: [PATCH] Add missing translations

---
 src/app/core/components/contact/contact.component.html    | 4 ++--
 .../dataset-info/dataset-info.component.html              | 3 ++-
 src/i18n/messages.en.xlf                                  | 8 ++++++++
 src/i18n/messages.fr.xlf                                  | 8 ++++++++
 4 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/app/core/components/contact/contact.component.html b/src/app/core/components/contact/contact.component.html
index 742788f9..c0077ff2 100644
--- a/src/app/core/components/contact/contact.component.html
+++ b/src/app/core/components/contact/contact.component.html
@@ -29,7 +29,7 @@
               <div *ngIf="form.controls['lastname'].errors.required" i18n="@@contact.errors.missingLastname">
                 You must indicate a lastname.
               </div>
-              <div *ngIf="form.controls['lastname'].errors.pattern" i18n="@@contact.errors.lastnamePattern">
+              <div *ngIf="form.controls['lastname'].errors.pattern" i18n="@@contact.errors.forbiddenCharacters">
                 Special characters are forbidden.
               </div>
             </div>
@@ -52,7 +52,7 @@
               <div *ngIf="form.controls['firstname'].errors.required" i18n="@@contact.errors.missingFirstname">
                 You must indicate a firstname.
               </div>
-              <div *ngIf="form.controls['lastname'].errors.pattern" i18n="@@contact.errors.firstnamePattern">
+              <div *ngIf="form.controls['lastname'].errors.pattern" i18n="@@contact.errors.forbiddenCharacters">
                 Special characters are forbidden.
               </div>
             </div>
diff --git a/src/app/geosource/components/dataset-detail/dataset-info/dataset-info.component.html b/src/app/geosource/components/dataset-detail/dataset-info/dataset-info.component.html
index ff6f4e9b..f92e5ca0 100644
--- a/src/app/geosource/components/dataset-detail/dataset-info/dataset-info.component.html
+++ b/src/app/geosource/components/dataset-detail/dataset-info/dataset-info.component.html
@@ -89,7 +89,8 @@
         <div class="contact">
           <div class="columns is-marginless">
             <div class="column is-12 title is-size-7">
-              Vous avez des questions sur ce jeu de données? <a class="link-red" [routerLink]="['/', AppRoutes.contact.uri]" [queryParams]="{ subject: metadata.title }">Contactez-nous.</a>
+              <span i18n="dataset.info.questions">You have questions on this dataset, </span>
+              <a i18n="dataset.info.contactus" class="link-red" [routerLink]="['/', AppRoutes.contact.uri]" [queryParams]="{ subject: metadata.title }">contact us.</a>
             </div>
           </div>
         </div>
diff --git a/src/i18n/messages.en.xlf b/src/i18n/messages.en.xlf
index 5b4bdfd6..69beaa12 100644
--- a/src/i18n/messages.en.xlf
+++ b/src/i18n/messages.en.xlf
@@ -259,6 +259,14 @@
          <source>Number of views (last 30 days)</source>
          <target>Number of views (last 30 days)</target>
       </trans-unit>
+      <trans-unit id="dataset.info.questions" datatype="html">
+         <source>You have questions on this dataset, </source>
+         <target>You have questions on this dataset, </target>
+      </trans-unit>
+      <trans-unit id="dataset.info.contactus" datatype="html">
+         <source>contact us.</source>
+         <target>contact us.</target>
+      </trans-unit>
       <trans-unit id="dataset.data.unavailableInfo" datatype="html">
          <source>Unavailable information for this data</source>
          <target>Unavailable information for this data</target>
diff --git a/src/i18n/messages.fr.xlf b/src/i18n/messages.fr.xlf
index 9e14d5ab..86d2dd85 100644
--- a/src/i18n/messages.fr.xlf
+++ b/src/i18n/messages.fr.xlf
@@ -267,6 +267,14 @@
          <source>Number of views (last 30 days)</source>
          <target>Nombre de vues (30 derniers jours)</target>
       </trans-unit>
+      <trans-unit id="dataset.info.questions" datatype="html">
+         <source>You have questions on this dataset, </source>
+         <target>Vous avez des questions sur ce jeu de données, </target>
+      </trans-unit>
+      <trans-unit id="dataset.info.contactus" datatype="html">
+         <source>contact us.</source>
+         <target>contactez-nous.</target>
+      </trans-unit>
       <trans-unit id="dataset.data.unavailableInfo" datatype="html">
          <source>Unavailable information for this data</source>
          <target>Information non disponible pour cette donnée</target>
-- 
GitLab