Skip to content

Commit

Permalink
various translation improvements after review
Browse files Browse the repository at this point in the history
  • Loading branch information
LHBruneton-C2C committed Jan 20, 2025
1 parent 77ef518 commit 709bb4c
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<span
class="material-symbols-outlined gn-ui-icon-small"
[ngClass]="{ 'text-primary': !preview }"
>{{ preview ? 'visibility' : 'visibility_off' }}</span
>{{ preview ? 'visibility_off' : 'visibility' }}</span
>
&nbsp;
{{ preview ? 'WYSIWYG' : 'Markdown' }}
{{ preview ? 'Edit' : 'Preview' }}
</gn-ui-button>
<gn-ui-markdown-editor
[preview]="preview"
Expand Down
8 changes: 4 additions & 4 deletions libs/feature/editor/src/lib/fields.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ export const DATA_MANAGERS_SECTION: EditorSection = {
fields: [CONTACTS_FOR_RESOURCE_FIELD],
}

export const DATA_POINT_OF_CONTACT_SECTION: EditorSection = {
labelKey: marker('editor.record.form.section.dataPointOfContact.label'),
export const METADATA_POINT_OF_CONTACT_SECTION: EditorSection = {
labelKey: marker('editor.record.form.section.metadataPointOfContact.label'),
descriptionKey: marker(
'editor.record.form.section.dataPointOfContact.description'
'editor.record.form.section.metadataPointOfContact.description'
),
hidden: false,
fields: [CONTACTS],
Expand All @@ -285,7 +285,7 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
CLASSIFICATION_SECTION,
USE_AND_ACCESS_CONDITIONS_SECTION,
DATA_MANAGERS_SECTION,
DATA_POINT_OF_CONTACT_SECTION,
METADATA_POINT_OF_CONTACT_SECTION,
],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
(sortChange)="setSortBy('recordOwner', $event)"
>
<ng-template #header>
<span translate>record.metadata.author</span>
<span translate>search.filters.user</span>
</ng-template>
<ng-template #cell let-item>
<ng-icon name="iconoirUser" size="16px"></ng-icon>
Expand Down Expand Up @@ -119,7 +119,7 @@
(sortChange)="setSortBy('changeDate', $event)"
>
<ng-template #header>
<span translate>record.metadata.updatedOn</span>
<span translate>search.filters.changeDate</span>
</ng-template>
<ng-template #cell let-item>
<div class="flex text-left w-full text-xs">
Expand Down
5 changes: 2 additions & 3 deletions translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "",
"editor.record.form.section.dataManagers.description": "",
"editor.record.form.section.dataManagers.label": "",
"editor.record.form.section.dataPointOfContact.description": "",
"editor.record.form.section.dataPointOfContact.label": "",
"editor.record.form.section.geographicalCoverage.label": "",
"editor.record.form.section.metadataPointOfContact.description": "",
"editor.record.form.section.metadataPointOfContact.label": "",
"editor.record.form.section.useAndAccessConditions.label": "",
"editor.record.form.temporalExtents.addDate": "Zeitpunkt",
"editor.record.form.temporalExtents.addRange": "Zeitraum",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "Zurücksetzen",
"record.metadata.api.form.title": "Benutzerdefinierte URL generieren",
"record.metadata.api.form.type": "Ausgabeformat",
"record.metadata.author": "Bearbeitet von",
"record.metadata.catalog": "Katalog",
"record.metadata.contact": "Kontakt",
"record.metadata.creation": "Erstellungsdatum",
Expand Down
13 changes: 6 additions & 7 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,23 +258,23 @@
"editor.record.form.page.ressources": "Resources",
"editor.record.form.section.about.description": "This section describes the resource.",
"editor.record.form.section.about.label": "About the resource",
"editor.record.form.section.annexes.description": "Annexes are optionnal. They are attached resources to the metadata record, which can help to understand the data (manual, etc...).",
"editor.record.form.section.annexes.description": "Annexes are optional. They are attached resources to the metadata record, which can help to understand the data (manual, etc...).",
"editor.record.form.section.annexes.label": "Annexes",
"editor.record.form.section.associatedResources.description": "Drop files here to associate them with the resource.",
"editor.record.form.section.associatedResources.label": "Associated resources",
"editor.record.form.section.classification.description": "The classification has an impact on the access to the data.",
"editor.record.form.section.classification.label": "Classification",
"editor.record.form.section.dataManagers.description": "The data managers are responsible for the data.",
"editor.record.form.section.dataManagers.label": "Data managers",
"editor.record.form.section.dataPointOfContact.description": "This information concerns the metadata.",
"editor.record.form.section.dataPointOfContact.label": "Data point of contact",
"editor.record.form.section.geographicalCoverage.label": "Geographical coverage",
"editor.record.form.section.metadataPointOfContact.description": "This information concerns the metadata.",
"editor.record.form.section.metadataPointOfContact.label": "Metadata point of contact",
"editor.record.form.section.useAndAccessConditions.label": "Use and access conditions",
"editor.record.form.temporalExtents.addDate": "Time instant",
"editor.record.form.temporalExtents.addRange": "Time period",
"editor.record.form.temporalExtents.date": "Date",
"editor.record.form.temporalExtents.range": "Date range",
"editor.record.form.updateFrequency.planned": "The data should be updated regularly.",
"editor.record.form.updateFrequency.planned": "The dataset should be updated regularly",
"editor.record.importFromExternalFile.failure.body": "Failure",
"editor.record.importFromExternalFile.failure.title": "The dataset import failed: ",
"editor.record.importFromExternalFile.success.body": "Import successful",
Expand Down Expand Up @@ -329,7 +329,7 @@
"facets.block.title.th_regions_tree.default": "Regions",
"favorite.not.authenticated.tooltip": "<div><a href=' {link} '>Login</a> to access this feature</div>",
"input.file.dropFileLabel": "or drop it here",
"input.file.orInputUrl": "or",
"input.file.orInputUrl": "or create a link to an external resource",
"input.file.selectFileLabel": "Select a file ({sizeMB} MB max.)",
"input.file.uploadProgressCancel": "Cancel",
"input.file.uploadProgressLabel": "Uploading in progress...",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "Reset",
"record.metadata.api.form.title": "Generate a custom URL",
"record.metadata.api.form.type": "Output format",
"record.metadata.author": "Edited by",
"record.metadata.catalog": "Catalog",
"record.metadata.contact": "Contact",
"record.metadata.creation": "Date of creation",
Expand Down Expand Up @@ -501,7 +500,7 @@
"search.error.recordNotFound": "The dataset with identifier \"{ id }\" could not be found.",
"search.field.any.placeholder": "Search datasets ...",
"search.field.sortBy": "Sort by:",
"search.filters.changeDate": "Last updated",
"search.filters.changeDate": "Updated",
"search.filters.clear": "Reset",
"search.filters.contact": "Contacts",
"search.filters.format": "Formats",
Expand Down
5 changes: 2 additions & 3 deletions translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "",
"editor.record.form.section.dataManagers.description": "",
"editor.record.form.section.dataManagers.label": "",
"editor.record.form.section.dataPointOfContact.description": "",
"editor.record.form.section.dataPointOfContact.label": "",
"editor.record.form.section.geographicalCoverage.label": "",
"editor.record.form.section.metadataPointOfContact.description": "",
"editor.record.form.section.metadataPointOfContact.label": "",
"editor.record.form.section.useAndAccessConditions.label": "",
"editor.record.form.temporalExtents.addDate": "",
"editor.record.form.temporalExtents.addRange": "",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "",
"record.metadata.api.form.title": "",
"record.metadata.api.form.type": "",
"record.metadata.author": "",
"record.metadata.catalog": "",
"record.metadata.contact": "",
"record.metadata.creation": "",
Expand Down
5 changes: 2 additions & 3 deletions translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "Classification",
"editor.record.form.section.dataManagers.description": "Cette information concerne la donnée.",
"editor.record.form.section.dataManagers.label": "Responsables de la donnée",
"editor.record.form.section.dataPointOfContact.description": "Cette information concerne le jeu de données.",
"editor.record.form.section.dataPointOfContact.label": "Point de contact du jeu de données",
"editor.record.form.section.geographicalCoverage.label": "Couverture géographique",
"editor.record.form.section.metadataPointOfContact.description": "Cette information concerne la métadonnée.",
"editor.record.form.section.metadataPointOfContact.label": "Point de contact de la métadonnée",
"editor.record.form.section.useAndAccessConditions.label": "Conditions d'accès et d'usage",
"editor.record.form.temporalExtents.addDate": "Date déterminée",
"editor.record.form.temporalExtents.addRange": "Période de temps",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "Réinitialiser",
"record.metadata.api.form.title": "Générer une URL personnalisée",
"record.metadata.api.form.type": "Format en sortie",
"record.metadata.author": "Modifié par",
"record.metadata.catalog": "Catalogue",
"record.metadata.contact": "Contact",
"record.metadata.creation": "Date de création",
Expand Down
5 changes: 2 additions & 3 deletions translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "",
"editor.record.form.section.dataManagers.description": "",
"editor.record.form.section.dataManagers.label": "",
"editor.record.form.section.dataPointOfContact.description": "",
"editor.record.form.section.dataPointOfContact.label": "",
"editor.record.form.section.geographicalCoverage.label": "",
"editor.record.form.section.metadataPointOfContact.description": "",
"editor.record.form.section.metadataPointOfContact.label": "",
"editor.record.form.section.useAndAccessConditions.label": "",
"editor.record.form.temporalExtents.addDate": "",
"editor.record.form.temporalExtents.addRange": "",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "Reset",
"record.metadata.api.form.title": "Genera un URL personalizzata",
"record.metadata.api.form.type": "Formato in uscita",
"record.metadata.author": "Modificato da",
"record.metadata.catalog": "Catalogo",
"record.metadata.contact": "Contatto",
"record.metadata.creation": "Data di creazione",
Expand Down
5 changes: 2 additions & 3 deletions translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "",
"editor.record.form.section.dataManagers.description": "",
"editor.record.form.section.dataManagers.label": "",
"editor.record.form.section.dataPointOfContact.description": "",
"editor.record.form.section.dataPointOfContact.label": "",
"editor.record.form.section.geographicalCoverage.label": "",
"editor.record.form.section.metadataPointOfContact.description": "",
"editor.record.form.section.metadataPointOfContact.label": "",
"editor.record.form.section.useAndAccessConditions.label": "",
"editor.record.form.temporalExtents.addDate": "",
"editor.record.form.temporalExtents.addRange": "",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "",
"record.metadata.api.form.title": "",
"record.metadata.api.form.type": "",
"record.metadata.author": "",
"record.metadata.catalog": "",
"record.metadata.contact": "",
"record.metadata.creation": "",
Expand Down
5 changes: 2 additions & 3 deletions translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "",
"editor.record.form.section.dataManagers.description": "",
"editor.record.form.section.dataManagers.label": "",
"editor.record.form.section.dataPointOfContact.description": "",
"editor.record.form.section.dataPointOfContact.label": "",
"editor.record.form.section.geographicalCoverage.label": "",
"editor.record.form.section.metadataPointOfContact.description": "",
"editor.record.form.section.metadataPointOfContact.label": "",
"editor.record.form.section.useAndAccessConditions.label": "",
"editor.record.form.temporalExtents.addDate": "",
"editor.record.form.temporalExtents.addRange": "",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "",
"record.metadata.api.form.title": "",
"record.metadata.api.form.type": "",
"record.metadata.author": "",
"record.metadata.catalog": "",
"record.metadata.contact": "",
"record.metadata.creation": "",
Expand Down
5 changes: 2 additions & 3 deletions translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@
"editor.record.form.section.classification.label": "",
"editor.record.form.section.dataManagers.description": "",
"editor.record.form.section.dataManagers.label": "",
"editor.record.form.section.dataPointOfContact.description": "",
"editor.record.form.section.dataPointOfContact.label": "",
"editor.record.form.section.geographicalCoverage.label": "",
"editor.record.form.section.metadataPointOfContact.description": "",
"editor.record.form.section.metadataPointOfContact.label": "",
"editor.record.form.section.useAndAccessConditions.label": "",
"editor.record.form.temporalExtents.addDate": "",
"editor.record.form.temporalExtents.addRange": "",
Expand Down Expand Up @@ -414,7 +414,6 @@
"record.metadata.api.form.reset": "Resetovať",
"record.metadata.api.form.title": "Vytvoriť vlatnú URL",
"record.metadata.api.form.type": "Výstupný formát",
"record.metadata.author": "Autor",
"record.metadata.catalog": "Katalóg",
"record.metadata.contact": "Kontakt",
"record.metadata.creation": "",
Expand Down

0 comments on commit 709bb4c

Please sign in to comment.