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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@matomo.org>2022-09-05 17:44:57 +0300
committersgiehl <stefan@matomo.org>2022-09-05 17:44:57 +0300
commit66c8fef66ee27490fcb2a514ca780576f32d6a7c (patch)
treedb5e0a7300a177d52a8db0123d0f140fc8b26977
parent8c820deb9eff471275fcc8a9c03fc393be911399 (diff)
avoid pseudolocalization for intl pluginpseudolocalization
-rw-r--r--core/Translation/Loader/DevelopmentLoader.php7
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);
}