From 84ef59b13367dcb37290f2529803de9b895e5d6b Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Thu, 4 Jun 2009 01:14:26 +0000 Subject: [PATCH] fix dates localization git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@522 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/install/whatsnew.txt | 1 + src/messenger/webim/libs/common.php | 1 - src/messenger/webim/locales/de/properties | 1 + src/messenger/webim/locales/en/properties | 1 + src/messenger/webim/locales/fr/properties | 1 + src/messenger/webim/locales/he/properties | 1 + src/messenger/webim/locales/it/properties | 1 + src/messenger/webim/locales/pl/properties | 1 + src/messenger/webim/locales/pt-br/properties | 1 + src/messenger/webim/locales/ru/properties | 1 + src/messenger/webim/locales/sp/properties | 1 + src/messenger/webim/locales/tr/properties | 1 + src/messenger/webim/locales/ua/properties | 1 + src/messenger/webim/locales/zh-cn/properties | 1 + src/messenger/webim/locales/zh-tw/properties | 1 + src/messenger/webim/operator/blocked.php | 2 ++ src/messenger/webim/operator/history.php | 2 ++ src/messenger/webim/operator/statistics.php | 2 ++ src/messenger/webim/operator/threadprocessor.php | 2 ++ src/messenger/webim/operator/userhistory.php | 2 ++ 20 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/messenger/webim/install/whatsnew.txt b/src/messenger/webim/install/whatsnew.txt index f9259b70..186ed9c0 100644 --- a/src/messenger/webim/install/whatsnew.txt +++ b/src/messenger/webim/install/whatsnew.txt @@ -3,6 +3,7 @@ [!] 404 installation problem [+] new permission: "Ability to modify profile" [+] new project name: Mibew Messenger + [!] fixed localization of dates for all languages 1.6.0 ----- diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index cbdf81f4..0ea6e1a6 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -130,7 +130,6 @@ function get_locale() { } $current_locale = get_locale(); -setlocale(LC_TIME, $current_locale); $messages = array(); $output_encoding = array(); diff --git a/src/messenger/webim/locales/de/properties b/src/messenger/webim/locales/de/properties index e84c5bb4..1158ee8a 100644 --- a/src/messenger/webim/locales/de/properties +++ b/src/messenger/webim/locales/de/properties @@ -422,6 +422,7 @@ tag.pagination.previous=Vorheriges thread.back_to_search=zur Suche gehen thread.chat_log=Chat Log thread.intro=Die Seite zeigt Chats an +time.locale=de_DE topMenu.admin=Administration topMenu.logoff=Logout topMenu.main=Home diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 71665c8a..8ea65293 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -423,6 +423,7 @@ tag.pagination.previous=previous thread.back_to_search=Go to search thread.chat_log=Chat log thread.intro=This page displays chat details and content. +time.locale=en_US topMenu.admin=Home topMenu.logoff=Exit topMenu.main=Home diff --git a/src/messenger/webim/locales/fr/properties b/src/messenger/webim/locales/fr/properties index 4b0cfe0a..6fdce2aa 100644 --- a/src/messenger/webim/locales/fr/properties +++ b/src/messenger/webim/locales/fr/properties @@ -422,6 +422,7 @@ tag.pagination.previous=précédent thread.back_to_search=Aller rechercher thread.chat_log=Session de dialogue thread.intro=Cette page affiche la conversation +time.locale=fr_FR topMenu.admin=Administration topMenu.logoff=Sortie topMenu.main=Accueil diff --git a/src/messenger/webim/locales/he/properties b/src/messenger/webim/locales/he/properties index 13aea130..6af93241 100644 --- a/src/messenger/webim/locales/he/properties +++ b/src/messenger/webim/locales/he/properties @@ -422,6 +422,7 @@ tag.pagination.previous=הקודם thread.back_to_search=עבור לחיפוש thread.chat_log=סיכום השיחה thread.intro=בעמוד נוכחי ניתן לצפות בשיחה +time.locale=he_IL topMenu.admin=תפריט של הנציגים topMenu.logoff=יציאה topMenu.main=בית diff --git a/src/messenger/webim/locales/it/properties b/src/messenger/webim/locales/it/properties index 4e4e0a9a..c258bce8 100644 --- a/src/messenger/webim/locales/it/properties +++ b/src/messenger/webim/locales/it/properties @@ -422,6 +422,7 @@ tag.pagination.previous=precedente thread.back_to_search=Ritorna a cerca thread.chat_log=Chat log thread.intro=La pagina che visualizza la chat +time.locale=it_IT topMenu.admin=Amministrazione topMenu.logoff=Uscita topMenu.main=Home diff --git a/src/messenger/webim/locales/pl/properties b/src/messenger/webim/locales/pl/properties index 76def216..e6af9db6 100644 --- a/src/messenger/webim/locales/pl/properties +++ b/src/messenger/webim/locales/pl/properties @@ -422,6 +422,7 @@ tag.pagination.previous=poprzednie thread.back_to_search=Przyjedź do wyszukiwania thread.chat_log=Logi rozmowy thread.intro=Strona wyświetla rozmowę +time.locale=pl_PL topMenu.admin=Administracja topMenu.logoff=Wyloguj się topMenu.main=Strona główna diff --git a/src/messenger/webim/locales/pt-br/properties b/src/messenger/webim/locales/pt-br/properties index dc64ce58..2011cba6 100644 --- a/src/messenger/webim/locales/pt-br/properties +++ b/src/messenger/webim/locales/pt-br/properties @@ -301,6 +301,7 @@ tag.pagination.no_items=Encontrado 0 elemento(s) thread.back_to_search=Procurar thread.chat_log=Log do chat thread.intro=Está página mostra todos os chats +time.locale=pt_BR topMenu.admin=Administração topMenu.logoff=Sair topMenu.users=Visitantes diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index 5617307c..8fc073d8 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -423,6 +423,7 @@ tag.pagination.previous= thread.back_to_search= thread.chat_log= thread.intro= . +time.locale=ru_RU topMenu.admin= topMenu.logoff= topMenu.main= diff --git a/src/messenger/webim/locales/sp/properties b/src/messenger/webim/locales/sp/properties index ebb9d819..f25ea203 100644 --- a/src/messenger/webim/locales/sp/properties +++ b/src/messenger/webim/locales/sp/properties @@ -416,6 +416,7 @@ tag.pagination.previous=anterior thread.back_to_search=Buscar thread.chat_log=conversacin log thread.intro=La pagina muestra la conversacin +time.locale=es_ES topMenu.admin=Administracin topMenu.logoff=Salir topMenu.main=Inicio diff --git a/src/messenger/webim/locales/tr/properties b/src/messenger/webim/locales/tr/properties index 4a1ba6c0..65453596 100644 --- a/src/messenger/webim/locales/tr/properties +++ b/src/messenger/webim/locales/tr/properties @@ -267,6 +267,7 @@ tag.pagination.no_items= thread.back_to_search=Arama yap thread.chat_log=leti Gemii thread.intro=Grme Alan +time.locale=tr_TR topMenu.admin=Yentim Paneli topMenu.logoff=k topMenu.users=Mteriler diff --git a/src/messenger/webim/locales/ua/properties b/src/messenger/webim/locales/ua/properties index 75f77e48..cb3d0193 100644 --- a/src/messenger/webim/locales/ua/properties +++ b/src/messenger/webim/locales/ua/properties @@ -178,6 +178,7 @@ tag.pagination.no_items=ͳ thread.back_to_search= thread.chat_log= thread.intro= . +time.locale=uk_UA topMenu.admin= topMenu.logoff= topMenu.users=³ diff --git a/src/messenger/webim/locales/zh-cn/properties b/src/messenger/webim/locales/zh-cn/properties index e4b04be8..5a45f2c3 100644 --- a/src/messenger/webim/locales/zh-cn/properties +++ b/src/messenger/webim/locales/zh-cn/properties @@ -298,6 +298,7 @@ tag.pagination.no_items=找到 0 个 thread.back_to_search=搜寻 thread.chat_log=对谈纪录 thread.intro=显示对谈页面 +time.locale=zh_CN topMenu.admin=管理员 topMenu.logoff=离开 topMenu.users=客服上线 diff --git a/src/messenger/webim/locales/zh-tw/properties b/src/messenger/webim/locales/zh-tw/properties index ec909e8d..f6bacf6c 100644 --- a/src/messenger/webim/locales/zh-tw/properties +++ b/src/messenger/webim/locales/zh-tw/properties @@ -372,6 +372,7 @@ tag.pagination.previous=上一個 thread.back_to_search=搜尋 thread.chat_log=對談紀錄 thread.intro=顯示對談頁面 +time.locale=zh_TW topMenu.admin=管理員 topMenu.logoff=離開 topMenu.main=首頁 diff --git a/src/messenger/webim/operator/blocked.php b/src/messenger/webim/operator/blocked.php index 14f6a6e2..86d3eacf 100644 --- a/src/messenger/webim/operator/blocked.php +++ b/src/messenger/webim/operator/blocked.php @@ -21,6 +21,8 @@ $operator = check_login(); $page = array(); $errors = array(); +setlocale(LC_TIME, getstring("time.locale")); + $link = connect(); if( isset($_GET['act']) && $_GET['act'] == 'del' ) { diff --git a/src/messenger/webim/operator/history.php b/src/messenger/webim/operator/history.php index c9cd6c1e..5d4543c7 100644 --- a/src/messenger/webim/operator/history.php +++ b/src/messenger/webim/operator/history.php @@ -21,6 +21,8 @@ require_once('../libs/pagination.php'); $operator = check_login(); loadsettings(); +setlocale(LC_TIME, getstring("time.locale")); + $page = array(); $query = isset($_GET['q']) ? myiconv(getoutputenc(), $webim_encoding, $_GET['q']) : false; diff --git a/src/messenger/webim/operator/statistics.php b/src/messenger/webim/operator/statistics.php index 4fd94345..5c162429 100644 --- a/src/messenger/webim/operator/statistics.php +++ b/src/messenger/webim/operator/statistics.php @@ -18,6 +18,8 @@ require_once('../libs/operator.php'); $operator = check_login(); +setlocale(LC_TIME, getstring("time.locale")); + $page = array(); $page['operator'] = topage(get_operator_name($operator)); $page['availableDays'] = range(1,31); diff --git a/src/messenger/webim/operator/threadprocessor.php b/src/messenger/webim/operator/threadprocessor.php index 18a6fe0a..278a49cc 100644 --- a/src/messenger/webim/operator/threadprocessor.php +++ b/src/messenger/webim/operator/threadprocessor.php @@ -21,6 +21,8 @@ $operator = check_login(); $page = array(); +setlocale(LC_TIME, getstring("time.locale")); + function thread_info($id) { $link = connect(); $thread = select_one_row("select userName,agentName,remote,userAgent,". diff --git a/src/messenger/webim/operator/userhistory.php b/src/messenger/webim/operator/userhistory.php index e1b75539..bf17a4b4 100644 --- a/src/messenger/webim/operator/userhistory.php +++ b/src/messenger/webim/operator/userhistory.php @@ -23,6 +23,8 @@ loadsettings(); $page = array(); +setlocale(LC_TIME, getstring("time.locale")); + $userid = ""; if( isset($_GET['userid'])) { $userid = verifyparam( "userid", "/^.{0,63}$/", "");