From 46d5284a4f0c1ea4f01bad057acdae29e5c96977 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 26 Sep 2021 23:52:18 +0200 Subject: [PATCH] fix occurrence line number on false translations --- inc/class.dc.translater.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/class.dc.translater.php b/inc/class.dc.translater.php index e2dd186..40280e7 100644 --- a/inc/class.dc.translater.php +++ b/inc/class.dc.translater.php @@ -463,6 +463,7 @@ class dcTranslater foreach($parts as $part) { // should start with quote if (!in_array(substr($part,0,1), ['"', "'"])) { + $p++; continue; } // put back first parenthesis