From 198dceb97a803f3e40931b8c848656f1753483ba Mon Sep 17 00:00:00 2001 From: JulienM Date: Thu, 7 Sep 2023 17:44:18 +0200 Subject: [PATCH] fix/admin: clean console errors on routines catalog --- src/app/custom/translations.tsv | 11 +++++++---- src/app/js/fields/wizard/RoutineCatalog.js | 10 ++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/app/custom/translations.tsv b/src/app/custom/translations.tsv index 8a559678c..8a1f0fda1 100644 --- a/src/app/custom/translations.tsv +++ b/src/app/custom/translations.tsv @@ -802,7 +802,7 @@ "r-decompose-by_title" "decompose-by" "decompose-by" "r-decompose-by_description" "Crosses elements for one or more fields and counts the number of occurrences of each cross." "Croise les éléments pour un champ ou plusieurs champs et compte le nombre d’occurrences de chaque croisement." "r-distinct-ISO3166-1-alpha2-from_title" "distinct-ISO3166-1-alpha2-from" "distinct-ISO3166-1-alpha2-from" -"r-distinct-ISO3166-1-alpha2-from_description" "Transforms the verbalized countries of the represented field into their ISO 2." "Transforme les pays verbalisés du champ représenté en leurs codes ISO 2.". +"r-distinct-ISO3166-1-alpha2-from_description" "Transforms the verbalized countries of the represented field into their ISO 2." "Transforme les pays verbalisés du champ représenté en leurs codes ISO 2." "r-distinct-ISO3166-1-alpha3-from_title" "distinct-ISO3166-1-alpha3-from" "distinct-ISO3166-1-alpha3-from" "r-distinct-ISO3166-1-alpha3-from_description" "Transforms the verbalized countries of the represented field into their ISO 3." "Transforme les pays verbalisés du champ représenté en leurs codes ISO 3." "r-distinct-alpha-2-alpha3-from_title" "distinct-alpha-2-alpha3-from" "distinct-alpha-2-alpha3-from" @@ -818,12 +818,13 @@ "r-distinct-by-field_title" "distinct-by-field" "distinct-by-field" "r-distinct-by-field_description" "This routine behaves like the distinct-by routine. But additionally, it can interpret the parameters associated with the graphs." "Cette routine se comporte comme la routine distinct-by. Le petit + : elle sait interpréter les paramètres associés aux graphiques." "r-distribute-by-date_title" "distribute-by-date" "distribute-by-date" -"r-distribute-by-date_description" "Is used to create timelines that retain years without document or zero value. " "Sert à créer des chronologies qui conservent les années sans document/de valeur nulle. " +"r-distribute-by-date_description" "Is used to create timelines that retain years without document or zero value." "Sert à créer des chronologies qui conservent les années sans document/de valeur nulle." "r-distribute-by-decadal_title" "distribute-by-decadal" "distribute-by-decadal" "r-distribute-by-decadal_description" "Is used to create timelines by grouping values by decade (useful for years scattered over several centuries)." "Sert à créer des chronologies en regroupant les valeurs par décennie (utile pour des années dispersées sur plusieurs siècles)." "r-distribute-by-interval_title" "distribute-by-interval" "distribute-by-interval" -"r-distribute-by-interval_description" "Is intended for graphs where you want to group values (integers or decimals) in intervals of step "1"." "Est destinée à des graphiques pour lesquels on souhaite regrouper des valeurs (nombres entiers ou décimaux) dans des intervalles de pas “1”." +"r-distribute-by-interval_description" "Is intended for graphs where you want to group values (integers or decimals) in intervals of step “1“." "Est destinée à des graphiques pour lesquels on souhaite regrouper des valeurs (nombres entiers ou décimaux) dans des intervalles de pas “1”." "r-get-fields_title" "get-fields" "get-fields" +"r-get-fields_description" "get-fields description" "get-fields description" "r-graph-by_description" "Combines the value of two separate fields." "Associe la valeur de deux champs distincts." "r-graph-by_title" "graph-by" "graph-by" "r-graph-by_description" "Crosses items for one or more fields and counts the number of occurrences of each cross." "Croise les éléments pour un champ ou plusieurs champs et compte le nombre d’occurences de chaque croisement." @@ -838,7 +839,9 @@ "r-tree-by_title" "tree-by" "tree-by" "r-tree-by_description" "Allows you to create tree-like graphs representing hierarchical data and display the number of documents involved." "Permet de créer des graphiques en forme d’arbres représentant des données hiérarchisées et d’afficher le nombre de documents concernés." "r-total-of_title" "total-of_title" "total-of_title" -"r-total-of_title_description" "total-of_title description" "total-of_title description" +"r-total-of_description" "total-of description" "total-of description" +"r-labeled-ressources_title" "labeled-ressources" "labeled-ressources" +"r-labeled-ressources_description" "labeled-ressources description" "labeled-ressources description" "add_file_success" "File %{name} successfully added" "Fichier %{name} ajouté avec succès" "cancelled_import" "Import has been successfully cancelled" "L'import a été annulé avec succès" "cancelled_publish" "Publish has been successfully cancelled" "La publication a été annulée avec succès" diff --git a/src/app/js/fields/wizard/RoutineCatalog.js b/src/app/js/fields/wizard/RoutineCatalog.js index c47d0c2e4..46ed4ee19 100644 --- a/src/app/js/fields/wizard/RoutineCatalog.js +++ b/src/app/js/fields/wizard/RoutineCatalog.js @@ -118,10 +118,12 @@ const RoutineCatalog = ({ } > + {polyglot.t(`${routine.id}_title`)} + + } secondary={