Ignore translator context hints checking unmatched variables.

This commit is contained in:
Álvaro Mondéjar 2020-05-21 17:36:24 +02:00
parent 68754f9b85
commit d160e178a8

View file

@ -90,7 +90,7 @@ google.setOnLoadCallback(function() {
if($(this).val()) {
$('.alert', $(this).parents('tr')).remove();
var RX = /%(?:\([^\s\)]*\))?[sdf]|\{[\w\d_]+?\}/g,
origs=$('.original', $(this).parents('tr')).html().match(RX),
origs=$(this).parents('tr').find('.original>.message').html().match(RX),
trads=$(this).val().match(RX),
error = $('<span class="alert">Unmatched variables</span>');
if (origs && trads) {