Sfoglia il codice sorgente

[translatable] lowercase the defaultlocale, closes #156

gediminasm 13 anni fa
parent
commit
a02937f55e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
     }