diff --git a/src/app/editorialisation/components/organizations/organizations.component.html b/src/app/editorialisation/components/organizations/organizations.component.html index ca909bc3caeb07739119f9a59ca1aec5fddb946d..9dc27edc43c572db7448e51fcff4f006cadc7d04 100644 --- a/src/app/editorialisation/components/organizations/organizations.component.html +++ b/src/app/editorialisation/components/organizations/organizations.component.html @@ -19,7 +19,9 @@ <div *ngIf="organization.datasetsCount" class="columns is-vcentered"> <div class="column is-6 datasetsCount"> <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 class="column is-6"> <a class="button" (click)="goToResearchWithOrganizationFilter(organization.name)"> diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 286a6d8ba29210a452959b8340015039c035e76f..c3016842a011b16a4dbc99dafcef11ed94e06a48 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -26,7 +26,7 @@ export const environment = { }, backendUrls: { - organizations: 'http://localhost:3000/organizations', + organizations: 'http://localhost:3001/organizations', resources: 'http://localhost:3003/resources', }, diff --git a/src/i18n/messages.en.xlf b/src/i18n/messages.en.xlf index cfcee6c0dd4031ee8ac28fc36d89d09a0b76baf9..d42692a94760bad868bc71070c8dc3cdb15112c7 100644 --- a/src/i18n/messages.en.xlf +++ b/src/i18n/messages.en.xlf @@ -295,10 +295,14 @@ <source>More information</source> <target>More information</target> </trans-unit> - <trans-unit id="organizations.datasets" datatype="html"> + <trans-unit id="organizations.datasets.plural" datatype="html"> <source>datasets</source> <target>datasets</target> </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"> <source>RESEARCH</source> <target>RESEARCH</target> diff --git a/src/i18n/messages.fr.xlf b/src/i18n/messages.fr.xlf index 199e92a9ac7b2148a213c6e2b08a82211713679c..918b82fcfd0fe2176139d1fbea61b1e0fe23621c 100644 --- a/src/i18n/messages.fr.xlf +++ b/src/i18n/messages.fr.xlf @@ -303,10 +303,14 @@ <source>More information</source> <target>Plus d'informations</target> </trans-unit> - <trans-unit id="organizations.datasets" datatype="html"> + <trans-unit id="organizations.datasets.plural" datatype="html"> <source>datasets</source> <target>jeux de données</target> </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"> <source>RESEARCH</source> <target>RECHERCHER</target>