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 ec6bc6b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 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
14 changes: 7 additions & 7 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,25 +256,25 @@
"editor.record.form.page.accessAndContact": "Access and contact",
"editor.record.form.page.description": "Resource description",
"editor.record.form.page.ressources": "Resources",
"editor.record.form.section.about.description": "This section describes the resource.",
"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.metadataPointOfContact.description": "This information concerns the metadata.",
"editor.record.form.section.metadataPointOfContact.label": "Metadata point of contact",
"editor.record.form.section.geographicalCoverage.label": "Geographical coverage",
"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 @@ -501,7 +501,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

0 comments on commit ec6bc6b

Please sign in to comment.