From 734426e688aa0d2d799960140a52668b6a7f3624 Mon Sep 17 00:00:00 2001 From: serhat Date: Sat, 20 Apr 2019 17:02:14 +0530 Subject: [PATCH] wish: un-tick 'fuzzy' when a translation is changed #16 --- .gitignore | 1 + rosetta/templates/rosetta/js/rosetta.js | 8 +++++ testproject/locale/fr/LC_MESSAGES/django.po | 35 +++++++++++++++++++++ 3 files changed, 44 insertions(+) diff --git a/.gitignore b/.gitignore index 1fdb3e9..4ee5264 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ testproject/htmlcov/ testproject/rosetta.db testproject/src/ testproject/.coverage +/env .tox .eggs .idea diff --git a/rosetta/templates/rosetta/js/rosetta.js b/rosetta/templates/rosetta/js/rosetta.js index c29eeb1..17978f1 100644 --- a/rosetta/templates/rosetta/js/rosetta.js +++ b/rosetta/templates/rosetta/js/rosetta.js @@ -122,6 +122,14 @@ google.setOnLoadCallback(function() { $(e).removeAttr('checked'); } }); + }); + $('tbody .translation textarea').change(function () { + var fuzzy = $(this).closest('tr').find('input[type="checkbox"]'); + if(fuzzy[0].checked){ + fuzzy[0].checked = false; + fuzzy.removeAttr( 'checked') + } + }) }); diff --git a/testproject/locale/fr/LC_MESSAGES/django.po b/testproject/locale/fr/LC_MESSAGES/django.po index 5d9c151..9c9c1bd 100644 --- a/testproject/locale/fr/LC_MESSAGES/django.po +++ b/testproject/locale/fr/LC_MESSAGES/django.po @@ -32,3 +32,38 @@ msgid_plural "" "%(num_bottles)s bottles of beer on the wall\n" msgstr[0] "" msgstr[1] "" + + +#: apps/services/comet/backend/so/cashbox.py:3573 +#, fuzzy +msgid "Old password does not match" +msgstr "Die beiden Passwortfelder stimmen nicht überein" + +#: apps/services/comet/backend/so/cashbox.py:3693 +#, fuzzy, python-format +msgid "First time topup minimum %10.2f!" +msgstr "Shop kann max. %10.2f aufladen!" + +#: apps/services/comet/backend/so/cashbox.py:3767 +msgid "Card already activated!" +msgstr "Kundenkarte bereits aktiviert!" + +#: apps/services/comet/backend/so/cashbox.py:3775 +msgid "Authorization failed!" +msgstr "Authentifizierung fehlgeschlagen!" + +#: apps/services/comet/backend/so/cashbox.py:3777 +msgid "User locked with an other card!" +msgstr "Benutzer hat bereits eine andere Kundenkarte!" + +#: apps/services/comet/backend/so/cashbox.py:3836 +msgid "Password less withdraw active" +msgstr "Passwort erfolgreich geändert" + +#: apps/services/comet/backend/so/cashbox.py:3971 +msgid "Insufficient balance to create voucher." +msgstr "Ungenügend Guthaben zur erstellung des Gutscheins." + +#: apps/services/comet/backend/so/cashbox.py:4194 +msgid "match not found" +msgstr "Spiel nicht gefunden" \ No newline at end of file