Procházet zdrojové kódy

[translatable] lowercase the defaultlocale, closes #156

gediminasm před 13 roky
rodič
revize
a02937f55e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/Gedmo/Translatable/TranslationListener.php

+ 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;
     }