diff options
author | sgiehl <stefan@matomo.org> | 2022-09-05 17:44:57 +0300 |
---|---|---|
committer | sgiehl <stefan@matomo.org> | 2022-09-05 17:44:57 +0300 |
commit | 66c8fef66ee27490fcb2a514ca780576f32d6a7c (patch) | |
tree | db5e0a7300a177d52a8db0123d0f140fc8b26977 | |
parent | 8c820deb9eff471275fcc8a9c03fc393be911399 (diff) |
avoid pseudolocalization for intl pluginpseudolocalization
-rw-r--r-- | core/Translation/Loader/DevelopmentLoader.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Translation/Loader/DevelopmentLoader.php b/core/Translation/Loader/DevelopmentLoader.php index 0bafd3bfb7..924172362f 100644 --- a/core/Translation/Loader/DevelopmentLoader.php +++ b/core/Translation/Loader/DevelopmentLoader.php @@ -126,13 +126,16 @@ class DevelopmentLoader implements LoaderInterface { $fallbackTranslations = $this->loader->load($this->fallbackLanguage, $directories); - $translations = array(); + $translations = []; foreach ($fallbackTranslations as $section => $sectionFallbackTranslations) { + if ($section === 'Intl') { + $translations[$section] = $sectionFallbackTranslations; + continue; + } $translations[$section] = array_map(function ($translation) { $accented = strtr($translation, self::MAP); return "[" . $accented . "]"; - }, $sectionFallbackTranslations); } |