Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-01 12:12:00 +0300
committerJoas Schilling <coding@schilljs.com>2021-04-20 17:43:43 +0300
commit2228b285c5bff8627669e966ff672a857a66f097 (patch)
tree5329bb04b98e7fd78341ce7723d5e4eaad83c60b /build
parent3cf447ac448afb4d12131a0b0393e130e2613ea0 (diff)
Only check translations insteda of the full file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build')
-rw-r--r--build/translation-checker.php2
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";
}