Merge branch 'pr/220' into develop

This commit is contained in:
Marco Bonetti 2019-04-20 15:24:13 +02:00
commit 1808edfca9
6 changed files with 17 additions and 3 deletions

1
.gitignore vendored
View file

@ -14,6 +14,7 @@ testproject/htmlcov/
testproject/rosetta.db
testproject/src/
testproject/.coverage
/env
.tox
.eggs
.idea

View file

@ -1,6 +1,10 @@
Version History
===============
Version 0.9.4 (unreleased)
--------------------------
* Unfuzzy fuzzy entries when the translation is changed (#16, PR #220, thanks @sarathak)
Version 0.9.3
-------------

View file

@ -1,4 +1,4 @@
VERSION = (0, 9, 3)
VERSION = (0, 9, 4)
default_app_config = "rosetta.apps.RosettaAppConfig"

View file

@ -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')
}
})
});

View file

@ -49,9 +49,9 @@ setup(
'Topic :: Software Development :: Internationalization',
'Framework :: Django',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
include_package_data=True,
zip_safe=False,

View file

@ -19,8 +19,9 @@ msgstr ""
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
#: templates/test.html:3
#, fuzzy
msgid "Some text to translate"
msgstr ""
msgstr "Crunchum ipsum dolor sit coder void, constructor function"
#: templates/test.html:5
#, python-format