diff --git a/src/Symfony/Component/Translation/Translator.php b/src/Symfony/Component/Translation/Translator.php index e42dcb1d6f..990866840d 100644 --- a/src/Symfony/Component/Translation/Translator.php +++ b/src/Symfony/Component/Translation/Translator.php @@ -172,7 +172,7 @@ class Translator implements TranslatorInterface protected function computeFallbackLocale($locale) { - if (strlen($locale) > 3) { + if (strrchr($locale, '_') !== false) { return substr($locale, 0, -strlen(strrchr($locale, '_'))); } else { return $this->fallbackLocale;