From 8346459f28d71a6b275048cf8f73e90762066eea Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 13 Dec 2024 09:31:02 +0100 Subject: [PATCH] i18n --- umap/locale/en/LC_MESSAGES/django.po | 26 ++++++++++++------------- umap/static/umap/js/modules/importer.js | 4 +++- umap/static/umap/locale/en.js | 4 +++- umap/static/umap/locale/en.json | 4 +++- umap/static/umap/locale/fr.js | 4 +++- umap/static/umap/locale/fr.json | 4 +++- 6 files changed, 28 insertions(+), 18 deletions(-) diff --git a/umap/locale/en/LC_MESSAGES/django.po b/umap/locale/en/LC_MESSAGES/django.po index a11be47c..7b8206de 100644 --- a/umap/locale/en/LC_MESSAGES/django.po +++ b/umap/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-11 17:05+0000\n" +"POT-Creation-Date: 2024-12-13 08:26+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -617,57 +617,57 @@ msgstr "" msgid "View the map" msgstr "" -#: views.py:820 +#: views.py:821 msgid "See full screen" msgstr "" -#: views.py:963 +#: views.py:964 msgid "Map editors updated with success!" msgstr "" -#: views.py:999 +#: views.py:1000 #, python-format msgid "The uMap edit link for your map: %(map_name)s" msgstr "" -#: views.py:1002 +#: views.py:1003 #, python-format msgid "Here is your secret edit link: %(link)s" msgstr "" -#: views.py:1009 +#: views.py:1010 #, python-format msgid "Can't send email to %(email)s" msgstr "" -#: views.py:1012 +#: views.py:1013 #, python-format msgid "Email sent to %(email)s" msgstr "" -#: views.py:1023 +#: views.py:1024 msgid "Only its owner can delete the map." msgstr "" -#: views.py:1026 +#: views.py:1027 msgid "Map successfully deleted." msgstr "" -#: views.py:1052 +#: views.py:1053 #, python-format msgid "" "Your map has been cloned! If you want to edit this map from another " "computer, please use this link: %(anonymous_url)s" msgstr "" -#: views.py:1057 +#: views.py:1058 msgid "Congratulations, your map has been cloned!" msgstr "" -#: views.py:1308 +#: views.py:1309 msgid "Layer successfully deleted." msgstr "" -#: views.py:1330 +#: views.py:1331 msgid "Permissions updated with success!" msgstr "" diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index 657dca9c..265b1130 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -355,7 +355,9 @@ export default class Importer extends Utils.WithTemplate { onSuccess(count) { if (count) { - Alert.success(translate(`Successfully imported ${count} feature(s)`)) + Alert.success(translate('Successfully imported {count} feature(s)'), { + count: count, + }) } else { Alert.success(translate('Data successfully imported!')) } diff --git a/umap/static/umap/locale/en.js b/umap/static/umap/locale/en.js index 14067349..3a4820c4 100644 --- a/umap/static/umap/locale/en.js +++ b/umap/static/umap/locale/en.js @@ -520,7 +520,9 @@ const locale = { "Import helpers": "Import helpers", "Import helpers will fill the URL field for you.": "Import helpers will fill the URL field for you.", "Wikipedia": "Wikipedia", - "Save draft": "Save draft" + "Save draft": "Save draft", + "No data has been found for import": "No data has been found for import", + "Successfully imported {count} feature(s)": "Successfully imported {count} feature(s)" } L.registerLocale("en", locale) L.setLocale("en") diff --git a/umap/static/umap/locale/en.json b/umap/static/umap/locale/en.json index 24b39c19..384a46c7 100644 --- a/umap/static/umap/locale/en.json +++ b/umap/static/umap/locale/en.json @@ -520,5 +520,7 @@ "Import helpers": "Import helpers", "Import helpers will fill the URL field for you.": "Import helpers will fill the URL field for you.", "Wikipedia": "Wikipedia", - "Save draft": "Save draft" + "Save draft": "Save draft", + "No data has been found for import": "No data has been found for import", + "Successfully imported {count} feature(s)": "Successfully imported {count} feature(s)" } \ No newline at end of file diff --git a/umap/static/umap/locale/fr.js b/umap/static/umap/locale/fr.js index dd0be0e4..cc914c39 100644 --- a/umap/static/umap/locale/fr.js +++ b/umap/static/umap/locale/fr.js @@ -520,7 +520,9 @@ const locale = { "Import helpers": "Assistants d'import", "Import helpers will fill the URL field for you.": "Les assistants d'import vont renseigner le champ URL pour vous.", "Wikipedia": "Wikipedia", - "Save draft": "Enregistrer le brouillon" + "Save draft": "Enregistrer le brouillon", + "No data has been found for import": "Aucunes données à importer", + "Successfully imported {count} feature(s)": "{count} élément(s) ajouté(s) à la carte" } L.registerLocale("fr", locale) L.setLocale("fr") diff --git a/umap/static/umap/locale/fr.json b/umap/static/umap/locale/fr.json index 57883b56..814f304b 100644 --- a/umap/static/umap/locale/fr.json +++ b/umap/static/umap/locale/fr.json @@ -520,5 +520,7 @@ "Import helpers": "Assistants d'import", "Import helpers will fill the URL field for you.": "Les assistants d'import vont renseigner le champ URL pour vous.", "Wikipedia": "Wikipedia", - "Save draft": "Enregistrer le brouillon" + "Save draft": "Enregistrer le brouillon", + "No data has been found for import": "Aucunes données à importer", + "Successfully imported {count} feature(s)": "{count} élément(s) ajouté(s) à la carte" } \ No newline at end of file