From e1eb49e76fcf708987af5a14d3c242a84c348b51 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 16 Mar 2009 01:34:33 +0000 Subject: [PATCH] localize several strings git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@412 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/pagination.php | 4 ++-- src/messenger/webim/locales/en/properties | 3 +++ src/messenger/webim/locales/ru/properties | 2 ++ src/messenger/webim/operator/update.php | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/messenger/webim/libs/pagination.php b/src/messenger/webim/libs/pagination.php index 01f216e5..01353140 100644 --- a/src/messenger/webim/libs/pagination.php +++ b/src/messenger/webim/libs/pagination.php @@ -79,7 +79,7 @@ function generate_pagination($pagination,$bottom=true) { $maxPage = min( $curr_page + $links_on_page, $pagination['total'] ); if( $curr_page > 1 ) { - $result .= generate_pagination_link($curr_page-1, generate_pagination_image("prevpage", "previous")).$pagination_spacing; + $result .= generate_pagination_link($curr_page-1, generate_pagination_image("prevpage", getlocal("tag.pagination.previous"))).$pagination_spacing; } for($i = $minPage; $i <= $maxPage; $i++ ) { @@ -93,7 +93,7 @@ function generate_pagination($pagination,$bottom=true) { } if( $curr_page < $pagination['total'] ) { - $result .= $pagination_spacing.generate_pagination_link($curr_page+1, generate_pagination_image("nextpage", "next")); + $result .= $pagination_spacing.generate_pagination_link($curr_page+1, generate_pagination_image("nextpage", getlocal("tag.pagination.next"))); } $result.=""; } diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 86347c8d..02f4567f 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -16,6 +16,7 @@ button.search=Search chat.came.from=Vistor came from page {0} chat.client.changename=Change name chat.client.name=You are +chat.client.spam.prefix=[spam]  chat.default.username=Visitor chat.error_page.close=Close... chat.error_page.head=Error occurred: @@ -310,8 +311,10 @@ settings.wrong.email=Enter proper email address site.title=openwebim.org site.url=http://openwebim.org tag.pagination.info=Page {0} of {1}, {2}-{3} from {4} +tag.pagination.next=next tag.pagination.no_items.elements=No elements tag.pagination.no_items=Found 0 elements +tag.pagination.previous=previous thread.back_to_search=Go to search thread.chat_log=Chat log thread.intro=The page displays chat diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index e49a7ee2..844e776b 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -308,8 +308,10 @@ settings.wrong.email= site.title=openwebim.org site.url=http://openwebim.org tag.pagination.info=Страница {0} из {1}, показаны {2}-{3} из {4} +tag.pagination.next=следующая tag.pagination.no_items.elements=Нет элементов для отображения. tag.pagination.no_items=Ничего не найдено +tag.pagination.previous=предыдущая thread.back_to_search=Перейти в поиск thread.chat_log=Протокол разговора thread.intro=На данной странице Вы можете просмотреть диалог. diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index b2a49057..d560f97b 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -73,7 +73,7 @@ function thread_to_xml($thread,$link) { $result .= " state=\"$state\" typing=\"".$thread['userTyping']."\">"; $result .=""; if($banForThread) { - $result .= htmlspecialchars("[spam] "); + $result .= htmlspecialchars(getstring('chat.client.spam.prefix')); } $result .= htmlspecialchars(htmlspecialchars(get_user_name($thread['userName'],$thread['remote'], $thread['userid']))).""; $result .= "".htmlspecialchars(get_user_addr($thread['remote']))."";