From 6c38a063fd112edc80dd0a3068b85c7246b87d2b Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 13 Feb 2024 11:57:09 +0100 Subject: [PATCH] i18n --- package.json | 2 +- umap/static/umap/locale/en.js | 8 +++++++- umap/static/umap/locale/en.json | 8 +++++++- umap/static/umap/locale/fr.js | 8 +++++++- umap/static/umap/locale/fr.json | 8 +++++++- 5 files changed, 29 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2b322055..715c152c 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "leaflet-formbuilder": "0.2.9", "leaflet-fullscreen": "1.0.2", "leaflet-hash": "0.2.1", - "leaflet-i18n": "0.3.3", + "leaflet-i18n": "0.3.4", "leaflet-iconlayers": "^0.2.0", "leaflet-loading": "0.1.24", "leaflet-measurable": "0.1.0", diff --git a/umap/static/umap/locale/en.js b/umap/static/umap/locale/en.js index 312f1b40..e93cde2d 100644 --- a/umap/static/umap/locale/en.js +++ b/umap/static/umap/locale/en.js @@ -431,7 +431,13 @@ const locale = { "Type a place name or coordinates": "Type a place name or coordinates", "copy": "copy", "full backup": "full backup", - "settings": "settings" + "settings": "settings", + "Action not allowed :(": "Action not allowed :(", + "Bring feature to center": "Bring feature to center", + "Current map view": "Current map view", + "Features in this layer: {count}": "Features in this layer: {count}", + "Filter": "Filter", + "Problem in the response": "Problem in the response" } L.registerLocale("en", locale) L.setLocale("en") diff --git a/umap/static/umap/locale/en.json b/umap/static/umap/locale/en.json index 8545b8a8..f370fdc0 100644 --- a/umap/static/umap/locale/en.json +++ b/umap/static/umap/locale/en.json @@ -431,5 +431,11 @@ "Type a place name or coordinates": "Type a place name or coordinates", "copy": "copy", "full backup": "full backup", - "settings": "settings" + "settings": "settings", + "Action not allowed :(": "Action not allowed :(", + "Bring feature to center": "Bring feature to center", + "Current map view": "Current map view", + "Features in this layer: {count}": "Features in this layer: {count}", + "Filter": "Filter", + "Problem in the response": "Problem in the response" } \ No newline at end of file diff --git a/umap/static/umap/locale/fr.js b/umap/static/umap/locale/fr.js index 2ed523ff..87e7daf2 100644 --- a/umap/static/umap/locale/fr.js +++ b/umap/static/umap/locale/fr.js @@ -431,7 +431,13 @@ const locale = { "Type a place name or coordinates": "Entrer un lieu ou des coordonnées", "copy": "copier", "full backup": "sauvegarde complète", - "settings": "paramètres" + "settings": "paramètres", + "Action not allowed :(": "Action non autorisée :(", + "Bring feature to center": "Centrer la carte sur cet élément", + "Current map view": "Lister seulement les éléments visibles", + "Features in this layer: {count}": "Éléments dans ce calque: {count}", + "Filter": "Filtrer", + "Problem in the response": "Problem in the response" } L.registerLocale("fr", locale) L.setLocale("fr") diff --git a/umap/static/umap/locale/fr.json b/umap/static/umap/locale/fr.json index 0f584876..81b3d3ac 100644 --- a/umap/static/umap/locale/fr.json +++ b/umap/static/umap/locale/fr.json @@ -431,5 +431,11 @@ "Type a place name or coordinates": "Entrer un lieu ou des coordonnées", "copy": "copier", "full backup": "sauvegarde complète", - "settings": "paramètres" + "settings": "paramètres", + "Action not allowed :(": "Action non autorisée :(", + "Bring feature to center": "Centrer la carte sur cet élément", + "Current map view": "Lister seulement les éléments visibles", + "Features in this layer: {count}": "Éléments dans ce calque: {count}", + "Filter": "Filtrer", + "Problem in the response": "Problem in the response" } \ No newline at end of file