From 171c6351ce53c0eaa83a669959bd218f7a3b3752 Mon Sep 17 00:00:00 2001
From: "ext.sopra.ncastejon" <castejon.nicolas@gmail.com>
Date: Mon, 11 May 2020 16:03:07 +0200
Subject: [PATCH] Info tab: when no view replace '-' by '0 view'

---
 .../dataset-info/info-summary/info-summary.component.html     | 4 +++-
 src/i18n/messages.en.xlf                                      | 4 ++++
 src/i18n/messages.fr.xlf                                      | 4 ++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/app/dataset-detail/components/dataset-info/info-summary/info-summary.component.html b/src/app/dataset-detail/components/dataset-info/info-summary/info-summary.component.html
index 1ed49a16..f7aaa0d1 100644
--- a/src/app/dataset-detail/components/dataset-info/info-summary/info-summary.component.html
+++ b/src/app/dataset-detail/components/dataset-info/info-summary/info-summary.component.html
@@ -56,7 +56,9 @@
 
         <span *ngIf="summaryInfo.viewsNumber" i18n="@@dataset.info.viewsNumber">{{ summaryInfo.viewsNumber }}
           view(s)during the last month</span>
-        <span *ngIf="!summaryInfo.viewsNumber">-</span>
+        <span *ngIf="!summaryInfo.viewsNumber">0</span>
+        &nbsp;
+        <span i18n="@@dataset.info.view">view</span>
       </div>
       <div>
         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
diff --git a/src/i18n/messages.en.xlf b/src/i18n/messages.en.xlf
index 831a5825..57898278 100644
--- a/src/i18n/messages.en.xlf
+++ b/src/i18n/messages.en.xlf
@@ -531,6 +531,10 @@
           <x id="INTERPOLATION"/>
  view(s) during the last month</target>
       </trans-unit>
+      <trans-unit id="dataset.info.view" datatype="html">
+        <source>view</source>
+        <target>view</target>
+      </trans-unit>
       <trans-unit id="dataset.info.publishDate" datatype="html">
         <source>Published on <x id="INTERPOLATION"/>
         </source>
diff --git a/src/i18n/messages.fr.xlf b/src/i18n/messages.fr.xlf
index f60de23b..48c5e116 100644
--- a/src/i18n/messages.fr.xlf
+++ b/src/i18n/messages.fr.xlf
@@ -531,6 +531,10 @@
           <x id="INTERPOLATION"/>
  vue(s) dans le dernier mois</target>
       </trans-unit>
+      <trans-unit id="dataset.info.view" datatype="html">
+        <source>view</source>
+        <target>vue</target>
+      </trans-unit>
       <trans-unit id="dataset.info.publishDate" datatype="html">
         <source>Published on <x id="INTERPOLATION"/>
         </source>
-- 
GitLab