From 2228b285c5bff8627669e966ff672a857a66f097 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 1 Apr 2021 11:12:00 +0200 Subject: [PATCH] Only check translations insteda of the full file Signed-off-by: Joas Schilling --- build/translation-checker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/translation-checker.php b/build/translation-checker.php index 2c3a7856d8..53c139a1d6 100644 --- a/build/translation-checker.php +++ b/build/translation-checker.php @@ -49,7 +49,7 @@ foreach ($directories as $dir) { $json = json_decode($content, true); $translations = json_encode($json['translations']); - if (strpos($content, '|') !== false) { + if (strpos($translations, '|') !== false) { $errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations' . "\n"; }