summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-05-26 09:04:44 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-05-26 09:08:20 +0200
commit5ba616b98c54b45dbfba895ad8f845491793694a (patch)
tree5d3242de147cd70d1bcb8861f4b8bd3e36bfbff0
parentb639c2e0b82c861d4ae7519fdc0dfbd8be1af271 (diff)
downloadIshtar-5ba616b98c54b45dbfba895ad8f845491793694a.tar.bz2
Ishtar-5ba616b98c54b45dbfba895ad8f845491793694a.zip
🐛 fix import template (inappropriate l10n)
-rw-r--r--changelog/en/changelog_2022-06-15.md2
-rw-r--r--changelog/fr/changelog_2023-01-25.md1
-rw-r--r--ishtar_common/templates/ishtar/import_table.html5
3 files changed, 6 insertions, 2 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md
index 363f88773..38fc00ac8 100644
--- a/changelog/en/changelog_2022-06-15.md
+++ b/changelog/en/changelog_2022-06-15.md
@@ -10,8 +10,10 @@ v4.0.46 - 2023-
### Bug fixes ###
- recalculation of the weight of a container when find is removed (refs #5470)
+
### Technical ###
- JS: fix UnitWidget (inappropriate l10n)
+- fix HTML import page (inappropriate l10n)
v4.0.45 - 2023-05-15
diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md
index e3908732a..3b5a59aec 100644
--- a/changelog/fr/changelog_2023-01-25.md
+++ b/changelog/fr/changelog_2023-01-25.md
@@ -12,6 +12,7 @@ v4.0.46 - 2023-
### Technique ###
- JS : correction UnitWidget (localisation inappropriée)
+- correction du HTML de la page d'import (localisation inappropriée)
v4.0.45 - 2023-05-15
diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html
index b13f76dd9..786df853d 100644
--- a/ishtar_common/templates/ishtar/import_table.html
+++ b/ishtar_common/templates/ishtar/import_table.html
@@ -1,5 +1,5 @@
-{% load i18n inline_formset %}
-<script type="text/javascript">
+{% load i18n l10n inline_formset %}
+{% localize off %}<script type="text/javascript">
var html = $("#message_list").html();
{% if MESSAGES and AJAX %}{% for message, message_type in MESSAGES %}
html += '<div class="alert alert-{{message_type}} alert-dismissible fade show"';
@@ -103,3 +103,4 @@ $("#import-list").find('input').prop('disabled', true);
</table>
{% endif %}
</div>
+{% endlocalize %}