소스 검색

[translatable] lowercase the defaultlocale, closes #156

gediminasm 13 년 전
부모
커밋
a02937f55e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }