diff --git a/VIPSWeb/urls.py b/VIPSWeb/urls.py index c93f42198d6310f4787fd1fde06700ac9a7c1a3f..756b6eddd05fcf18d15c1582b52d99701dcc821e 100755 --- a/VIPSWeb/urls.py +++ b/VIPSWeb/urls.py @@ -34,7 +34,7 @@ admin.autodiscover() # Enabling translation in JavaScript files # See https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#internationalization-in-javascript-code js_info_dict = { - 'packages': ['forecasts','vips_messages','VIPSWeb','roughage'], + 'packages': ['forecasts','vips_messages','VIPSWeb','roughage', 'spatial'], 'domain': 'djangojs', } diff --git a/spatial/locale/bg/LC_MESSAGES/django.po b/spatial/locale/bg/LC_MESSAGES/django.po index d7598b8b7510ae9ab50e6c92ac79f28ee78552e4..6bd2f9f1039cdf0a4dcbc60fafc95697c2a8866d 100644 --- a/spatial/locale/bg/LC_MESSAGES/django.po +++ b/spatial/locale/bg/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,20 +17,15 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 + +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "" diff --git a/spatial/locale/bg/LC_MESSAGES/djangojs.po b/spatial/locale/bg/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..a10bab2373751a18cd9e0cb0e925231e068c36ef --- /dev/null +++ b/spatial/locale/bg/LC_MESSAGES/djangojs.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "" diff --git a/spatial/locale/bs/LC_MESSAGES/django.po b/spatial/locale/bs/LC_MESSAGES/django.po index 6419bedecc5165c7d18b7bfcb19662ac92801b50..3d6ff1cfa2912157f8be9973ce0e98bebc477893 100644 --- a/spatial/locale/bs/LC_MESSAGES/django.po +++ b/spatial/locale/bs/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -16,22 +16,17 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "" diff --git a/spatial/locale/bs/LC_MESSAGES/djangojs.po b/spatial/locale/bs/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..359bc052d904f9aa028aad570883205fc0a3e61d --- /dev/null +++ b/spatial/locale/bs/LC_MESSAGES/djangojs.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "" diff --git a/spatial/locale/de/LC_MESSAGES/django.po b/spatial/locale/de/LC_MESSAGES/django.po index d7598b8b7510ae9ab50e6c92ac79f28ee78552e4..6bd2f9f1039cdf0a4dcbc60fafc95697c2a8866d 100644 --- a/spatial/locale/de/LC_MESSAGES/django.po +++ b/spatial/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,20 +17,15 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 + +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "" diff --git a/spatial/locale/de/LC_MESSAGES/djangojs.po b/spatial/locale/de/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..a10bab2373751a18cd9e0cb0e925231e068c36ef --- /dev/null +++ b/spatial/locale/de/LC_MESSAGES/djangojs.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "" diff --git a/spatial/locale/fi/LC_MESSAGES/django.po b/spatial/locale/fi/LC_MESSAGES/django.po index d7598b8b7510ae9ab50e6c92ac79f28ee78552e4..6bd2f9f1039cdf0a4dcbc60fafc95697c2a8866d 100644 --- a/spatial/locale/fi/LC_MESSAGES/django.po +++ b/spatial/locale/fi/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,20 +17,15 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 + +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "" diff --git a/spatial/locale/fi/LC_MESSAGES/djangojs.po b/spatial/locale/fi/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..a10bab2373751a18cd9e0cb0e925231e068c36ef --- /dev/null +++ b/spatial/locale/fi/LC_MESSAGES/djangojs.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "" diff --git a/spatial/locale/nb/LC_MESSAGES/django.po b/spatial/locale/nb/LC_MESSAGES/django.po index b6a8422056dd0c47b50764a765721c00869ad4e2..17c4f53f2d025d0aab94caf24b88f9e56eb3275e 100644 --- a/spatial/locale/nb/LC_MESSAGES/django.po +++ b/spatial/locale/nb/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -18,20 +18,17 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "Velkommen" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "Gjeldende dato" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "Detaljer for lokalitet" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "VIPS-varsler i rutenett" + +#~ msgid "Location details" +#~ msgstr "Detaljer for lokalitet" diff --git a/spatial/locale/nb/LC_MESSAGES/djangojs.po b/spatial/locale/nb/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..4fecec7f764e2b4a3293cebcd03e19537afb96bd --- /dev/null +++ b/spatial/locale/nb/LC_MESSAGES/djangojs.po @@ -0,0 +1,47 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: 2023-12-20 10:24+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: nb\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.4.1\n" + +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "Kartpunkt" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "Kunne ikke bestemme varselstatus" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "Varsel ikke tilgjengelig" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "Data mangler" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "Ingen infeksjonsrisiko" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "Middels infeksjonsrisiko" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "Høy infeksjonsrisiko" diff --git a/spatial/locale/vi/LC_MESSAGES/django.po b/spatial/locale/vi/LC_MESSAGES/django.po index 90fa5f2b95673243c6eeaf3ea4d4c001c4526619..0bdc05a931fb377f96bfe2773d134e0e9cc82a76 100644 --- a/spatial/locale/vi/LC_MESSAGES/django.po +++ b/spatial/locale/vi/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,20 +17,15 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 + +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "" diff --git a/spatial/locale/vi/LC_MESSAGES/djangojs.po b/spatial/locale/vi/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..d6c285632797d8ecc5991007c24e2a85bcabdab1 --- /dev/null +++ b/spatial/locale/vi/LC_MESSAGES/djangojs.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "" diff --git a/spatial/locale/zh_Hans/LC_MESSAGES/django.po b/spatial/locale/zh_Hans/LC_MESSAGES/django.po index 90fa5f2b95673243c6eeaf3ea4d4c001c4526619..0bdc05a931fb377f96bfe2773d134e0e9cc82a76 100644 --- a/spatial/locale/zh_Hans/LC_MESSAGES/django.po +++ b/spatial/locale/zh_Hans/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-22 16:31+0100\n" +"POT-Creation-Date: 2023-12-20 10:15+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,20 +17,15 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: spatial/templates/spatial/gridmap.html:4 -#: spatial/templates/spatial/psilartemp.html:24 + +#: templates/spatial/gridmap.html:4 templates/spatial/psilartemp.html:24 msgid "Welcome" msgstr "" -#: spatial/templates/spatial/gridmap.html:30 +#: templates/spatial/gridmap.html:34 msgid "Current date" msgstr "" -#: spatial/templates/spatial/gridmap.html:39 -msgid "Location details" -msgstr "" - -#: spatial/templates/spatial/index.html:24 -#: spatial/templates/spatial/index.html:26 +#: templates/spatial/index.html:24 templates/spatial/index.html:26 msgid "VIPS Spatial" msgstr "" diff --git a/spatial/locale/zh_Hans/LC_MESSAGES/djangojs.po b/spatial/locale/zh_Hans/LC_MESSAGES/djangojs.po new file mode 100644 index 0000000000000000000000000000000000000000..d6c285632797d8ecc5991007c24e2a85bcabdab1 --- /dev/null +++ b/spatial/locale/zh_Hans/LC_MESSAGES/djangojs.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-20 10:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +#: static/spatial/js/gridmap.js:437 +msgid "Map location" +msgstr "" + +#: static/spatial/js/gridmap.js:457 +msgid "Could not determine warning status" +msgstr "" + +#: static/spatial/js/gridmap.js:461 +msgid "No forecast available" +msgstr "" + +#: static/spatial/js/gridmap.js:462 +msgid "Missing data" +msgstr "" + +#: static/spatial/js/gridmap.js:463 +msgid "No risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:464 +msgid "Medium risk of infection" +msgstr "" + +#: static/spatial/js/gridmap.js:465 +msgid "High risk of infection" +msgstr "" diff --git a/spatial/static/spatial/js/gridmap.js b/spatial/static/spatial/js/gridmap.js index 446c6ac1dc1bc876ed76608757c79b2e9986a77e..e6ed64f434513411d3fb2cc21ee10d1f1d6591a9 100644 --- a/spatial/static/spatial/js/gridmap.js +++ b/spatial/static/spatial/js/gridmap.js @@ -430,10 +430,12 @@ async function displayQueryResult(evt) // Render results popup.setPosition(evt.coordinate); + let wgs84Coordinate = proj4(map.getView().getProjection().getCode(), "EPSG:4326", evt.coordinate) $(popupElement).popover({ 'placement': 'top', 'animation': false, 'html': true, + 'title': gettext("Map location") + ` [${wgs84Coordinate[1].toFixed(4)}, ${wgs84Coordinate[0].toFixed(4)}]`, 'content': '<h4>' + getWarningStatusTitle(currentWarningStatusLayer.Abstract, warningStatus) + '</h4>' + paramHTML }); $(popupElement).popover('show'); @@ -473,7 +475,7 @@ function getWarningStatusTitle(jsonDataStr, warningStatus) function moveDateSlider(step) { let slider=document.getElementById("layerDateRange"); - let min = parseInt(slider.min); + let min = parseInt(slider.min); let max = parseInt(slider.max); let newValue = parseInt(slider.value) + step; newValue = newValue > max ? max : newValue < min ? min : newValue; diff --git a/spatial/templates/spatial/gridmap.html b/spatial/templates/spatial/gridmap.html index 9d86686290c4512dc6623b4bc464722321b33e15..21307ada1ecfbb2f1ab5eb310956dfca43e63a47 100644 --- a/spatial/templates/spatial/gridmap.html +++ b/spatial/templates/spatial/gridmap.html @@ -42,7 +42,7 @@ </div> </div> - <div id="popup" title="{% trans "Location details" %}"></div> + <div id="popup" title=""></div> <div class="col-md-12"> <div id="modelAbstractBody"></div> </div>