diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-01 11:12:00 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-20 16:43:43 +0200 |
commit | 2228b285c5bff8627669e966ff672a857a66f097 (patch) | |
tree | 5329bb04b98e7fd78341ce7723d5e4eaad83c60b /build/translation-checker.php | |
parent | 3cf447ac448afb4d12131a0b0393e130e2613ea0 (diff) | |
download | nextcloud-server-2228b285c5bff8627669e966ff672a857a66f097.tar.gz nextcloud-server-2228b285c5bff8627669e966ff672a857a66f097.zip |
Only check translations insteda of the full file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build/translation-checker.php')
-rw-r--r-- | build/translation-checker.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/translation-checker.php b/build/translation-checker.php index 2c3a7856d81..53c139a1d63 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"; } |