Skip to content
Snippets Groups Projects
Commit 8c9a6715 authored by ncastejon's avatar ncastejon
Browse files

Fix i18n for 'found occurences' in the results view

parent bac4a18b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -127,9 +127,14 @@
<div class="content" [innerHTML]="result.excerpt">
</div>
<div *ngIf="result.highlight.length > 0">
<p><strong i18n="@@global.occurenceFound">
{result.highlight.length, plural, =1 {Found occurence} other {Found occurences}}
</strong></p>
<p>
<strong i18n="@@global.oneOccurenceFound" *ngIf="result.highlight.length === 1">
Found occurence
</strong>
<strong i18n="@@global.manyOccurencesFound" *ngIf="result.highlight.length > 1">
Found occurences
</strong>
</p>
<p class="item-found" *ngFor="let e of result.highlight">
<span>{{ e.label }}:</span> <span [innerHTML]="e.value"></span>
</p>
......
......@@ -110,17 +110,13 @@
<source><x id="INTERPOLATION"/> results found</source>
<target><x id="INTERPOLATION"/> results found</target>
</trans-unit>
<trans-unit id="global.occurenceFound" datatype="html">
<source>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}}</source>
<target>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}}</target>
<trans-unit id="global.oneOccurenceFound" datatype="html">
<source>Found occurence</source>
<target>Found occurence</target>
</trans-unit>
<trans-unit id="global.occurenceFoundMetadata" datatype="html">
<source>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}} in metadata</source>
<target>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}} in metadata</target>
</trans-unit>
<trans-unit id="global.occurenceFoundData" datatype="html">
<source>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}} in data</source>
<target>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}} in data</target>
<trans-unit id="global.manyOccurencesFound" datatype="html">
<source>Found occurences</source>
<target>Found occurences</target>
</trans-unit>
<trans-unit id="research.dataset" datatype="html">
<source>Research in catalog</source>
......
......@@ -110,10 +110,6 @@
<source><x id="INTERPOLATION"/> results found</source>
<target><x id="INTERPOLATION"/> résultats trouvés</target>
</trans-unit>
<trans-unit id="global.occurenceFound" datatype="html">
<source>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}}</source>
<target>{VAR_PLURAL, plural, =1 {Occurence trouvée} other {Occurences trouvées}}</target>
</trans-unit>
<trans-unit id="global.occurenceFoundMetadata" datatype="html">
<source>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}} in metadata</source>
<target>{VAR_PLURAL, plural, =1 {Occurence trouvée} other {Occurences trouvées}} dans les métadonnées</target>
......@@ -122,6 +118,14 @@
<source>{VAR_PLURAL, plural, =1 {Found occurence} other {Found occurences}} in data</source>
<target>{VAR_PLURAL, plural, =1 {Occurence trouvée} other {Occurences trouvées}} dans les données</target>
</trans-unit>
<trans-unit id="global.oneOccurenceFound" datatype="html">
<source>Found occurence</source>
<target>Occurence trouvée</target>
</trans-unit>
<trans-unit id="global.manyOccurencesFound" datatype="html">
<source>Found occurences</source>
<target>Occurences trouvées</target>
</trans-unit>
<trans-unit id="research.dataset" datatype="html">
<source>Research in catalog</source>
<target>Rechercher dans le catalogue</target>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment