aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-04-22 21:20:16 +0200
committerGitHub <noreply@github.com>2021-04-22 21:20:16 +0200
commit012f791c8f1603ca5906ec8247b3320c94708e00 (patch)
tree91c35b3c23bd849448538f649cc8cdc97802511f /build
parent6d25c3c7fe2e42438ade6b1cf7e12ab7668fe811 (diff)
parent79ebc7f24c9c908efb5b41422150bca9cf0b7966 (diff)
downloadnextcloud-server-012f791c8f1603ca5906ec8247b3320c94708e00.tar.gz
nextcloud-server-012f791c8f1603ca5906ec8247b3320c94708e00.zip
Merge pull request #26375 from nextcloud/techdebt/noid/symfony-component-translation-pluralization-rules-is-deprecated
"Symfony\Component\Translation\PluralizationRules" is deprecated
Diffstat (limited to 'build')
-rw-r--r--build/translation-checker.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/translation-checker.php b/build/translation-checker.php
index 1f7ec343af5..53c139a1d63 100644
--- a/build/translation-checker.php
+++ b/build/translation-checker.php
@@ -48,6 +48,11 @@ foreach ($directories as $dir) {
$content = file_get_contents($file->getPathname());
$json = json_decode($content, true);
+ $translations = json_encode($json['translations']);
+ if (strpos($translations, '|') !== false) {
+ $errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations' . "\n";
+ }
+
if (json_last_error() !== JSON_ERROR_NONE) {
$errors[] = $file->getPathname() . "\n" . ' ' . json_last_error_msg() . "\n";
} else {