From d160e178a8747a8599e5ae02a8685ab0f38f060d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Thu, 21 May 2020 17:36:24 +0200 Subject: [PATCH] Ignore translator context hints checking unmatched variables. --- rosetta/templates/rosetta/js/rosetta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosetta/templates/rosetta/js/rosetta.js b/rosetta/templates/rosetta/js/rosetta.js index 17978f1..00928c9 100644 --- a/rosetta/templates/rosetta/js/rosetta.js +++ b/rosetta/templates/rosetta/js/rosetta.js @@ -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 = $('Unmatched variables'); if (origs && trads) {