Browse Source

[translatable] lowercase the defaultlocale, closes #156

gediminasm 13 năm trước cách đây
mục cha
commit
a02937f55e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }