From d566def706fc1228d24a9e6c5a98727f1c99f592 Mon Sep 17 00:00:00 2001 From: elkmaennchen Date: Sat, 19 Sep 2020 22:03:45 +0200 Subject: [PATCH] Try to translate js, not working... --- apps/note/static/note/js/consos.js | 2 +- apps/note/templates/note/conso_form.html | 2 +- locale/de/LC_MESSAGES/django.po | 2 +- locale/es/LC_MESSAGES/django.po | 21 +++++++++------------ locale/fr/LC_MESSAGES/django.po | 2 +- 5 files changed, 13 insertions(+), 16 deletions(-) diff --git a/apps/note/static/note/js/consos.js b/apps/note/static/note/js/consos.js index 78909600..691ddd6f 100644 --- a/apps/note/static/note/js/consos.js +++ b/apps/note/static/note/js/consos.js @@ -253,7 +253,7 @@ function consume (source, source_alias, dest, quantity, amount, reason, type, ca template: template }).done(function () { reset() - addMsg("La transaction n'a pas pu être validée pour cause de solde insuffisant.", 'danger', 10000) + addMsg(gettext("La transaction n'a pas pu être validée pour cause de solde insuffisant."), 'danger', 10000) }).fail(function () { reset() errMsg(e.responseJSON) diff --git a/apps/note/templates/note/conso_form.html b/apps/note/templates/note/conso_form.html index d6044b87..c8372e76 100644 --- a/apps/note/templates/note/conso_form.html +++ b/apps/note/templates/note/conso_form.html @@ -159,7 +159,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {% endblock %} {% block extrajavascript %} - +