aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Translation/TranslationManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Translation/TranslationManager.php b/lib/private/Translation/TranslationManager.php
index 2a2b2cd0066..8456c41cdfc 100644
--- a/lib/private/Translation/TranslationManager.php
+++ b/lib/private/Translation/TranslationManager.php
@@ -80,6 +80,10 @@ class TranslationManager implements ITranslationManager {
}
}
+ if ($fromLanguage === $toLanguage) {
+ return $text;
+ }
+
foreach ($this->getProviders() as $provider) {
try {
return $provider->translate($fromLanguage, $toLanguage, $text);