Explorar el Código

[translatable] lowercase the defaultlocale, closes #156

gediminasm hace 13 años
padre
commit
a02937f55e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
     }