diff --git a/LangCodes.php b/LangCodes.php
index 5d3b3cdf6..cf2811ad9 100644
--- a/LangCodes.php
+++ b/LangCodes.php
@@ -11,7 +11,8 @@ public function getLanguage($code){
'en_US'=>'en_US',
'zh_CN'=>'zh_CN',
'zh_TW'=>'zh_TW',
- 'de_DE'=>'de_DE'
+ 'de_DE'=>'de_DE',
+ 'tr_TR'=>'tr_TR'
);
return array_key_exists($code, $all_lang) ? $all_lang[$code] : "en_US";
}
@@ -22,7 +23,8 @@ public function getNameLang($code_lang){
'en_US'=>'English (US)',
'zh_CN'=>'中文 (简体)',
'zh_TW'=>'中文 (正體)',
- 'de_DE'=>'Deutsch'
+ 'de_DE'=>'Deutsch',
+ 'tr_TR'=>'Türkçe'
);
return array_key_exists($code_lang, $name_lang) ? $name_lang[$code_lang] : "English";
}
diff --git a/auth/admin.php b/auth/admin.php
index c97d029d4..02341e20b 100644
--- a/auth/admin.php
+++ b/auth/admin.php
@@ -158,7 +158,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
- document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
+ document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}
diff --git a/auth/index.php b/auth/index.php
index 3d158055b..ca2ee4550 100644
--- a/auth/index.php
+++ b/auth/index.php
@@ -290,7 +290,7 @@ function setLanguage(lang) {
var cookievalid=2592000000; // 30 days (1000*60*60*24*30)
time += cookievalid;
now.setTime(time);
- document.cookie ='lang='+lang+';path=/'+';domain='+wl.host+';expires='+now;
+ document.cookie ='lang='+lang+';path=/'+';domain='+wl.hostname+';expires='+now;
}