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

fix_34 singular/plural dataset counter in organizations page

parent e598bf95
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
<div *ngIf="organization.datasetsCount" class="columns is-vcentered"> <div *ngIf="organization.datasetsCount" class="columns is-vcentered">
<div class="column is-6 datasetsCount"> <div class="column is-6 datasetsCount">
<span class="has-text-danger has-text-weight-bold count"> <span class="has-text-danger has-text-weight-bold count">
{{ organization.datasetsCount}}</span><br /> <span i18n="@@organizations.datasets">datasets</span> {{ organization.datasetsCount}}</span><br />
<span i18n="@@organizations.datasets.plural" *ngIf="organization.datasetsCount > 1">datasets</span>
<span i18n="@@organizations.datasets.singular" *ngIf="organization.datasetsCount < 2">dataset</span>
</div> </div>
<div class="column is-6"> <div class="column is-6">
<a class="button" (click)="goToResearchWithOrganizationFilter(organization.name)"> <a class="button" (click)="goToResearchWithOrganizationFilter(organization.name)">
......
...@@ -26,7 +26,7 @@ export const environment = { ...@@ -26,7 +26,7 @@ export const environment = {
}, },
backendUrls: { backendUrls: {
organizations: 'http://localhost:3000/organizations', organizations: 'http://localhost:3001/organizations',
resources: 'http://localhost:3003/resources', resources: 'http://localhost:3003/resources',
}, },
......
...@@ -295,10 +295,14 @@ ...@@ -295,10 +295,14 @@
<source>More information</source> <source>More information</source>
<target>More information</target> <target>More information</target>
</trans-unit> </trans-unit>
<trans-unit id="organizations.datasets" datatype="html"> <trans-unit id="organizations.datasets.plural" datatype="html">
<source>datasets</source> <source>datasets</source>
<target>datasets</target> <target>datasets</target>
</trans-unit> </trans-unit>
<trans-unit id="organizations.datasets.singular" datatype="html">
<source>dataset</source>
<target>dataset</target>
</trans-unit>
<trans-unit id="organizations.research" datatype="html"> <trans-unit id="organizations.research" datatype="html">
<source>RESEARCH</source> <source>RESEARCH</source>
<target>RESEARCH</target> <target>RESEARCH</target>
......
...@@ -303,10 +303,14 @@ ...@@ -303,10 +303,14 @@
<source>More information</source> <source>More information</source>
<target>Plus d'informations</target> <target>Plus d'informations</target>
</trans-unit> </trans-unit>
<trans-unit id="organizations.datasets" datatype="html"> <trans-unit id="organizations.datasets.plural" datatype="html">
<source>datasets</source> <source>datasets</source>
<target>jeux de données</target> <target>jeux de données</target>
</trans-unit> </trans-unit>
<trans-unit id="organizations.datasets.singular" datatype="html">
<source>dataset</source>
<target>jeu de données</target>
</trans-unit>
<trans-unit id="organizations.research" datatype="html"> <trans-unit id="organizations.research" datatype="html">
<source>RESEARCH</source> <source>RESEARCH</source>
<target>RECHERCHER</target> <target>RECHERCHER</target>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment