Prechádzať zdrojové kódy

[translatable] lowercase the defaultlocale, closes #156

gediminasm 13 rokov pred
rodič
commit
a02937f55e

+ 1 - 1
lib/Gedmo/Translatable/TranslationListener.php

@@ -205,7 +205,7 @@ class TranslationListener extends MappedEventSubscriber
      */
     public function setDefaultLocale($locale)
     {
-        $this->defaultLocale = $locale;
+        $this->defaultLocale = strtolower($locale);
         return $this;
     }