Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation pack / Add gnui bundle and transifex update. #5445

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions services/src/main/resources/config-spring-geonetwork.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@
<bean id="userFeedbackService" class="org.fao.geonet.api.userfeedback.service.UserFeedbackDatabaseService"/>

<util:map id="translationPacks">
<entry key="gnui">
<util:list>
<value>json/gnui</value>
<value>standards/iso19139/codelists/gmd:MD_TopicCategoryCode+gmd:MD_ScopeCode+gmd:MD_MaintenanceFrequencyCode+gmd:MD_ProgressCode+gmd:DS_InitiativeTypeCode+gmd:MD_SpatialRepresentationTypeCode</value>
<value>standards/iso19115-3.2018/codelists/cit:CI_DateTypeCode</value>
<value>db/MetadataCategory+Operation+Group+StatusValue+Source</value>
</util:list>
</entry>
<entry key="login">
<util:list>
<value>json/core</value>
Expand Down
3 changes: 2 additions & 1 deletion web-ui/download-from-transifex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tx pull -a -r 'core-geonetwork.admin'
tx pull -a -r 'core-geonetwork.core'
tx pull -a -r 'core-geonetwork.v4'
tx pull -a -r 'core-geonetwork.search'
tx pull -a -r 'core-geonetwork.gnui'
cd ..

TRANSLATION_DIR=transifex-src/translations/core-geonetwork.
Expand All @@ -39,7 +40,7 @@ for index in "${l[@]}" ; do
KEY="${index%%::*}"
VALUE="${index##*::}"
echo "Language $VALUE"
for mod in admin core editor search v4
for mod in admin core editor search v4 gnui
do
cp $TRANSLATION_DIR$mod/$VALUE.json $SRC_DIR/$KEY-$mod.json
done;
Expand Down
27 changes: 27 additions & 0 deletions web-ui/src/main/resources/catalog/locales/ca-gnui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"facets.block.title.OrgForResource": "Organització",
"facets.block.title.availableInServices": "Available for",
"facets.block.title.cl_hierarchyLevel.key": "Resource type",
"facets.block.title.cl_maintenanceAndUpdateFrequency.key": "Freqüència d'Actualització",
"facets.block.title.cl_spatialRepresentationType.key": "Spatial representation",
"facets.block.title.cl_status.key": "Estat",
"facets.block.title.creationYearForResource": "Any de creació",
"facets.block.title.resolutionScaleDenominator": "Escala",
"facets.block.title.tag": "Paraules clau",
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Regions",
"nav.back": "Back",
"record.action.download": "Descarregar",
"record.action.view": "Veure",
"record.more.details": "Read more",
"records": "records",
"results.layout.selectOne": "Results layout",
"results.records.hits.found": "{hits, plural, =0{No documents match the specified search.} one{} other{{hits} records found.}}",
"results.records.hits.found=0.help": "Suggestions: <ul class='list-disc list-inside'><li>Try other words</li><li>Specify fewer words</li></ul>",
"results.sortBy.dateStamp": "Last updates",
"results.sortBy.popularity": "Popularity",
"results.sortBy.relevancy": "Relevancy",
"search.field.any.placeholder": "Search datasets, services and maps ...",
"search.field.sortBy": "Sort by",
"search.loading": "Loading ..."
}
27 changes: 27 additions & 0 deletions web-ui/src/main/resources/catalog/locales/cs-gnui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"facets.block.title.OrgForResource": "Organizace",
"facets.block.title.availableInServices": "Available for",
"facets.block.title.cl_hierarchyLevel.key": "Resource type",
"facets.block.title.cl_maintenanceAndUpdateFrequency.key": "Aktualizovat četnost",
"facets.block.title.cl_spatialRepresentationType.key": "Spatial representation",
"facets.block.title.cl_status.key": "Stav",
"facets.block.title.creationYearForResource": "Rok vzniku",
"facets.block.title.resolutionScaleDenominator": "Měřítko",
"facets.block.title.tag": "Klíčová slova",
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Regiony",
"nav.back": "Back",
"record.action.download": "Stáhnout",
"record.action.view": "Zobrazit",
"record.more.details": "Read more",
"records": "records",
"results.layout.selectOne": "Results layout",
"results.records.hits.found": "{hits, plural, =0{No documents match the specified search.} one{} other{{hits} records found.}}",
"results.records.hits.found=0.help": "Suggestions: <ul class='list-disc list-inside'><li>Try other words</li><li>Specify fewer words</li></ul>",
"results.sortBy.dateStamp": "Last updates",
"results.sortBy.popularity": "Popularita",
"results.sortBy.relevancy": "Relevancy",
"search.field.any.placeholder": "Search datasets, services and maps ...",
"search.field.sortBy": "Seřadit podle",
"search.loading": "Loading ..."
}
27 changes: 27 additions & 0 deletions web-ui/src/main/resources/catalog/locales/de-gnui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"facets.block.title.OrgForResource": "Organisation",
"facets.block.title.availableInServices": "Available for",
"facets.block.title.cl_hierarchyLevel.key": "Resource type",
"facets.block.title.cl_maintenanceAndUpdateFrequency.key": "Überarbeitungsintervall",
"facets.block.title.cl_spatialRepresentationType.key": "Spatial representation",
"facets.block.title.cl_status.key": "Status",
"facets.block.title.creationYearForResource": "Entstehungsjahr",
"facets.block.title.resolutionScaleDenominator": "Maßstab",
"facets.block.title.tag": "Schlagwörter",
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Regionen",
"nav.back": "Back",
"record.action.download": "Download",
"record.action.view": "Ansicht",
"record.more.details": "Read more",
"records": "records",
"results.layout.selectOne": "Results layout",
"results.records.hits.found": "{hits, plural, =0{No documents match the specified search.} one{} other{{hits} records found.}}",
"results.records.hits.found=0.help": "Suggestions: <ul class='list-disc list-inside'><li>Try other words</li><li>Specify fewer words</li></ul>",
"results.sortBy.dateStamp": "Last updates",
"results.sortBy.popularity": "Popularität",
"results.sortBy.relevancy": "Relevancy",
"search.field.any.placeholder": "Search datasets, services and maps ...",
"search.field.sortBy": "Sortiere nach",
"search.loading": "Loading ..."
}
27 changes: 27 additions & 0 deletions web-ui/src/main/resources/catalog/locales/es-gnui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"facets.block.title.OrgForResource": "Organización",
"facets.block.title.availableInServices": "Available for",
"facets.block.title.cl_hierarchyLevel.key": "Resource type",
"facets.block.title.cl_maintenanceAndUpdateFrequency.key": "Frecuencia de Actualización",
"facets.block.title.cl_spatialRepresentationType.key": "Spatial representation",
"facets.block.title.cl_status.key": "Estado",
"facets.block.title.creationYearForResource": "Año de creación",
"facets.block.title.resolutionScaleDenominator": "Escala",
"facets.block.title.tag": "Palabras clave",
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Regiones",
"nav.back": "Back",
"record.action.download": "Descargar",
"record.action.view": "Ver",
"record.more.details": "Read more",
"records": "records",
"results.layout.selectOne": "Results layout",
"results.records.hits.found": "{hits, plural, =0{No documents match the specified search.} one{} other{{hits} records found.}}",
"results.records.hits.found=0.help": "Suggestions: <ul class='list-disc list-inside'><li>Try other words</li><li>Specify fewer words</li></ul>",
"results.sortBy.dateStamp": "Last updates",
"results.sortBy.popularity": "Popularity",
"results.sortBy.relevancy": "Relevancy",
"search.field.any.placeholder": "Search datasets, services and maps ...",
"search.field.sortBy": "Sort by",
"search.loading": "Loading ..."
}
27 changes: 27 additions & 0 deletions web-ui/src/main/resources/catalog/locales/fi-gnui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"facets.block.title.OrgForResource": "Organisaatio",
"facets.block.title.availableInServices": "Available for",
"facets.block.title.cl_hierarchyLevel.key": "Resource type",
"facets.block.title.cl_maintenanceAndUpdateFrequency.key": "Ylläpitotiheys",
"facets.block.title.cl_spatialRepresentationType.key": "Spatial representation",
"facets.block.title.cl_status.key": "Tila",
"facets.block.title.creationYearForResource": "Luontivuosi",
"facets.block.title.resolutionScaleDenominator": "Mittakaava",
"facets.block.title.tag": "Avainsanat",
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Alueet",
"nav.back": "Back",
"record.action.download": "Lataa",
"record.action.view": "Katso",
"record.more.details": "Read more",
"records": "records",
"results.layout.selectOne": "Results layout",
"results.records.hits.found": "{hits, plural, =0{No documents match the specified search.} one{} other{{hits} records found.}}",
"results.records.hits.found=0.help": "Suggestions: <ul class='list-disc list-inside'><li>Try other words</li><li>Specify fewer words</li></ul>",
"results.sortBy.dateStamp": "Last updates",
"results.sortBy.popularity": "Popularity",
"results.sortBy.relevancy": "Relevancy",
"search.field.any.placeholder": "Search datasets, services and maps ...",
"search.field.sortBy": "Sort by",
"search.loading": "Loading ..."
}
22 changes: 11 additions & 11 deletions web-ui/src/main/resources/catalog/locales/fr-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"validateSelectedRecordConfirm": "Voulez-vous vraiement valider les {{selectedCount}} fiche(s) sélectionnée(s) ?",
"validateLinksSelectedRecordConfirm": "Voulez-vous vraiment valider les liens des {{selectedCount}} fiches sélectionnées ?",
"validateSelectedRecordINSPIREConfirm": "Voulez vous lancer le processus de validation INSPIRE les {{selectedCount}} fiche(s) sélectionnée(s) ?",
"restoreValueFromHistoryConfirm": "Confirm to restore the current element from history",
"restoreValueFromHistoryConfirm": "Confirmer la restoration de cet élément de l'historique",
"regions": "Territoires",
"gemetKeywords": "Mots clés GEMET",
"createAnAccount": "Créer un compte",
Expand Down Expand Up @@ -145,11 +145,11 @@
"inspirePopupReportTitle": "Rapport de validation INSPIRE",
"inspirePopupReportText": "La validation est terminée avec le statut :",
"inspirePopupReportLink": "Cliquer ici pour plus de détails",
"notAllowedError": "Not allowed to current profile",
"notAllowedError": "Non autorisé pour ce profil",
"notFoundError": "Ressource non trouvée.",
"internalServerError": "Internal Server Error",
"recordRestored": "Record restored",
"confirmRestore": "Do you want to overwrite the current data with the values saved in the selected record?",
"internalServerError": "Erreur interne du serveur",
"recordRestored": "Fiche restaurée",
"confirmRestore": "Voulez-vous écraser les données actuelles par celles sauvegardées dans la fiche sélectionnée ?",
"ita": "Italien",
"keyword": "Mot-clé",
"keywordFilter": "Filtre sur les mot-clés",
Expand Down Expand Up @@ -294,9 +294,9 @@
"taskDueDate": "Date souhaitée",
"taskCloseDate": "Date de fin",
"taskMessage": "Message",
"restore": "Restore",
"viewPreviousVersion": "View Previous Version",
"viewChangedVersion": "View Changed Version",
"restore": "Restaurer",
"viewPreviousVersion": "Version précédente",
"viewChangedVersion": "Version modifiée",
"triggerTask": "Lancer la tâche",
"closeTask": "Fermer la tâche",
"enableWorkflow": "Activer le workflow",
Expand Down Expand Up @@ -355,11 +355,11 @@
"_status": "État",
"_schema": "Standard",
"checkCapabilityUrl": "L'url {{url}} a retourné le status '{{status}}'. Vous devez vérifier l'url ou vérifier que le service est en actif.",
"checkCapabilityUrlUnauthorized": "URL {{url}} returned status '{{status}}'. That means that this service requires authentication. Try to connect to it first.",
"checkCapabilityUrlUnauthorized": "L'URL {{url}} a retourné l'état '{{status}}'. Cela indique que ce service nécessite une authentification. Essayez d'abord de vous y connecter.",
"failedToParseCapabilities": "Erreur d'analyse du résultat de l'opération GetCapabilities. Essayer à nouveau plus tard ou contacter le fournisseur de service.",
"checkProjectionUrlUnauthorized": "URL {{url}} returned status '{{status}}'. That means that this service requires authentication. Try to connect to it first.",
"checkProjectionUrl": "URL {{url}} returned status '{{status}}'. Please check the URL and verify that the service is online.",
"failedToParseProjDefinition": "Failed to parse projection definition response. Please try again later, contact the service provider, or report this issue.",
"checkProjectionUrl": "L'URL {{url}} a retournée l'état '{{status}}'. Vérifiez l'URL.",
"failedToParseProjDefinition": "Echec lors de la lecture de la définition de cette projection. Essayer plus tard ou contacter le fournisseur du service.",
"layerIsAlreadyInMap": "La couche '{{layer}}' du service '{{url}}' a déjà été chargée au niveau de la carte actuelle. Cliquer <a href=\"#map?extent={{extent}}&activate={{layer}}\">ici afin d'effectuer un zoom dessus</a>.",
"layerStylesAvailable": "styles de couches disponibles:",
"previewLegend": "Visualiser la légende du style",
Expand Down
2 changes: 1 addition & 1 deletion web-ui/src/main/resources/catalog/locales/fr-editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"chooseContactRole": "ou choisir un rôle",
"chooseEntry": "Rechercher",
"clickToAddResource": "Cliquer pour sélectionner la ressource",
"externalResourceManagement": "Click to go to external resource manager",
"externalResourceManagement": "Cliquer ici pour aller dans le gestionnaire de ressources externes.",
"beforeUnloadEditor": "Vous pourriez avoir des modifications non sauvées depuis la dernière sauvegarde {{timeAgo}}.",
"fieldIsRemoved": "Ce champ sera supprimé",
"editRecords": "Éditer la sélection",
Expand Down
27 changes: 27 additions & 0 deletions web-ui/src/main/resources/catalog/locales/fr-gnui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"facets.block.title.OrgForResource": "Organisation",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could those field be removed from gn-ui i18n files ? couldn't we get them from somewhere in the backend ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the long run, yes that sounds the way to go. We have a database API for storing custom translations #4823 but we lack a UI for people to manage them in the admin - we missed the opportunity to have that funded by geocat.ch ... it will come at some point. Then indeed as user can customize facet from the admin, they have to also have the possibility to manage the label of the facet. So it totally makes sense; still a bit of work before that move.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But facet block title are iso19139 element names.. so they are translated already somewhere in the backend, it's not custom translation, is it ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not always, facet are not only related to schema - some of them are related to Index structure (those one are common), some other are dynamic and based on schema element name eg. cl_.... and some facet are custom eg. filter based so indeed we can maybe improve at some point with translations for global index fields, then for schema we are not going to load all schema translations only for 2 facet labels ...

Some are also related to thesaurus title - and quite often end user does not use the thesaurus title as is ... so something to think about.

"facets.block.title.availableInServices": "Accessible via",
"facets.block.title.cl_hierarchyLevel.key": "Type de ressource",
"facets.block.title.cl_maintenanceAndUpdateFrequency.key": "Fréquence de mise à jour",
"facets.block.title.cl_spatialRepresentationType.key": "Résolution spatiale",
"facets.block.title.cl_status.key": "État",
"facets.block.title.creationYearForResource": "Année de création",
"facets.block.title.resolutionScaleDenominator": "Échelle",
"facets.block.title.tag": "Mots-clés",
"facets.block.title.tag.default": "Mots-clés",
"facets.block.title.th_regions_tree.default": "Territoires",
"nav.back": "Retour",
"record.action.download": "Télécharger",
"record.action.view": "Consulter",
"record.more.details": "Plus d'information",
"records": "fiches",
"results.layout.selectOne": "Présentation des résultats",
"results.records.hits.found": "{hits, plural, =0{Aucun document trouvé pour cette recherche.} one{} other{{hits} fiches trouvées.}}",
"results.records.hits.found=0.help": "Suggestions : <ul class='list-disc list-inside'><li>Essayer d'autres mots</li><li>Essayer moins de mots</li></ul>",
"results.sortBy.dateStamp": "Dernières mises à jour",
"results.sortBy.popularity": "Popularité",
"results.sortBy.relevancy": "Pertinence",
"search.field.any.placeholder": "Trouver des données, des services ou des cartes ...",
"search.field.sortBy": "Trier par",
"search.loading": "Chargement en cours ..."
}
2 changes: 1 addition & 1 deletion web-ui/src/main/resources/catalog/locales/fr-search.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,5 +526,5 @@
"GUFemail": "Email",
"GUForganization": "Organisation",
"printUnsupportedLayerTypes": "Le format des couches suivantes n'est pas supporté par l'impression PDF :",
"rssFeed": "RSS feed"
"rssFeed": "Flux RSS"
}
Loading