mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
fix: "Operator A is back" instead of "A changed A"
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@78 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
bcae758e4c
commit
e5e5366050
@ -417,7 +417,11 @@ function take_thread($thread,$operator) {
|
||||
do_take_thread($threadid, $operator['operatorid'], $operatorName);
|
||||
|
||||
if( $state == $state_waiting ) {
|
||||
$message_to_post = getstring2_("chat.status.operator.changed", array($operatorName,$thread['agentName']), $thread['locale']);
|
||||
if( $operatorName != $thread['agentName'] ) {
|
||||
$message_to_post = getstring2_("chat.status.operator.changed", array($operatorName, $thread['agentName']), $thread['locale']);
|
||||
} else {
|
||||
$message_to_post = getstring2_("chat.status.operator.returned", array($operatorName), $thread['locale']);
|
||||
}
|
||||
} else {
|
||||
$message_to_post = getstring2_("chat.status.operator.joined", array($operatorName), $thread['locale']);
|
||||
}
|
||||
@ -441,7 +445,11 @@ function check_for_reassign($thread,$operator) {
|
||||
if( $thread['istate'] == $state_waiting &&
|
||||
( $thread['agentId'] == $operator['operatorid'] )) {
|
||||
do_take_thread($thread['threadid'], $operator['operatorid'], $operatorName);
|
||||
$message_to_post = getstring2_("chat.status.operator.changed", array($operatorName,$thread['agentName']), $thread['locale']);
|
||||
if( $operatorName != $thread['agentName'] ) {
|
||||
$message_to_post = getstring2_("chat.status.operator.changed", array($operatorName, $thread['agentName']), $thread['locale']);
|
||||
} else {
|
||||
$message_to_post = getstring2_("chat.status.operator.returned", array($operatorName), $thread['locale']);
|
||||
}
|
||||
|
||||
post_message($thread['threadid'],$kind_events,$message_to_post);
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ chat.status.operator.joined=Operator {0} joined the chat
|
||||
chat.status.user.changedname=Visitor changed the name {0} to {1}
|
||||
chat.status.user.reopenedthread=Visitor joined chat again
|
||||
chat.status.operator.changed=Operator {0} changed operator {1}
|
||||
chat.status.operator.returned=Operator {0} is back
|
||||
chat.default.username=Visitor
|
||||
chat.error_page.title=Error
|
||||
chat.error_page.head=Error occurred:
|
||||
|
@ -34,6 +34,7 @@ chat.status.operator.joined=
|
||||
chat.status.user.changedname=Ïîñåòèòåëü ñìåíèë èìÿ {0} íà {1}
|
||||
chat.status.user.reopenedthread=Ïîñåòèòåëü çàíîâî âîøåë â äèàëîã
|
||||
chat.status.operator.changed=Îïåðàòîð {0} ñìåíèë îïåðàòîðà {1}
|
||||
chat.status.operator.returned=Îïåðàòîð {0} âåðíóëñÿ â äèàëîã
|
||||
chat.default.username=Ïîñåòèòåëü
|
||||
chat.error_page.title=Îøèáêà
|
||||
chat.error_page.head=Ïðîèçîøëà îøèáêà:
|
||||
|
Loading…
Reference in New Issue
Block a user