Skip to content

Commit

Permalink
Merge pull request #751 from geonetwork/ME/presentation-stabilization
Browse files Browse the repository at this point in the history
[Editor] : Presentation stabilization
  • Loading branch information
cmoinier authored Jan 9, 2024
2 parents 9a75085 + a3fb036 commit d3532f3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
15 changes: 12 additions & 3 deletions apps/metadata-editor/src/app/records/records-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
</div>
<div class="flex flex-row gap-3 items-center">
<h1 class="text-[56px] font-title grow">{{ title }}</h1>
<h1 *ngIf="users" class="text-[56px] font-title grow" translate>
<h1
*ngIf="users"
class="text-[56px] font-title grow"
translate
[translateParams]="{ count: 0 }"
>
dashboard.records.users
</h1>
</div>
Expand All @@ -38,13 +43,17 @@ <h1 *ngIf="users" class="text-[56px] font-title grow" translate>
target="_blank"
class="flex justify-center gap-2 items-center hover:text-gray-900 text-gray-800 cursor-pointer"
><span>{{ recordCount }}</span>
<span translate>dashboard.records.publishedRecords</span></a
<span translate [translateParams]="{ count: recordCount }"
>dashboard.records.publishedRecords</span
></a
>
<gn-ui-button
(click)="showUsers(logo, title)"
class="flex justify-center gap-2 items-center hover:text-gray-900 text-gray-800 cursor-pointer"
><span>{{ userCount }}</span>
<span translate>dashboard.records.users</span></gn-ui-button
<span translate [translateParams]="{ count: userCount }"
>dashboard.records.users</span
></gn-ui-button
>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<md-editor-records-list
[title]="
'dashboard.records.search' | translate: { searchText: searchText$ | async }
(searchText$ | async)
? ('dashboard.records.search'
| translate: { searchText: searchText$ | async })
: ('dashboard.records.all' | translate)
"
>
</md-editor-records-list>
4 changes: 2 additions & 2 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"dashboard.records.myRecords": "My Records",
"dashboard.records.noRecord": "No record for this organization",
"dashboard.records.noUser": "No users for this organization",
"dashboard.records.publishedRecords": "published records",
"dashboard.records.publishedRecords": "{count, plural, =1{published record} other{published records}}",
"dashboard.records.search": "Search for \"{searchText}\"",
"dashboard.records.userDetail": "Name",
"dashboard.records.userEmail": "Email",
"dashboard.records.username": "Username",
"dashboard.records.users": "users",
"dashboard.records.users": "{count, plural, =1{user} other{users}}",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "File format \n detection",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Gathering dataset \n information",
"datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n data",
Expand Down
8 changes: 4 additions & 4 deletions translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"dashboard.records.myRecords": "Mes fiches publiées",
"dashboard.records.noRecord": "Aucun jeu de données pour cette organisation",
"dashboard.records.noUser": "Aucun utilisateur pour cette organisation",
"dashboard.records.publishedRecords": "données publiées",
"dashboard.records.publishedRecords": "{count, plural, =1{donnée publiée} other{données publiées}}",
"dashboard.records.search": "Résultats pour \"{searchText}\"",
"dashboard.records.userDetail": "Nom",
"dashboard.records.userEmail": "Email",
"dashboard.records.username": "Nom d'utilisateur",
"dashboard.records.users": "utilisateurs",
"dashboard.records.users": "{count, plural, =1{utilisateur} other{utilisateurs}}",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Détection du \n format de fichier",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Récupération des informations \n sur le jeu de données",
"datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n des données",
Expand Down Expand Up @@ -252,10 +252,10 @@
"record.was.created.time": "a créé ce jeu de données {time}",
"records": "enregistrements",
"results.layout.selectOne": "Affichage des résultats",
"results.records.hits.displayedOn": "",
"results.records.hits.displayedOn": "{displayed, plural, =0{Aucun enregistrement} one{1 enregistrement affiché} other{{displayed} enregistrements affichés}} {hits, plural, other{sur {hits} au total.}}",
"results.records.hits.empty.help.html": "Suggestions : <ul class='list-disc list-inside'><li>Essayez d'autres mots clés</li><li>Cherchez moins de mots</li></ul>",
"results.records.hits.found": "{hits, plural, =0{Aucune correspondance.} one{1 enregistrement trouvé.} other{{hits} résultats.}}",
"results.records.hits.selected": "",
"results.records.hits.selected": "{amount, plural, one{1 selectionnée} other{{ amount } sélectionnées}}",
"results.showMore": "Plus de résultats...",
"results.sortBy.dateStamp": "Plus récent",
"results.sortBy.popularity": "Popularité",
Expand Down

0 comments on commit d3532f3

Please sign in to comment.