diff --git a/src/mibew/install/dbinfo.php b/src/mibew/install/dbinfo.php index 8e71aeb3..728e343a 100644 --- a/src/mibew/install/dbinfo.php +++ b/src/mibew/install/dbinfo.php @@ -325,7 +325,7 @@ function show_install_err($text) $page = array( 'version' => MIBEW_VERSION, 'localeLinks' => get_locale_links(), - 'title' => getlocal("install.err.title"), + 'title' => getlocal("Problem"), 'no_right_menu' => true, 'fixedwrap' => true, 'errors' => array($text), diff --git a/src/mibew/install/index.php b/src/mibew/install/index.php index 533ec5dc..5c821ef2 100644 --- a/src/mibew/install/index.php +++ b/src/mibew/install/index.php @@ -83,7 +83,7 @@ function check_mibewroot() return false; } - $page['done'][] = getlocal("install.0.app", array(MIBEW_WEB_ROOT)); + $page['done'][] = getlocal("Application path is {0}", array(MIBEW_WEB_ROOT)); return true; } @@ -129,9 +129,9 @@ function check_files() $packageFile = MIBEW_FS_ROOT . "/install/package"; $fp = @fopen($packageFile, "r"); if ($fp === FALSE) { - $errors[] = getlocal("install.cannot_read", array(MIBEW_WEB_ROOT . "/install/package")); + $errors[] = getlocal("Cannot read file {0}", array(MIBEW_WEB_ROOT . "/install/package")); if (file_exists($packageFile)) { - $errors[] = getlocal("install.check_permissions", array(fpermissions($packageFile))); + $errors[] = getlocal("Insufficient file permissions {0}", array(fpermissions($packageFile))); } return false; } @@ -150,10 +150,10 @@ function check_files() $relativeName = MIBEW_FS_ROOT . "/$file"; if (!is_readable($relativeName)) { if (file_exists($relativeName)) { - $errors[] = getlocal("install.cannot_read", array(MIBEW_WEB_ROOT . "/$file")); - $errors[] = getlocal("install.check_permissions", array(fpermissions($relativeName))); + $errors[] = getlocal("Cannot read file {0}", array(MIBEW_WEB_ROOT . "/$file")); + $errors[] = getlocal("Insufficient file permissions {0}", array(fpermissions($relativeName))); } else { - $errors[] = getlocal("install.no_file", array(MIBEW_WEB_ROOT . "/$file")); + $errors[] = getlocal("File is absent: {0}", array(MIBEW_WEB_ROOT . "/$file")); } return false; } @@ -164,14 +164,14 @@ function check_files() $result = md5(str_replace("\r", "", file_get_contents($relativeName))); } if ($result != $sum) { - $errors[] = getlocal("install.bad_checksum", array(MIBEW_WEB_ROOT . "/$file")); - $errors[] = getlocal("install.check_files"); + $errors[] = getlocal("Checksum differs for {0}", array(MIBEW_WEB_ROOT . "/$file")); + $errors[] = getlocal("Please, re-upload files to the server."); return false; } } } - $page['done'][] = getlocal("install.0.package"); + $page['done'][] = getlocal("Mibew package is valid."); return true; } @@ -182,7 +182,7 @@ function check_connection() if ($link) { $result = mysql_query("SELECT VERSION() as c", $link); if ($result && $ver = mysql_fetch_array($result, MYSQL_ASSOC)) { - $page['done'][] = getlocal("install.1.connected", array($ver['c'])); + $page['done'][] = getlocal("You are connected to MySQL server version {0}", array($ver['c'])); mysql_free_result($result); } else { $errors[] = "Version of your SQL server is unknown. Please check. Error: " . mysql_error($link); @@ -191,7 +191,7 @@ function check_connection() } return $link; } else { - $errors[] = getlocal("install.connection.error", array(mysql_error())); + $errors[] = getlocal("Could not connect. Please check server settings in config.php. Error: {0}", array(mysql_error())); return null; } } @@ -200,13 +200,13 @@ function check_database($link) { global $mysqldb, $page; if (mysql_select_db($mysqldb, $link)) { - $page['done'][] = getlocal("install.2.db_exists", array($mysqldb)); + $page['done'][] = getlocal("Database \"{0}\" is created.", array($mysqldb)); mysql_query("SET character set utf8", $link); return true; } else { - $page['nextstep'] = getlocal("install.2.create", array($mysqldb)); - $page['nextnotice'] = getlocal("install.2.notice"); + $page['nextstep'] = getlocal("Create database \"{0}\"", array($mysqldb)); + $page['nextnotice'] = getlocal("The database was not found on the server. If you have permissions to create it now, click on the following link."); $page['nextstepurl'] = MIBEW_WEB_ROOT . "/install/dbperform.php?act=createdb"; } return false; @@ -219,10 +219,10 @@ function check_tables($link) if ($curr_tables !== false) { $tocreate = array_diff(array_keys($dbtables), $curr_tables); if (count($tocreate) == 0) { - $page['done'][] = getlocal("install.3.tables_exist"); + $page['done'][] = getlocal("Required tables are created."); return true; } else { - $page['nextstep'] = getlocal("install.3.create"); + $page['nextstep'] = getlocal("Create required tables."); $page['nextstepurl'] = MIBEW_WEB_ROOT . "/install/dbperform.php?act=ct"; } } @@ -244,9 +244,9 @@ function check_columns($link) $cannot_update = array_diff($tocreate, $dbtables_can_update[$id]); if (count($cannot_update) != 0) { $errors[] = "Key columns are absent in table `$id'. Unable to continue installation."; - $page['nextstep'] = getlocal("install.kill_tables"); + $page['nextstep'] = getlocal("Drop existing tables from database"); $page['nextstepurl'] = MIBEW_WEB_ROOT . "/install/dbperform.php?act=dt"; - $page['nextnotice'] = getlocal("install.kill_tables.notice"); + $page['nextnotice'] = getlocal("Impossible to update tables structure. Try to do it manually or recreate all tables (warning: all your data will be lost)."); return false; } $need_to_create_columns = true; @@ -266,13 +266,13 @@ function check_columns($link) } if ($need_to_create_columns || $need_to_create_indexes) { - $page['nextstep'] = getlocal("install.4.create"); + $page['nextstep'] = getlocal("Update tables"); $page['nextstepurl'] = MIBEW_WEB_ROOT . "/install/dbperform.php?act=addcolumns"; - $page['nextnotice'] = getlocal("install.4.notice"); + $page['nextnotice'] = getlocal("Structure of your tables should be adjusted for new version of Messenger."); return false; } - $page['done'][] = getlocal("install.4.done"); + $page['done'][] = getlocal("Tables structure is up to date."); return true; } @@ -281,9 +281,9 @@ function check_sound() global $page; $page['soundcheck'] = true; - $page['done'][] = getlocal("install.5.text", array( - "" . getlocal("install.5.newvisitor") . "", - "" . getlocal("install.5.newmessage") . "" + $page['done'][] = getlocal("Click to check the sound: {0} and {1}", array( + "" . getlocal("New Visitor") . "", + "" . getlocal("New Message") . "" )); } @@ -434,7 +434,7 @@ function check_status() { global $page, $mysqlprefix; - $page['done'][] = getlocal("install.0.php", array(phpversion())); + $page['done'][] = getlocal("PHP version {0}", array(phpversion())); if (!check_mibewroot()) { return; @@ -470,11 +470,11 @@ function check_status() check_sound(); - $page['done'][] = getlocal("installed.message"); + $page['done'][] = getlocal("Application installed successfully."); if (!check_admin($link)) { - $page['nextstep'] = getlocal("installed.login_link"); - $page['nextnotice'] = getlocal("installed.notice", array(MIBEW_WEB_ROOT . "/install/")); + $page['nextstep'] = getlocal("Proceed to the login page"); + $page['nextnotice'] = getlocal("You can logon as admin with empty password.

!!! For security reasons please change your password immediately and remove the {0} folder from your server.", array(MIBEW_WEB_ROOT . "/install/")); $page['nextstepurl'] = MIBEW_WEB_ROOT . "/operator/login?login=admin"; } @@ -493,7 +493,7 @@ function check_status() check_status(); -$page['title'] = getlocal("install.title"); +$page['title'] = getlocal("Installation"); $page['fixedwrap'] = true; $page['errors'] = $errors; diff --git a/src/mibew/js/compiled/chat/model_views/controls/close.js b/src/mibew/js/compiled/chat/model_views/controls/close.js index ea71749b..614c144c 100644 --- a/src/mibew/js/compiled/chat/model_views/controls/close.js +++ b/src/mibew/js/compiled/chat/model_views/controls/close.js @@ -5,4 +5,4 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_); +(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("Are you sure want to leave chat?");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_); diff --git a/src/mibew/js/compiled/chat/models/leave_message/leave_message_form.js b/src/mibew/js/compiled/chat/models/leave_message/leave_message_form.js index 0595a1bc..e786eab3 100644 --- a/src/mibew/js/compiled/chat/models/leave_message/leave_message_form.js +++ b/src/mibew/js/compiled/chat/models/leave_message/leave_message_form.js @@ -6,5 +6,5 @@ http://www.apache.org/licenses/LICENSE-2.0 */ (function(c,e){var d=c.Models.BaseSurveyForm;c.Models.LeaveMessageForm=d.extend({defaults:e.extend({},d.prototype.defaults,{showCaptcha:!1,captcha:""}),validate:function(a){var b=c.Localization;if("undefined"!=typeof a.email){if(!a.email)return b.get("leavemessage.error.email.required");if(!c.Utils.checkEmail(a.email))return b.get("leavemessage.error.wrong.email")}if("undefined"!=typeof a.name&&!a.name)return b.get("leavemessage.error.name.required");if("undefined"!=typeof a.message&&!a.message)return b.get("leavemessage.error.message.required"); -if(this.get("showCaptcha")&&"undefined"!=typeof a.captcha&&!a.captcha)return b.get("errors.captcha")},submit:function(){if(!this.validate(this.attributes)){var a=this;c.Objects.server.callFunctions([{"function":"processLeaveMessage",arguments:{references:{},"return":{},groupId:a.get("groupId"),name:a.get("name"),info:a.get("info"),email:a.get("email"),message:a.get("message"),referrer:a.get("referrer"),captcha:a.get("captcha"),threadId:null,token:null}}],function(b){0==b.errorCode?a.trigger("submit:complete", +if(this.get("showCaptcha")&&"undefined"!=typeof a.captcha&&!a.captcha)return b.get("The letters you typed don't match the letters that were shown in the picture.")},submit:function(){if(!this.validate(this.attributes)){var a=this;c.Objects.server.callFunctions([{"function":"processLeaveMessage",arguments:{references:{},"return":{},groupId:a.get("groupId"),name:a.get("name"),info:a.get("info"),email:a.get("email"),message:a.get("message"),referrer:a.get("referrer"),captcha:a.get("captcha"),threadId:null,token:null}}],function(b){0==b.errorCode?a.trigger("submit:complete", a):a.trigger("submit:error",a,{code:b.errorCode,message:b.errorMessage||""})},!0)}},ERROR_WRONG_CAPTCHA:10})})(Mibew,_); diff --git a/src/mibew/js/compiled/chat/models/survey/survey_form.js b/src/mibew/js/compiled/chat/models/survey/survey_form.js index ccece98e..02753cbb 100644 --- a/src/mibew/js/compiled/chat/models/survey/survey_form.js +++ b/src/mibew/js/compiled/chat/models/survey/survey_form.js @@ -5,6 +5,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -(function(b,e){var d=b.Models.BaseSurveyForm;b.Models.SurveyForm=d.extend({defaults:e.extend({},d.prototype.defaults,{showEmail:!1,showMessage:!1,canChangeName:!1}),validate:function(a){if(this.get("showEmail")&&"undefined"!=typeof a.email&&!b.Utils.checkEmail(a.email))return b.Localization.get("presurvey.error.wrong_email")},submit:function(){if(!this.validate(this.attributes)){var a=this;b.Objects.server.callFunctions([{"function":"processSurvey",arguments:{references:{},"return":{next:"next",options:"options"}, +(function(b,e){var d=b.Models.BaseSurveyForm;b.Models.SurveyForm=d.extend({defaults:e.extend({},d.prototype.defaults,{showEmail:!1,showMessage:!1,canChangeName:!1}),validate:function(a){if(this.get("showEmail")&&"undefined"!=typeof a.email&&!b.Utils.checkEmail(a.email))return b.Localization.get("Wrong email address.")},submit:function(){if(!this.validate(this.attributes)){var a=this;b.Objects.server.callFunctions([{"function":"processSurvey",arguments:{references:{},"return":{next:"next",options:"options"}, groupId:a.get("groupId"),name:a.get("name"),info:a.get("info"),email:a.get("email"),message:a.get("message"),referrer:a.get("referrer"),threadId:null,token:null}}],function(c){if(0==c.errorCode)switch(a.trigger("submit:complete",a),b.Application.Survey.stop(),c.next){case "chat":b.Application.Chat.start(c.options);break;case "leaveMessage":b.Application.LeaveMessage.start(c.options);break;default:throw Error("Do not know how to continue!");}else a.trigger("submit:error",a,{code:c.errorCode,message:c.errorMessage|| ""})},!0)}}})})(Mibew,_); diff --git a/src/mibew/js/compiled/chat_app.js b/src/mibew/js/compiled/chat_app.js index 4f8d1e30..bc836663 100644 --- a/src/mibew/js/compiled/chat_app.js +++ b/src/mibew/js/compiled/chat_app.js @@ -110,7 +110,7 @@ MibewAPIChatInteraction=function(){this.mandatoryArguments=function(){return{"*" http://www.apache.org/licenses/LICENSE-2.0 */ (function(c,e){var d=c.Models.BaseSurveyForm;c.Models.LeaveMessageForm=d.extend({defaults:e.extend({},d.prototype.defaults,{showCaptcha:!1,captcha:""}),validate:function(a){var b=c.Localization;if("undefined"!=typeof a.email){if(!a.email)return b.get("leavemessage.error.email.required");if(!c.Utils.checkEmail(a.email))return b.get("leavemessage.error.wrong.email")}if("undefined"!=typeof a.name&&!a.name)return b.get("leavemessage.error.name.required");if("undefined"!=typeof a.message&&!a.message)return b.get("leavemessage.error.message.required"); -if(this.get("showCaptcha")&&"undefined"!=typeof a.captcha&&!a.captcha)return b.get("errors.captcha")},submit:function(){if(!this.validate(this.attributes)){var a=this;c.Objects.server.callFunctions([{"function":"processLeaveMessage",arguments:{references:{},"return":{},groupId:a.get("groupId"),name:a.get("name"),info:a.get("info"),email:a.get("email"),message:a.get("message"),referrer:a.get("referrer"),captcha:a.get("captcha"),threadId:null,token:null}}],function(b){0==b.errorCode?a.trigger("submit:complete", +if(this.get("showCaptcha")&&"undefined"!=typeof a.captcha&&!a.captcha)return b.get("The letters you typed don't match the letters that were shown in the picture.")},submit:function(){if(!this.validate(this.attributes)){var a=this;c.Objects.server.callFunctions([{"function":"processLeaveMessage",arguments:{references:{},"return":{},groupId:a.get("groupId"),name:a.get("name"),info:a.get("info"),email:a.get("email"),message:a.get("message"),referrer:a.get("referrer"),captcha:a.get("captcha"),threadId:null,token:null}}],function(b){0==b.errorCode?a.trigger("submit:complete", a):a.trigger("submit:error",a,{code:b.errorCode,message:b.errorMessage||""})},!0)}},ERROR_WRONG_CAPTCHA:10})})(Mibew,_); /* Copyright 2005-2014 the original author or authors. @@ -147,7 +147,7 @@ this.play(b+"/sounds/new_message")}this.set({skipNextMessageSound:!1})}})})(Mibe You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -(function(b,e){var d=b.Models.BaseSurveyForm;b.Models.SurveyForm=d.extend({defaults:e.extend({},d.prototype.defaults,{showEmail:!1,showMessage:!1,canChangeName:!1}),validate:function(a){if(this.get("showEmail")&&"undefined"!=typeof a.email&&!b.Utils.checkEmail(a.email))return b.Localization.get("presurvey.error.wrong_email")},submit:function(){if(!this.validate(this.attributes)){var a=this;b.Objects.server.callFunctions([{"function":"processSurvey",arguments:{references:{},"return":{next:"next",options:"options"}, +(function(b,e){var d=b.Models.BaseSurveyForm;b.Models.SurveyForm=d.extend({defaults:e.extend({},d.prototype.defaults,{showEmail:!1,showMessage:!1,canChangeName:!1}),validate:function(a){if(this.get("showEmail")&&"undefined"!=typeof a.email&&!b.Utils.checkEmail(a.email))return b.Localization.get("Wrong email address.")},submit:function(){if(!this.validate(this.attributes)){var a=this;b.Objects.server.callFunctions([{"function":"processSurvey",arguments:{references:{},"return":{next:"next",options:"options"}, groupId:a.get("groupId"),name:a.get("name"),info:a.get("info"),email:a.get("email"),message:a.get("message"),referrer:a.get("referrer"),threadId:null,token:null}}],function(c){if(0==c.errorCode)switch(a.trigger("submit:complete",a),b.Application.Survey.stop(),c.next){case "chat":b.Application.Chat.start(c.options);break;case "leaveMessage":b.Application.LeaveMessage.start(c.options);break;default:throw Error("Do not know how to continue!");}else a.trigger("submit:error",a,{code:c.errorCode,message:c.errorMessage|| ""})},!0)}}})})(Mibew,_); /* @@ -194,7 +194,7 @@ changeGroupDescription:function(){var a=this.ui.groupSelect.prop("selectedIndex" You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_); +(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("Are you sure want to leave chat?");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_); /* Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/src/mibew/js/compiled/users/app.js b/src/mibew/js/compiled/users/app.js index 4cd4e3d9..29e1685e 100644 --- a/src/mibew/js/compiled/users/app.js +++ b/src/mibew/js/compiled/users/app.js @@ -5,6 +5,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -(function(a,h,j){var c=0,g=function(){c++;10==c&&(alert(a.Localization.get("pending.errors.network")),c=0)},b=new h.Marionette.Application;b.addRegions({agentsRegion:"#agents-region",statusPanelRegion:"#status-panel-region",threadsRegion:"#threads-region",visitorsRegion:"#visitors-region"});b.addInitializer(function(d){a.PluginOptions=d.plugins||{};var c=a.Objects,f=a.Objects.Models,e=a.Objects.Collections;c.server=new a.Server(j.extend({interactionType:MibewAPIUsersInteraction,onTimeout:g,onTransportError:g}, +(function(a,h,j){var c=0,g=function(){c++;10==c&&(alert(a.Localization.get("Network problems detected. Please refresh the page.")),c=0)},b=new h.Marionette.Application;b.addRegions({agentsRegion:"#agents-region",statusPanelRegion:"#status-panel-region",threadsRegion:"#threads-region",visitorsRegion:"#visitors-region"});b.addInitializer(function(d){a.PluginOptions=d.plugins||{};var c=a.Objects,f=a.Objects.Models,e=a.Objects.Collections;c.server=new a.Server(j.extend({interactionType:MibewAPIUsersInteraction,onTimeout:g,onTransportError:g}, d.server));f.page=new a.Models.Page(d.page);f.agent=new a.Models.Agent(d.agent);e.threads=new a.Collections.Threads;b.threadsRegion.show(new a.Views.ThreadsCollection({collection:e.threads}));d.page.showVisitors&&(e.visitors=new a.Collections.Visitors,b.visitorsRegion.show(new a.Views.VisitorsCollection({collection:e.visitors})));f.statusPanel=new a.Models.StatusPanel;b.statusPanelRegion.show(new a.Views.StatusPanel({model:f.statusPanel}));d.page.showOnlineOperators&&(e.agents=new a.Collections.Agents, b.agentsRegion.show(new a.Views.AgentsCollection({collection:e.agents})));c.server.callFunctionsPeriodically(function(){return[{"function":"update",arguments:{"return":{},references:{},agentId:f.agent.id}}]},function(){})});b.on("start",function(){a.Objects.server.runUpdater()});a.Application=b})(Mibew,Backbone,_); diff --git a/src/mibew/js/compiled/users/collection_views/threads_collection.js b/src/mibew/js/compiled/users/collection_views/threads_collection.js index cf0bd8ff..de3828dd 100644 --- a/src/mibew/js/compiled/users/collection_views/threads_collection.js +++ b/src/mibew/js/compiled/users/collection_views/threads_collection.js @@ -8,5 +8,5 @@ (function(d,h,k){d.Views.ThreadsCollection=d.Views.CompositeBase.extend({template:h.templates.threads_collection,itemView:d.Views.QueuedThread,itemViewContainer:"#threads-container",emptyView:d.Views.NoThreads,className:"threads-collection",collectionEvents:{sort:"render","sort:field":"createSortField",add:"threadAdded"},itemViewOptions:function(a){return{tagName:d.Objects.Models.page.get("threadTag"),collection:a.get("controls")}},initialize:function(){window.setInterval(k.bind(this.updateTimers, this),2E3);this.on("itemview:before:render",this.updateStyles,this);this.on("composite:collection:rendered",this.updateTimers,this)},updateStyles:function(a){var b=this.collection,c=a.model,d=this;if(c.id){var e=this.getQueueCode(c),f=!1,g=!1,b=b.filter(function(a){return d.getQueueCode(a)==e});0 no_field("form.field.email"), - 'name.required' => no_field("form.field.name"), - 'message.required' => no_field("form.field.message"), - 'wrong.email' => wrong_field("form.field.email"), + 'email.required' => no_field("Your email"), + 'name.required' => no_field("Your name"), + 'message.required' => no_field("Message"), + 'wrong.email' => wrong_field("Your email"), ); return $data; @@ -312,7 +312,7 @@ function setup_leavemessage($name, $email, $group_id, $info, $referrer) ); $data['page.title'] = (empty($group_name) ? '' : $group_name . ': ') - . getlocal('leavemessage.title'); + . getlocal('Leave your message'); $data['leaveMessage']['page'] = array( 'title' => $data['page.title'] ); @@ -358,7 +358,7 @@ function setup_survey($name, $email, $group_id, $info, $referrer) 'canChangeName' => (bool) (Settings::get('usercanchangename') == "1"), ); - $data['page.title'] = getlocal('presurvey.title'); + $data['page.title'] = getlocal('Live support'); $data['survey']['page'] = array( 'title' => $data['page.title'] ); @@ -535,7 +535,7 @@ function setup_chatview_for_user(Thread $thread) $data['chat']['user'] = array( 'name' => htmlspecialchars($thread->userName), 'canChangeName' => (bool) (Settings::get('usercanchangename') == "1"), - 'defaultName' => (bool) (getlocal("chat.default.username") != $thread->userName), + 'defaultName' => (bool) (getlocal("Guest") != $thread->userName), 'canPost' => true, 'isAgent' => false, ); @@ -658,7 +658,7 @@ function ban_for_addr($addr) */ function visitor_from_request() { - $default_name = getlocal("chat.default.username"); + $default_name = getlocal("Guest"); $user_name = $default_name; if (isset($_COOKIE[USERNAME_COOKIE_NAME])) { $data = base64_decode(strtr($_COOKIE[USERNAME_COOKIE_NAME], '-_,', '+/=')); @@ -784,7 +784,7 @@ function chat_start_for_user( $thread->postMessage( Thread::KIND_FOR_AGENT, getlocal( - 'chat.visitor.invitation.accepted', + 'Visitor accepted invitation from operator {0}', array($operator_name), CURRENT_LOCALE, true @@ -794,14 +794,14 @@ function chat_start_for_user( if ($referrer) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.came.from', array($referrer), CURRENT_LOCALE, true) + getlocal('Vistor came from page {0}', array($referrer), CURRENT_LOCALE, true) ); } if ($requested_operator && !$requested_operator_online) { $thread->postMessage( Thread::KIND_INFO, getlocal( - 'chat.requested_operator.offline', + 'Thank you for contacting us. We are sorry, but requested operator {0} is offline. Another operator will be with you shortly.', array(get_operator_name($requested_operator)), CURRENT_LOCALE, true @@ -810,7 +810,7 @@ function chat_start_for_user( } else { $thread->postMessage( Thread::KIND_INFO, - getlocal('chat.wait', null, CURRENT_LOCALE, true) + getlocal('Thank you for contacting us. An operator will be with you shortly.', null, CURRENT_LOCALE, true) ); } } @@ -819,7 +819,7 @@ function chat_start_for_user( if ($info) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.visitor.info', array($info), CURRENT_LOCALE, true) + getlocal('Info: {0}', array($info), CURRENT_LOCALE, true) ); } diff --git a/src/mibew/libs/classes/Mibew/Controller/BanController.php b/src/mibew/libs/classes/Mibew/Controller/BanController.php index f2940c63..7cbf671a 100644 --- a/src/mibew/libs/classes/Mibew/Controller/BanController.php +++ b/src/mibew/libs/classes/Mibew/Controller/BanController.php @@ -56,7 +56,7 @@ class BanController extends AbstractController } unset($item); - $page['title'] = getlocal('page_bans.title'); + $page['title'] = getlocal('Ban List'); $page['menuid'] = 'bans'; $pagination = setup_pagination($blocked_list); $page['pagination'] = $pagination['info']; @@ -159,7 +159,7 @@ class BanController extends AbstractController $page['threadid'] = $request->request->get('threadid'); } - $page['title'] = getlocal('page_ban.title'); + $page['title'] = getlocal('Block address'); $page['formaction'] = $request->getBaseUrl() . $request->getPathInfo(); $page = array_merge($page, prepare_menu($operator, false)); @@ -192,15 +192,15 @@ class BanController extends AbstractController $comment = $request->request->get('comment'); if (!$address) { - $errors[] = no_field('form.field.address'); + $errors[] = no_field('Visitor\'s Address'); } if (!preg_match("/^\d+$/", $days)) { - $errors[] = wrong_field('form.field.ban_days'); + $errors[] = wrong_field('Days'); } if (!$comment) { - $errors[] = no_field('form.field.ban_comment'); + $errors[] = no_field('Comment'); } // Check if the ban already exists in the database @@ -213,7 +213,7 @@ class BanController extends AbstractController 'ban_edit', array('ban_id' => $existing_ban['banid']) ); - $errors[] = getlocal('ban.error.duplicate', array($address, $ban_url)); + $errors[] = getlocal('The specified address is already in use. Click here if you want to edit it.', array($address, $ban_url)); } if (count($errors) != 0) { @@ -254,7 +254,7 @@ class BanController extends AbstractController // Rerender the form page $page['saved'] = true; $page['address'] = $address; - $page['title'] = getlocal('page_ban.title'); + $page['title'] = getlocal('Block address'); $page = array_merge($page, prepare_menu($operator, false)); return $this->render('ban', $page); diff --git a/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php b/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php index 7f530fc8..8c230baa 100644 --- a/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php +++ b/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php @@ -54,14 +54,14 @@ class ButtonCodeController extends AbstractController $image_locales = $image_locales_map[$image]; $style_list = ChatStyle::getAvailableStyles(); - $style_list[''] = getlocal('page.preview.style_default'); + $style_list[''] = getlocal('-from general settings-'); $style = $request->query->get('style', ''); if ($style && !in_array($style, $style_list)) { $style = ''; } $invitation_style_list = InvitationStyle::getAvailableStyles(); - $invitation_style_list[''] = getlocal('page.preview.style_default'); + $invitation_style_list[''] = getlocal('-from general settings-'); $invitation_style = $request->query->get('invitationstyle', ''); if ($invitation_style && !in_array($invitation_style, $invitation_style_list)) { $invitation_style = ''; @@ -71,7 +71,7 @@ class ButtonCodeController extends AbstractController $group_id = $request->query->getInt('group'); if ($group_id && !group_by_id($group_id)) { - $page['errors'][] = getlocal("page.group.no_such"); + $page['errors'][] = getlocal("No such group"); $group_id = false; } @@ -123,7 +123,7 @@ class ButtonCodeController extends AbstractController $lang = in_array(CURRENT_LOCALE, $locales_list) ? CURRENT_LOCALE : $locales_list[0]; } - $message = getlocal('page.gen_button.text_link_text'); + $message = getlocal('Click to chat'); } $page['buttonCode'] = generate_button( @@ -146,9 +146,9 @@ class ButtonCodeController extends AbstractController $page['groups'] = get_groups_list(); $page['availableCodeTypes'] = array( - 'button' => getlocal('page.gen_button.button'), - 'operator_code' => getlocal('page.gen_button.operator_code'), - 'text_link' => getlocal('page.gen_button.text_link') + 'button' => getlocal('button'), + 'operator_code' => getlocal('operator code field'), + 'text_link' => getlocal('text link') ); $page['formgroup'] = $group_id; @@ -165,7 +165,7 @@ class ButtonCodeController extends AbstractController $page['operator_code'] = $operator_code; $page['generateButton'] = $generate_button; - $page['title'] = getlocal("page.gen_button.title"); + $page['title'] = getlocal("Button HTML code generation"); $page['menuid'] = "getcode"; $page = array_merge($page, prepare_menu($operator)); diff --git a/src/mibew/libs/classes/Mibew/Controller/ButtonController.php b/src/mibew/libs/classes/Mibew/Controller/ButtonController.php index 4489c865..e9985b60 100644 --- a/src/mibew/libs/classes/Mibew/Controller/ButtonController.php +++ b/src/mibew/libs/classes/Mibew/Controller/ButtonController.php @@ -41,7 +41,7 @@ class ButtonController extends AbstractController $thread = Thread::load($_SESSION['threadid']); if ($thread && $thread->state != Thread::STATE_CLOSED) { $msg = getlocal( - "chat.client.visited.page", + "Visitor navigated to {0}", array($referer), $thread->locale, true diff --git a/src/mibew/libs/classes/Mibew/Controller/CannedMessageController.php b/src/mibew/libs/classes/Mibew/Controller/CannedMessageController.php index 1e2e5e10..160dec9d 100644 --- a/src/mibew/libs/classes/Mibew/Controller/CannedMessageController.php +++ b/src/mibew/libs/classes/Mibew/Controller/CannedMessageController.php @@ -65,7 +65,7 @@ class CannedMessageController extends AbstractController if ($group_id) { $group = group_by_id($group_id); if (!$group) { - $page['errors'][] = getlocal('page.group.no_such'); + $page['errors'][] = getlocal('No such group'); $group_id = false; } } @@ -77,7 +77,7 @@ class CannedMessageController extends AbstractController $page['groups'] = array(); $page['groups'][] = array( 'groupid' => '', - 'vclocalname' => getlocal('page.gen_button.default_group'), + 'vclocalname' => getlocal('-all operators-'), 'level' => 0, ); foreach ($all_groups as $g) { @@ -101,7 +101,7 @@ class CannedMessageController extends AbstractController $page['formgroup'] = $group_id; // Set other needed page values and render the response - $page['title'] = getlocal('canned.title'); + $page['title'] = getlocal('Canned Messages'); $page['menuid'] = 'canned'; $page = array_merge($page, prepare_menu($operator)); @@ -157,7 +157,7 @@ class CannedMessageController extends AbstractController // Load existing message $canned_message = load_canned_message($message_id); if (!$canned_message) { - $page['errors'][] = getlocal('cannededit.no_such'); + $page['errors'][] = getlocal('No such message'); $message_id = false; } else { $title = $canned_message['vctitle']; @@ -186,8 +186,8 @@ class CannedMessageController extends AbstractController $page['formmessage'] = $message; $page['formaction'] = $request->getBaseUrl() . $request->getPathInfo(); $page['title'] = empty($message_id) - ? getlocal('cannednew.title') - : getlocal('cannededit.title'); + ? getlocal('New Message') + : getlocal('Edit Message'); $page = array_merge($page, prepare_menu($operator, false)); return $this->render('canned_message_edit', $page); @@ -211,12 +211,12 @@ class CannedMessageController extends AbstractController $title = $request->request->get('title'); if (!$title) { - $errors[] = no_field("form.field.title"); + $errors[] = no_field("Title"); } $message = $request->request->get('message'); if (!$message) { - $errors[] = no_field("form.field.message"); + $errors[] = no_field("Message"); } if (count($errors) != 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/Chat/MailController.php b/src/mibew/libs/classes/Mibew/Controller/Chat/MailController.php index bc760680..725fa332 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Chat/MailController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Chat/MailController.php @@ -91,9 +91,9 @@ class MailController extends AbstractController $email = $request->request->get('email'); $group = is_null($thread->groupId) ? null : group_by_id($thread->groupId); if (!$email) { - $errors[] = no_field('form.field.email'); + $errors[] = no_field('Your email'); } elseif (!is_valid_email($email)) { - $errors[] = wrong_field('form.field.email'); + $errors[] = wrong_field('Your email'); } if (count($errors) > 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/Chat/OperatorChatController.php b/src/mibew/libs/classes/Mibew/Controller/Chat/OperatorChatController.php index b8594598..238b0bcb 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Chat/OperatorChatController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Chat/OperatorChatController.php @@ -83,13 +83,13 @@ class OperatorChatController extends AbstractController // Check operator's browser level because old browsers aren't supported. $remote_level = get_remote_level($request->headers->get('User-Agent')); if ($remote_level != 'ajaxed') { - return $this->showErrors(array(getlocal('thread.error.old_browser'))); + return $this->showErrors(array(getlocal('Old browser is used, please update it'))); } // Check if the thread can be loaded. $thread = Thread::load($thread_id); if (!$thread || !isset($thread->lastToken)) { - return $this->showErrors(array(getlocal('thread.error.wrong_thread'))); + return $this->showErrors(array(getlocal('Wrong thread'))); } $view_only = ($request->query->get('viewonly') == 'true'); @@ -100,7 +100,7 @@ class OperatorChatController extends AbstractController && $operator['operatorid'] != $thread->agentId; if ($try_take_over) { if (!is_capable(CAN_TAKEOVER, $operator)) { - return $this->showErrors(array(getlocal('thread.error.cannot_take_over'))); + return $this->showErrors(array(getlocal('Cannot take over'))); } if ($force_take == false) { @@ -115,7 +115,7 @@ class OperatorChatController extends AbstractController 'user' => $thread->userName, 'agent' => $thread->agentName, 'link' => $link, - 'title' => getlocal('confirm.take.head'), + 'title' => getlocal('Change operator'), ); $page_style = new PageStyle(PageStyle::getCurrentStyle()); @@ -127,10 +127,10 @@ class OperatorChatController extends AbstractController if (!$view_only) { if (!$thread->take($operator)) { - return $this->showErrors(array(getlocal('thread.error.cannot_take'))); + return $this->showErrors(array(getlocal('Cannot take thread'))); } } elseif (!is_capable(CAN_VIEWTHREADS, $operator)) { - return $this->showErrors(array(getlocal('thread.error.cannot_view'))); + return $this->showErrors(array(getlocal('Cannot view threads'))); } // Redrect the operator to initialized chat page diff --git a/src/mibew/libs/classes/Mibew/Controller/Chat/RedirectController.php b/src/mibew/libs/classes/Mibew/Controller/Chat/RedirectController.php index 958a5d7d..55f81a69 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Chat/RedirectController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Chat/RedirectController.php @@ -103,11 +103,11 @@ class RedirectController extends AbstractController if ($next_group) { $page['message'] = getlocal( - 'chat.redirected.group.content', + 'The visitor has been placed in a priorty queue of the group {0}.', array(get_group_name($next_group)) ); if (!$this->redirectToGroup($thread, $next_id)) { - $page['errors'][] = getlocal('chat.redirect.cannot'); + $page['errors'][] = getlocal('You are not chatting with the visitor.'); } } else { $page['errors'][] = 'Unknown group'; @@ -122,11 +122,11 @@ class RedirectController extends AbstractController if ($next_operator) { $page['message'] = getlocal( - 'chat.redirected.content', + 'The visitor has been placed in the priorty queue of the operator {0}.', array(get_operator_name($next_operator)) ); if (!$this->redirectToOperator($thread, $next_id)) { - $page['errors'][] = getlocal('chat.redirect.cannot'); + $page['errors'][] = getlocal('You are not chatting with the visitor.'); } } else { $page['errors'][] = 'Unknown operator'; @@ -168,7 +168,7 @@ class RedirectController extends AbstractController $thread->postMessage( Thread::KIND_EVENTS, getlocal( - 'chat.status.operator.redirect', + 'Operator {0} redirected you to another operator. Please wait a while.', array(get_operator_name($this->getOperator())), $thread->locale, true @@ -222,7 +222,7 @@ class RedirectController extends AbstractController $thread->postMessage( Thread::KIND_EVENTS, getlocal( - 'chat.status.operator.redirect', + 'Operator {0} redirected you to another operator. Please wait a while.', array(get_operator_name($this->getOperator())), $thread->locale, true diff --git a/src/mibew/libs/classes/Mibew/Controller/Group/AbstractController.php b/src/mibew/libs/classes/Mibew/Controller/Group/AbstractController.php index dea909a4..290214ac 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Group/AbstractController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Group/AbstractController.php @@ -40,11 +40,11 @@ abstract class AbstractController extends BaseController $args = array('group_id' => $group_id); if ($group_id) { - $tabs[getlocal('page_group.tab.main')] = ($route == 'group_members') + $tabs[getlocal('General')] = ($route == 'group_members') ? $this->generateUrl('group_edit', $args) : ''; - $tabs[getlocal('page_group.tab.members')] = ($route != 'group_members') + $tabs[getlocal('Members')] = ($route != 'group_members') ? $this->generateUrl('group_members', $args) : ''; } diff --git a/src/mibew/libs/classes/Mibew/Controller/Group/ManagementController.php b/src/mibew/libs/classes/Mibew/Controller/Group/ManagementController.php index 3c3cb61d..7c3b02dc 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Group/ManagementController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Group/ManagementController.php @@ -66,17 +66,17 @@ class ManagementController extends AbstractController $page['formsortdirection'] = $sort['desc'] ? 'desc' : 'asc'; $page['canmodify'] = is_capable(CAN_ADMINISTRATE, $operator); $page['availableOrders'] = array( - array('id' => 'name', 'name' => getlocal('form.field.groupname')), - array('id' => 'lastseen', 'name' => getlocal('page_agents.status')), - array('id' => 'weight', 'name' => getlocal('page.groups.weight')), + array('id' => 'name', 'name' => getlocal('Name')), + array('id' => 'lastseen', 'name' => getlocal('Last active')), + array('id' => 'weight', 'name' => getlocal('Weight')), ); $page['availableDirections'] = array( - array('id' => 'desc', 'name' => getlocal('page.groups.sortdirection.desc')), - array('id' => 'asc', 'name' => getlocal('page.groups.sortdirection.asc')), + array('id' => 'desc', 'name' => getlocal('descending')), + array('id' => 'asc', 'name' => getlocal('ascending')), ); // Set other variables and render the response. - $page['title'] = getlocal('page.groups.title'); + $page['title'] = getlocal('Groups'); $page['menuid'] = 'groups'; $page = array_merge($page, prepare_menu($operator)); diff --git a/src/mibew/libs/classes/Mibew/Controller/Group/MembersController.php b/src/mibew/libs/classes/Mibew/Controller/Group/MembersController.php index ffa599f9..5f500d56 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Group/MembersController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Group/MembersController.php @@ -78,7 +78,7 @@ class MembersController extends AbstractController // Set other values and render the page $page['stored'] = $request->query->get('stored'); - $page['title'] = getlocal('page.groupmembers.title'); + $page['title'] = getlocal('Members'); $page['menuid'] = 'groups'; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); diff --git a/src/mibew/libs/classes/Mibew/Controller/Group/SettingsController.php b/src/mibew/libs/classes/Mibew/Controller/Group/SettingsController.php index 7a809920..79cfff17 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Group/SettingsController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Group/SettingsController.php @@ -89,7 +89,7 @@ class SettingsController extends AbstractController $page['stored'] = $request->query->has('stored'); $page['availableParentGroups'] = get_available_parent_groups($group_id); $page['formaction'] = $request->getBaseUrl() . $request->getPathInfo(); - $page['title'] = getlocal('page.group.title'); + $page['title'] = getlocal('Group details'); $page['menuid'] = 'groups'; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); @@ -129,15 +129,15 @@ class SettingsController extends AbstractController $logo = $request->request->get('logo'); if (!$name) { - $errors[] = no_field("form.field.groupname"); + $errors[] = no_field("Name"); } if ($email != '' && !is_valid_email($email)) { - $errors[] = wrong_field("form.field.mail"); + $errors[] = wrong_field("E-mail"); } if (!preg_match("/^(\d{1,10})?$/", $weight)) { - $errors[] = wrong_field("form.field.groupweight"); + $errors[] = wrong_field("Weight"); } if (!$weight) { @@ -151,7 +151,7 @@ class SettingsController extends AbstractController && $group_id != $existing_group['groupid']); if ($duplicate_name) { - $errors[] = getlocal("page.group.duplicate_name"); + $errors[] = getlocal("Please choose another name because a group with that name already exists."); } if (count($errors) != 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/HistoryController.php b/src/mibew/libs/classes/Mibew/Controller/HistoryController.php index 8f6d1786..4335a571 100644 --- a/src/mibew/libs/classes/Mibew/Controller/HistoryController.php +++ b/src/mibew/libs/classes/Mibew/Controller/HistoryController.php @@ -157,7 +157,7 @@ class HistoryController extends AbstractController $page['formtype'] = $search_type; $page['forminsystemmessages'] = $search_in_system_messages; - $page['title'] = getlocal("page_analysis.search.title"); + $page['title'] = getlocal("Chat history"); $page['menuid'] = "history"; $page['canSearchInSystemMessages'] = ($search_type != 'all') && ($search_type != 'message'); @@ -197,7 +197,7 @@ class HistoryController extends AbstractController $last_id = -1; $messages = $thread->getMessages(false, $last_id); $page['threadMessages'] = json_encode($messages); - $page['title'] = getlocal("thread.chat_log"); + $page['title'] = getlocal("Chat log"); $page = array_merge($page, prepare_menu($operator, false)); @@ -260,7 +260,7 @@ class HistoryController extends AbstractController } } - $page['title'] = getlocal("page.analysis.userhistory.title"); + $page['title'] = getlocal("Visit history"); $page['menuid'] = "history"; return $this->render('history_user', $page); @@ -310,7 +310,7 @@ class HistoryController extends AbstractController ); } - $page['title'] = getlocal('tracked.path'); + $page['title'] = getlocal('Tracked path of visitor'); $page['show_small_login'] = false; return $this->render('tracked', $page); diff --git a/src/mibew/libs/classes/Mibew/Controller/HomeController.php b/src/mibew/libs/classes/Mibew/Controller/HomeController.php index 76194ca3..dc1e73cb 100644 --- a/src/mibew/libs/classes/Mibew/Controller/HomeController.php +++ b/src/mibew/libs/classes/Mibew/Controller/HomeController.php @@ -60,7 +60,7 @@ class HomeController extends AbstractController 'featuresPage' => $base_url . '/operator/settings/features', 'isOnline' => $is_online, 'warnOffline' => true, - 'title' => getlocal('topMenu.admin'), + 'title' => getlocal('Home'), 'menuid' => 'main', ); diff --git a/src/mibew/libs/classes/Mibew/Controller/LicenseController.php b/src/mibew/libs/classes/Mibew/Controller/LicenseController.php index 8b790274..2c096ced 100644 --- a/src/mibew/libs/classes/Mibew/Controller/LicenseController.php +++ b/src/mibew/libs/classes/Mibew/Controller/LicenseController.php @@ -35,7 +35,7 @@ class LicenseController extends AbstractController return $this->render( 'license', array( - 'title' => getlocal("license.title"), + 'title' => getlocal("License"), 'no_right_menu' => true, 'fixedwrap' => true, 'show_small_login' => true, diff --git a/src/mibew/libs/classes/Mibew/Controller/Localization/AbstractController.php b/src/mibew/libs/classes/Mibew/Controller/Localization/AbstractController.php index f2e1f386..ec61f372 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Localization/AbstractController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Localization/AbstractController.php @@ -37,11 +37,11 @@ abstract class AbstractController extends BaseAbstractController $tabs = array(); $route = $request->attributes->get('_route'); - $tabs[getlocal('page_localization.tab.translation')] = ($route != 'translations') + $tabs[getlocal('Translations')] = ($route != 'translations') ? $this->generateUrl('translations') : ''; - $tabs[getlocal('page_localization.tab.locale')] = ($route != 'locales') + $tabs[getlocal('Locales')] = ($route != 'locales') ? $this->generateUrl('locales') : ''; diff --git a/src/mibew/libs/classes/Mibew/Controller/Localization/LocaleController.php b/src/mibew/libs/classes/Mibew/Controller/Localization/LocaleController.php index 1381af62..ece384ca 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Localization/LocaleController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Localization/LocaleController.php @@ -47,7 +47,7 @@ class LocaleController extends AbstractController $available_locales = get_available_locales(); $locales_list = array(); - foreach($fs_locales as $locale) { + foreach ($fs_locales as $locale) { $locales_list[] = array( 'code' => $locale, 'name' => (isset($locale_names[$locale]) ? $locale_names[$locale] : $locale), diff --git a/src/mibew/libs/classes/Mibew/Controller/Localization/TranslationController.php b/src/mibew/libs/classes/Mibew/Controller/Localization/TranslationController.php index 73a4df50..2c9ca536 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Localization/TranslationController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Localization/TranslationController.php @@ -108,11 +108,11 @@ class TranslationController extends AbstractController $page['formsource'] = $source; $page['availableLocales'] = $locales_list; $page['availableOrders'] = array( - array('id' => 'id', 'name' => getlocal('translate.sort.key')), - array('id' => 'l1', 'name' => getlocal('translate.sort.lang')), + array('id' => 'id', 'name' => getlocal('Key identifier')), + array('id' => 'l1', 'name' => getlocal('Source language string')), ); $page['formsort'] = $order; - $page['title'] = getlocal('page.translate.title'); + $page['title'] = getlocal('Translations'); $page['menuid'] = 'translation'; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); @@ -168,7 +168,7 @@ class TranslationController extends AbstractController $page['target'] = $target; $page['formoriginal'] = isset($lang1[$string_id]) ? $lang1[$string_id] : ''; $page['formtranslation'] = $translation; - $page['title'] = getlocal('page.translate.title'); + $page['title'] = getlocal('Translations'); $page = array_merge( $page, prepare_menu($operator, false) @@ -200,7 +200,7 @@ class TranslationController extends AbstractController $translation = $request->request->get('translation'); if (!$translation) { - $errors[] = no_field("form.field.translation"); + $errors[] = no_field("Translation"); } if (count($errors) != 0) { @@ -213,7 +213,7 @@ class TranslationController extends AbstractController save_message($target, $string_id, $translation); $page['saved'] = true; - $page['title'] = getlocal("page.translate.title"); + $page['title'] = getlocal("Translations"); $page = array_merge( $page, prepare_menu($operator, false) diff --git a/src/mibew/libs/classes/Mibew/Controller/LoginController.php b/src/mibew/libs/classes/Mibew/Controller/LoginController.php index ac9107ce..5c158e7e 100644 --- a/src/mibew/libs/classes/Mibew/Controller/LoginController.php +++ b/src/mibew/libs/classes/Mibew/Controller/LoginController.php @@ -58,8 +58,8 @@ class LoginController extends AbstractController } $page['localeLinks'] = get_locale_links(); - $page['title'] = getlocal('page_login.title'); - $page['headertitle'] = getlocal('app.title'); + $page['title'] = getlocal('Login'); + $page['headertitle'] = getlocal('Mibew Messenger'); $page['show_small_login'] = false; $page['fixedwrap'] = true; @@ -103,9 +103,9 @@ class LoginController extends AbstractController return $this->redirect($target); } else { if (operator_is_disabled($operator)) { - $errors[] = getlocal('page_login.operator.disabled'); + $errors[] = getlocal('Your account is temporarily blocked. Please contact system administrator.'); } else { - $errors[] = getlocal("page_login.error"); + $errors[] = getlocal("Entered login/password is incorrect"); } } diff --git a/src/mibew/libs/classes/Mibew/Controller/MailTemplateController.php b/src/mibew/libs/classes/Mibew/Controller/MailTemplateController.php index c6707766..59e06f2a 100644 --- a/src/mibew/libs/classes/Mibew/Controller/MailTemplateController.php +++ b/src/mibew/libs/classes/Mibew/Controller/MailTemplateController.php @@ -54,7 +54,7 @@ class MailTemplateController extends AbstractController $page['formaction'] = $this->generateUrl('mail_templates'); $page['mailTemplates'] = $this->getMailTemplatesList($lang); $page['formlang'] = $lang; - $page['title'] = getlocal('mail_template.title'); + $page['title'] = getlocal('Mail templates'); $page['menuid'] = 'mail_templates'; $page = array_merge($page, prepare_menu($operator)); @@ -95,7 +95,7 @@ class MailTemplateController extends AbstractController 'mail_template_edit', array('name' => $template_name) ); - $page['title'] = getlocal('mail_template.title'); + $page['title'] = getlocal('Mail templates'); $page['menuid'] = 'mail_templates'; $page = array_merge($page, prepare_menu($operator)); @@ -121,12 +121,12 @@ class MailTemplateController extends AbstractController $subject = $request->request->get('subject'); if (!$subject) { - $errors[] = no_field('form.field.mail_template_subject'); + $errors[] = no_field('Mail subject'); } $body = $request->request->get('body'); if (!$body) { - $errors[] = no_field('form.field.mail_template_body'); + $errors[] = no_field('Mail body'); } if (count($errors) != 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/AbstractController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/AbstractController.php index 1f3555a1..0cd0b923 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/AbstractController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/AbstractController.php @@ -40,19 +40,19 @@ abstract class AbstractController extends BaseController $args = array('operator_id' => $operator_id); if ($operator_id) { - $tabs[getlocal('page_agent.tab.main')] = ($route != 'operator_edit') + $tabs[getlocal('General')] = ($route != 'operator_edit') ? $this->generateUrl('operator_edit', $args) : ''; - $tabs[getlocal('page_agent.tab.avatar')] = ($route != 'operator_avatar') + $tabs[getlocal('Photo')] = ($route != 'operator_avatar') ? $this->generateUrl('operator_avatar', $args) : ''; - $tabs[getlocal('page_agent.tab.groups')] = ($route != 'operator_groups') + $tabs[getlocal('Groups')] = ($route != 'operator_groups') ? $this->generateUrl('operator_groups', $args) : ''; - $tabs[getlocal('page_agent.tab.permissions')] = ($route != 'operator_permissions') + $tabs[getlocal('Permissions')] = ($route != 'operator_permissions') ? $this->generateUrl('operator_permissions', $args) : ''; } diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/AvatarController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/AvatarController.php index d7b95396..b5b1a58c 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/AvatarController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/AvatarController.php @@ -59,9 +59,9 @@ class AvatarController extends AbstractController $page['avatar'] = $op['vcavatar']; $page['currentop'] = $op ? get_operator_name($op) . ' (' . $op['vclogin'] . ')' - : getlocal('not_found'); + : getlocal('-not found-'); $page['canmodify'] = $can_modify ? '1' : ''; - $page['title'] = getlocal('page_avatar.title'); + $page['title'] = getlocal('Upload photo'); $page['menuid'] = ($operator['operatorid'] == $op_id) ? 'profile' : 'operators'; $page = array_merge($page, prepare_menu($operator)); @@ -107,9 +107,9 @@ class AvatarController extends AbstractController $file_size = $file->getSize(); if ($file_size == 0 || $file_size > Settings::get('max_uploaded_file_size')) { - $errors[] = failed_uploading_file($orig_filename, "errors.file.size.exceeded"); + $errors[] = failed_uploading_file($orig_filename, "Uploaded file size exceeded"); } elseif (!in_array($ext, $valid_types)) { - $errors[] = failed_uploading_file($orig_filename, "errors.invalid.file.type"); + $errors[] = failed_uploading_file($orig_filename, "Invalid file type"); } else { // Remove avatar if it already exists $avatar_local_dir = MIBEW_FS_ROOT . '/files/avatar/'; @@ -123,7 +123,7 @@ class AvatarController extends AbstractController $file->move($avatar_local_dir, $new_file_name); $avatar = MIBEW_WEB_ROOT . "/files/avatar/$new_file_name"; } catch (Exception $e) { - $errors[] = failed_uploading_file($orig_filename, "errors.file.move.error"); + $errors[] = failed_uploading_file($orig_filename, "Error moving file"); } } } else { diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/GroupsController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/GroupsController.php index e1e2d4f4..085893f2 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/GroupsController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/GroupsController.php @@ -60,7 +60,7 @@ class GroupsController extends AbstractController $page['currentop'] = $op ? get_operator_name($op) . ' (' . $op['vclogin'] . ')' - : getlocal('not_found'); + : getlocal('-not found-'); $page['canmodify'] = $can_modify ? '1' : ''; // Get IDs of groups the operator belongs to. @@ -82,7 +82,7 @@ class GroupsController extends AbstractController } $page['stored'] = $request->query->has('stored'); - $page['title'] = getlocal('operator.groups.title'); + $page['title'] = getlocal('Operator groups'); $page['menuid'] = ($operator['operatorid'] == $op_id) ? 'profile' : 'operators'; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php index bf86de38..61ab9674 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/ManagementController.php @@ -74,17 +74,17 @@ class ManagementController extends AbstractController $page['allowedAgents'] = $operators_list; $page['canmodify'] = is_capable(CAN_ADMINISTRATE, $operator); $page['availableOrders'] = array( - array('id' => 'login', 'name' => getlocal('page_agents.login')), - array('id' => 'localename', 'name' => getlocal('page_agents.agent_name')), - array('id' => 'commonname', 'name' => getlocal('page_agents.commonname')), - array('id' => 'lastseen', 'name' => getlocal('page_agents.status')), + array('id' => 'login', 'name' => getlocal('Login')), + array('id' => 'localename', 'name' => getlocal('Name')), + array('id' => 'commonname', 'name' => getlocal('International name')), + array('id' => 'lastseen', 'name' => getlocal('Last active')), ); $page['availableDirections'] = array( - array('id' => 'desc', 'name' => getlocal('page_agents.sortdirection.desc')), - array('id' => 'asc', 'name' => getlocal('page_agents.sortdirection.asc')), + array('id' => 'desc', 'name' => getlocal('descending')), + array('id' => 'asc', 'name' => getlocal('ascending')), ); - $page['title'] = getlocal('page_agents.title'); + $page['title'] = getlocal('Operators'); $page['menuid'] = 'operators'; $page = array_merge($page, prepare_menu($operator)); @@ -108,13 +108,13 @@ class ManagementController extends AbstractController $errors = array(); if ($operator_id == $current_operator['operatorid']) { - $errors[] = getlocal('page_agents.error.cannot_remove_self'); + $errors[] = getlocal('Cannot remove self.'); } else { $operator = operator_by_id($operator_id); if (!$operator) { throw new NotFoundException('The operator is not found.'); } elseif ($operator['vclogin'] == 'admin') { - $errors[] = getlocal("page_agents.error.cannot_remove_admin"); + $errors[] = getlocal("Cannot remove operator \"admin\"."); } } @@ -149,13 +149,13 @@ class ManagementController extends AbstractController $errors = array(); if ($operator_id == $current_operator['operatorid']) { - $errors[] = getlocal('page_agents.cannot.disable.self'); + $errors[] = getlocal('Cannot disable self.'); } else { $operator = operator_by_id($operator_id); if (!$operator) { throw new NotFoundException('The operator is not found.'); } elseif ($operator['vclogin'] == 'admin') { - $errors[] = getlocal('page_agents.cannot.disable.admin'); + $errors[] = getlocal('Cannot disable "admin".'); } } diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/PermissionsController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/PermissionsController.php index e525bf7b..70c0275b 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/PermissionsController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/PermissionsController.php @@ -54,7 +54,7 @@ class PermissionsController extends AbstractController // Check if the target operator exists $page['currentop'] = $op ? get_operator_name($op) . ' (' . $op['vclogin'] . ')' - : getlocal('not_found'); + : getlocal('-not found-'); // Build list of permissions which belongs to the target operator. $checked_permissions = array(); @@ -72,7 +72,7 @@ class PermissionsController extends AbstractController } $page['stored'] = $request->query->has('stored'); - $page['title'] = getlocal('permissions.title'); + $page['title'] = getlocal('Permissions'); $page['menuid'] = ($operator['operatorid'] == $op_id) ? 'profile' : 'operators'; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); diff --git a/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php b/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php index 00b7f23f..5119f810 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Operator/ProfileController.php @@ -59,7 +59,7 @@ class ProfileController extends AbstractController $no_password = check_password_hash($operator['vclogin'], '', $operator['vcpassword']) && !$request->query->has('stored'); if ($no_password) { - $page['errors'][] = getlocal('my_settings.error.no_password'); + $page['errors'][] = getlocal('No Password set for the Administrator'); } $page['formlogin'] = $op['vclogin']; @@ -94,7 +94,7 @@ class ProfileController extends AbstractController $page['canmodify'] = $can_modify ? '1' : ''; $page['canchangelogin'] = is_capable(CAN_ADMINISTRATE, $operator); $page['needChangePassword'] = check_password_hash($operator['vclogin'], '', $operator['vcpassword']); - $page['title'] = getlocal('page_agent.title'); + $page['title'] = getlocal('Operator details'); $page['menuid'] = ($op_id == $operator['operatorid']) ? 'profile' : 'operators'; $page['requirePassword'] = (!$op_id || $page['needChangePassword']); $page['formaction'] = $request->getBaseUrl() . $request->getPathInfo(); @@ -133,33 +133,33 @@ class ProfileController extends AbstractController $code = $request->request->get('code'); if (!$local_name) { - $errors[] = no_field('form.field.agent_name'); + $errors[] = no_field('Name'); } if (!$common_name) { - $errors[] = no_field('form.field.agent_commonname'); + $errors[] = no_field('International name (Latin)'); } if (!$login) { - $errors[] = no_field('form.field.login'); + $errors[] = no_field('Login'); } elseif (!preg_match("/^[\w_\.]+$/", $login)) { - $errors[] = getlocal('page_agent.error.wrong_login'); + $errors[] = getlocal('Login should contain only latin characters, numbers and underscore symbol.'); } if (!$email || !is_valid_email($email)) { - $errors[] = wrong_field('form.field.mail'); + $errors[] = wrong_field('E-mail'); } if ($code && (!preg_match("/^[A-Za-z0-9_]+$/", $code))) { - $errors[] = getlocal('page_agent.error.wrong_agent_code'); + $errors[] = getlocal('Code should contain only latin characters, numbers and underscore symbol.'); } if (!$op_id && !$password) { - $errors[] = no_field('form.field.password'); + $errors[] = no_field('Password'); } if ($password != $password_confirm) { - $errors[] = getlocal('my_settings.error.password_match'); + $errors[] = getlocal('Entered passwords do not match'); } $existing_operator = operator_by_login($login); @@ -168,7 +168,7 @@ class ProfileController extends AbstractController && $existing_operator && $op_id != $existing_operator['operatorid']); if ($duplicate_login) { - $errors[] = getlocal('page_agent.error.duplicate_login'); + $errors[] = getlocal('Please choose another login because an operator with that login is already registered in the system.'); } // Check if operator with specified email already exists in the database. @@ -181,7 +181,7 @@ class ProfileController extends AbstractController && $existing_operator && $op_id != $existing_operator['operatorid']); if ($duplicate_email) { - $errors[] = getlocal('page_agent.error.duplicate_email'); + $errors[] = getlocal('Please choose another email because an operator with that email is already registered in the system.'); } if (count($errors) != 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/PasswordRecoveryController.php b/src/mibew/libs/classes/Mibew/Controller/PasswordRecoveryController.php index 5a9b70fc..caf51755 100644 --- a/src/mibew/libs/classes/Mibew/Controller/PasswordRecoveryController.php +++ b/src/mibew/libs/classes/Mibew/Controller/PasswordRecoveryController.php @@ -42,8 +42,8 @@ class PasswordRecoveryController extends AbstractController $page = array( 'version' => MIBEW_VERSION, - 'title' => getlocal('restore.title'), - 'headertitle' => getlocal('app.title'), + 'title' => getlocal('Trouble Accessing Your Account?'), + 'headertitle' => getlocal('Mibew Messenger'), 'show_small_login' => true, 'fixedwrap' => true, 'errors' => array(), @@ -57,7 +57,7 @@ class PasswordRecoveryController extends AbstractController ? operator_by_email($login_or_email) : operator_by_login($login_or_email); if (!$to_restore) { - $page['errors'][] = getlocal('no_such_operator'); + $page['errors'][] = getlocal('No such Operator'); } $email = $to_restore['vcemail']; @@ -128,8 +128,8 @@ class PasswordRecoveryController extends AbstractController $page = array( 'version' => MIBEW_VERSION, 'showform' => true, - 'title' => getlocal('resetpwd.title'), - 'headertitle' => getlocal('app.title'), + 'title' => getlocal('Change your password'), + 'headertitle' => getlocal('Mibew Messenger'), 'show_small_login' => true, 'fixedwrap' => true, 'errors' => array(), @@ -166,11 +166,11 @@ class PasswordRecoveryController extends AbstractController $password_confirm = $request->request->get('passwordConfirm'); if (!$password) { - $page['errors'][] = no_field('form.field.password'); + $page['errors'][] = no_field('Password'); } if ($password != $password_confirm) { - $page['errors'][] = getlocal('my_settings.error.password_match'); + $page['errors'][] = getlocal('Entered passwords do not match'); } if (count($page['errors']) == 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/Settings/AbstractController.php b/src/mibew/libs/classes/Mibew/Controller/Settings/AbstractController.php index 010a6327..7addce1a 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Settings/AbstractController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Settings/AbstractController.php @@ -42,15 +42,15 @@ abstract class AbstractController extends BaseController $performance = $route == 'settings_performance' || $route == 'settings_performance_save'; - $tabs[getlocal('page_settings.tab.main')] = (!$common) + $tabs[getlocal('General')] = (!$common) ? $this->generateUrl('settings_common') : ''; - $tabs[getlocal('page_settings.tab.features')] = (!$features) + $tabs[getlocal('Optional Services')] = (!$features) ? $this->generateUrl('settings_features') : ''; - $tabs[getlocal('page_settings.tab.performance')] = (!$performance) + $tabs[getlocal('Performance')] = (!$performance) ? $this->generateUrl('settings_performance') : ''; diff --git a/src/mibew/libs/classes/Mibew/Controller/Settings/CommonController.php b/src/mibew/libs/classes/Mibew/Controller/Settings/CommonController.php index aafe1f8f..e1dbcc44 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Settings/CommonController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Settings/CommonController.php @@ -104,7 +104,7 @@ class CommonController extends AbstractController array('cron_key' => $params['cron_key']), UrlGeneratorInterface::ABSOLUTE_URL ); - $page['title'] = getlocal('settings.title'); + $page['title'] = getlocal('Messenger settings'); $page['menuid'] = 'settings'; $page = array_merge($page, prepare_menu($operator)); @@ -152,7 +152,7 @@ class CommonController extends AbstractController } if ($params['email'] && !is_valid_email($params['email'])) { - $errors[] = getlocal('settings.wrong.email'); + $errors[] = getlocal('Enter a valid email address'); } if ($params['geolinkparams']) { @@ -170,7 +170,7 @@ class CommonController extends AbstractController } if (preg_match("/^[0-9A-Za-z]*$/", $params['cron_key']) == 0) { - $errors[] = getlocal('settings.wrong.cronkey'); + $errors[] = getlocal('Use only Latin letters(upper and lower case) and numbers in cron key.'); } // Load styles configs diff --git a/src/mibew/libs/classes/Mibew/Controller/Settings/FeaturesController.php b/src/mibew/libs/classes/Mibew/Controller/Settings/FeaturesController.php index 5ca6d644..df4cf4e0 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Settings/FeaturesController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Settings/FeaturesController.php @@ -54,7 +54,7 @@ class FeaturesController extends AbstractController $page['canmodify'] = is_capable(CAN_ADMINISTRATE, $operator); $page['stored'] = $request->query->get('stored'); - $page['title'] = getlocal('settings.title'); + $page['title'] = getlocal('Messenger settings'); $page['menuid'] = 'settings'; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); diff --git a/src/mibew/libs/classes/Mibew/Controller/Settings/PerformanceController.php b/src/mibew/libs/classes/Mibew/Controller/Settings/PerformanceController.php index 38ff6db4..de17b33a 100644 --- a/src/mibew/libs/classes/Mibew/Controller/Settings/PerformanceController.php +++ b/src/mibew/libs/classes/Mibew/Controller/Settings/PerformanceController.php @@ -86,7 +86,7 @@ class PerformanceController extends AbstractController $page['enabletracking'] = Settings::get('enabletracking'); $page['stored'] = $request->query->get('stored'); - $page['title'] = getlocal("settings.title"); + $page['title'] = getlocal("Messenger settings"); $page['menuid'] = "settings"; $page = array_merge($page, prepare_menu($operator)); @@ -112,59 +112,59 @@ class PerformanceController extends AbstractController $params['online_timeout'] = $request->request->get('onlinetimeout'); if (!is_numeric($params['online_timeout'])) { - $errors[] = wrong_field("settings.onlinetimeout"); + $errors[] = wrong_field("Operator online time threshold"); } $params['updatefrequency_operator'] = $request->request->get('frequencyoperator'); if (!is_numeric($params['updatefrequency_operator'])) { - $errors[] = wrong_field("settings.frequencyoperator"); + $errors[] = wrong_field("Operator's console refresh time"); } $params['updatefrequency_chat'] = $request->request->get('frequencychat'); if (!is_numeric($params['updatefrequency_chat'])) { - $errors[] = wrong_field("settings.frequencychat"); + $errors[] = wrong_field("Chat refresh time"); } $params['max_connections_from_one_host'] = $request->request->get('onehostconnections'); if (!is_numeric($params['max_connections_from_one_host'])) { - $errors[] = getlocal("settings.wrong.onehostconnections"); + $errors[] = getlocal("\"Max number of threads\" field should be a number"); } $params['thread_lifetime'] = $request->request->get('threadlifetime'); if (!is_numeric($params['thread_lifetime'])) { - $errors[] = getlocal("settings.wrong.threadlifetime"); + $errors[] = getlocal("\"Thread lifetime\" field should be a number"); } $params['statistics_aggregation_interval'] = $request->request->get('statistics_aggregation_interval'); if (!is_numeric($params['statistics_aggregation_interval'])) { - $errors[] = wrong_field("settings.statistics_aggregation_interval"); + $errors[] = wrong_field("Statistics aggregation interval"); } if (Settings::get('enabletracking')) { $params['updatefrequency_tracking'] = $request->request->get('frequencytracking'); if (!is_numeric($params['updatefrequency_tracking'])) { - $errors[] = wrong_field("settings.frequencytracking"); + $errors[] = wrong_field("Tracking refresh time"); } $params['visitors_limit'] = $request->request->get('visitorslimit'); if (!is_numeric($params['visitors_limit'])) { - $errors[] = wrong_field("settings.visitorslimit"); + $errors[] = wrong_field("Limit for tracked visitors list"); } $params['invitation_lifetime'] = $request->request->get('invitationlifetime'); if (!is_numeric($params['invitation_lifetime'])) { - $errors[] = wrong_field("settings.invitationlifetime"); + $errors[] = wrong_field("Invitation lifetime"); } $params['tracking_lifetime'] = $request->request->get('trackinglifetime'); if (!is_numeric($params['tracking_lifetime'])) { - $errors[] = wrong_field("settings.trackinglifetime"); + $errors[] = wrong_field("Track lifetime"); } } $params['max_uploaded_file_size'] = $request->request->get('maxuploadedfilesize'); if (!is_numeric($params['max_uploaded_file_size'])) { - $errors[] = wrong_field("settings.maxuploadedfilesize"); + $errors[] = wrong_field("Maximum size of uploaded files"); } if (count($errors) != 0) { diff --git a/src/mibew/libs/classes/Mibew/Controller/StatisticsController.php b/src/mibew/libs/classes/Mibew/Controller/StatisticsController.php index 6e6124f0..3d06f266 100644 --- a/src/mibew/libs/classes/Mibew/Controller/StatisticsController.php +++ b/src/mibew/libs/classes/Mibew/Controller/StatisticsController.php @@ -61,7 +61,7 @@ class StatisticsController extends AbstractController UrlGeneratorInterface::ABSOLUTE_URL ); $page['pageDescription'] = getlocal( - 'statistics.description.full', + 'From this page you can generate a variety of usage reports. Last time statistics was calculated {0}. You can calculate it manually.', array( date_to_text(Settings::get('_last_cron_run')), $cron_uri, @@ -76,7 +76,7 @@ class StatisticsController extends AbstractController $start = $time_interval['start']; $end = $time_interval['end']; if ($start > $end) { - $page['errors'][] = getlocal('statistics.wrong.dates'); + $page['errors'][] = getlocal('You have selected From date after Till date'); } $page = array_merge( @@ -97,7 +97,7 @@ class StatisticsController extends AbstractController } $page['showresults'] = count($page['errors']) == 0; - $page['title'] = getlocal("statistics.title"); + $page['title'] = getlocal("Statistics"); $page['menuid'] = "statistics"; $page = array_merge($page, prepare_menu($operator)); $page['tabs'] = $this->buildTabs($request); @@ -118,16 +118,16 @@ class StatisticsController extends AbstractController $args = $request->query->all(); $type = $request->attributes->get('type'); - $tabs[getlocal('report.bydate.title')] = $type != self::TYPE_BY_DATE + $tabs[getlocal('Usage statistics for each date')] = $type != self::TYPE_BY_DATE ? $this->generateUrl('statistics', ($args + array('type' => self::TYPE_BY_DATE))) : ''; - $tabs[getlocal('report.byoperator.title')] = $type != self::TYPE_BY_OPERATOR + $tabs[getlocal('Threads by operator')] = $type != self::TYPE_BY_OPERATOR ? $this->generateUrl('statistics', ($args + array('type' => self::TYPE_BY_OPERATOR))) : ''; if (Settings::get('enabletracking')) { - $tabs[getlocal('report.bypage.title')] = $type != self::TYPE_BY_PAGE + $tabs[getlocal('Chat threads by page')] = $type != self::TYPE_BY_PAGE ? $this->generateUrl('statistics', ($args + array('type' => self::TYPE_BY_PAGE))) : ''; } diff --git a/src/mibew/libs/classes/Mibew/Controller/StyleController.php b/src/mibew/libs/classes/Mibew/Controller/StyleController.php index 1dd7b7c3..bb02caf6 100644 --- a/src/mibew/libs/classes/Mibew/Controller/StyleController.php +++ b/src/mibew/libs/classes/Mibew/Controller/StyleController.php @@ -56,7 +56,7 @@ class StyleController extends AbstractController $page['formaction'] = $request->getBaseUrl() . $request->getPathInfo(); $page['availablePreviews'] = $style_list; $page['screenshotsList'] = $screenshots; - $page['title'] = getlocal('page.preview.title'); + $page['title'] = getlocal('Site style'); $page['menuid'] = 'styles'; $page = array_merge($page, prepare_menu($operator)); @@ -78,16 +78,16 @@ class StyleController extends AbstractController $tabs = array(); $type = $request->attributes->get('type'); - $tabs[getlocal("page_settings.tab.page_themes")] = ($type != self::TYPE_PAGE) + $tabs[getlocal("Operator pages themes preview")] = ($type != self::TYPE_PAGE) ? $this->generateUrl('style_preview', array('type' => self::TYPE_PAGE)) : ''; - $tabs[getlocal("page_settings.tab.themes")] = ($type != self::TYPE_CHAT) + $tabs[getlocal("Chat themes preview")] = ($type != self::TYPE_CHAT) ? $this->generateUrl('style_preview', array('type' => self::TYPE_CHAT)) : ''; if (Settings::get('enabletracking')) { - $tabs[getlocal("page_settings.tab.invitationthemes")] = ($type != self::TYPE_INVITATION) + $tabs[getlocal("Invitation themes preview")] = ($type != self::TYPE_INVITATION) ? $this->generateUrl('style_preview', array('type' => self::TYPE_INVITATION)) : ''; } diff --git a/src/mibew/libs/classes/Mibew/Controller/UpdatesController.php b/src/mibew/libs/classes/Mibew/Controller/UpdatesController.php index e7f55410..1105c477 100644 --- a/src/mibew/libs/classes/Mibew/Controller/UpdatesController.php +++ b/src/mibew/libs/classes/Mibew/Controller/UpdatesController.php @@ -39,7 +39,7 @@ class UpdatesController extends AbstractController 'localizations' => get_available_locales(), 'phpVersion' => phpversion(), 'version' => MIBEW_VERSION, - 'title' => getlocal("updates.title"), + 'title' => getlocal("Updates"), 'menuid' => "updates", 'errors' => array(), ); diff --git a/src/mibew/libs/classes/Mibew/Controller/UsersController.php b/src/mibew/libs/classes/Mibew/Controller/UsersController.php index 1c38e03a..9134881f 100644 --- a/src/mibew/libs/classes/Mibew/Controller/UsersController.php +++ b/src/mibew/libs/classes/Mibew/Controller/UsersController.php @@ -67,7 +67,7 @@ class UsersController extends AbstractController $page['coreStyles.trackedVisitorWindowParams'] = $style_config['tracked']['visitor_window_params']; $page['coreStyles.banWindowParams'] = $style_config['ban']['window_params']; - $page['title'] = getlocal("clients.title"); + $page['title'] = getlocal("List of visitors waiting"); $page['menuid'] = "users"; // Get additional plugins data diff --git a/src/mibew/libs/classes/Mibew/Controller/WidgetController.php b/src/mibew/libs/classes/Mibew/Controller/WidgetController.php index 1f2d8185..f5539f6d 100644 --- a/src/mibew/libs/classes/Mibew/Controller/WidgetController.php +++ b/src/mibew/libs/classes/Mibew/Controller/WidgetController.php @@ -119,7 +119,7 @@ class WidgetController extends AbstractController 'operatorName' => htmlspecialchars($operator_name), 'avatarUrl' => htmlspecialchars($operator['vcavatar']), 'threadUrl' => $this->generateUrl('chat_user_invitation'), - 'acceptCaption' => getlocal('invitation.accept.caption'), + 'acceptCaption' => getlocal('Answer'), ); $_SESSION['invitation_threadid'] = $thread->id; diff --git a/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php b/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php index 8eb443a3..45fd9f86 100644 --- a/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php +++ b/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php @@ -503,7 +503,7 @@ class ThreadProcessor extends ClientSideProcessor if ($email) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.visitor.email', array($email), CURRENT_LOCALE, true) + getlocal('E-Mail: {0}', array($email), CURRENT_LOCALE, true) ); } @@ -558,7 +558,7 @@ class ThreadProcessor extends ClientSideProcessor unset($_SESSION['mibew_captcha']); if (empty($original) || empty($captcha) || $captcha != $original) { throw new ThreadProcessorException( - getlocal('errors.captcha'), + getlocal('The letters you typed don\'t match the letters that were shown in the picture.'), ThreadProcessorException::ERROR_WRONG_CAPTCHA ); } @@ -573,7 +573,7 @@ class ThreadProcessor extends ClientSideProcessor if (!is_valid_email($email)) { throw new ThreadProcessorException( - wrong_field("form.field.email"), + wrong_field("Your email"), ThreadProcessorException::ERROR_WRONG_EMAIL ); } @@ -617,19 +617,19 @@ class ThreadProcessor extends ClientSideProcessor if ($referrer) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.came.from', array($referrer), CURRENT_LOCALE, true) + getlocal('Vistor came from page {0}', array($referrer), CURRENT_LOCALE, true) ); } if ($email) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.visitor.email', array($email), CURRENT_LOCALE, true) + getlocal('E-Mail: {0}', array($email), CURRENT_LOCALE, true) ); } if ($info) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.visitor.info', array($info), CURRENT_LOCALE, true) + getlocal('Info: {0}', array($info), CURRENT_LOCALE, true) ); } $thread->postMessage(Thread::KIND_USER, $message, array('name' => $name)); diff --git a/src/mibew/libs/classes/Mibew/Thread.php b/src/mibew/libs/classes/Mibew/Thread.php index c9c89e88..7decee03 100644 --- a/src/mibew/libs/classes/Mibew/Thread.php +++ b/src/mibew/libs/classes/Mibew/Thread.php @@ -364,7 +364,7 @@ class Thread // Send message $thread->postMessage( self::KIND_EVENTS, - getlocal('chat.status.user.reopenedthread', null, $thread->locale, true) + getlocal('Visitor joined chat again', null, $thread->locale, true) ); return $thread; @@ -601,7 +601,7 @@ class Thread if ($this->state == self::STATE_CHATTING) { // Send message to user $message_to_post = getlocal( - 'chat.status.operator.dead', + 'Your operator has connection issues. We have moved you to a priorty position in the queue. Sorry for keeping you waiting.', null, $this->locale, true @@ -627,7 +627,7 @@ class Thread // And send a message to operator $message_to_post = getlocal( - 'chat.status.user.dead', + 'Visitor closed chat window', null, $this->locale, true @@ -710,14 +710,14 @@ class Thread // Prepare message if ($this->nextAgent == $operator['operatorid']) { $message_to_post = getlocal( - "chat.status.operator.changed", + "Operator {0} changed operator {1}", array($operator_name, $this->agentName), $this->locale, true ); } else { $message_to_post = getlocal( - "chat.status.operator.returned", + "Operator {0} is back", array($operator_name), $this->locale, true @@ -857,7 +857,7 @@ class Thread $this->postMessage( self::KIND_EVENTS, getlocal( - "chat.status.user.left", + "Visitor {0} left the chat", array($this->userName), $this->locale, true @@ -868,7 +868,7 @@ class Thread $this->postMessage( self::KIND_FOR_AGENT, getlocal( - 'chat.visitor.invitation.canceled', + 'Operator canceled invitation', null, $this->locale, true @@ -878,7 +878,7 @@ class Thread $this->postMessage( self::KIND_EVENTS, getlocal( - "chat.status.operator.left", + "Operator {0} left the chat", array($this->agentName), $this->locale, true @@ -936,14 +936,14 @@ class Thread if ($this->state == self::STATE_WAITING) { if ($operator['operatorid'] != $this->agentId) { $message = getlocal( - "chat.status.operator.changed", + "Operator {0} changed operator {1}", array($operator_name, $this->agentName), $this->locale, true ); } else { $message = getlocal( - "chat.status.operator.returned", + "Operator {0} is back", array($operator_name), $this->locale, true @@ -951,7 +951,7 @@ class Thread } } else { $message = getlocal( - "chat.status.operator.joined", + "Operator {0} joined the chat", array($operator_name), $this->locale, true @@ -962,7 +962,7 @@ class Thread if ($operator['operatorid'] != $this->agentId) { $take_thread = true; $message = getlocal( - "chat.status.operator.changed", + "Operator {0} changed operator {1}", array($operator_name, $this->agentName), $this->locale, true @@ -1013,7 +1013,7 @@ class Thread // Send message about renaming $message = getlocal( - "chat.status.user.changedname", + "The visitor changed their name {0} to {1}", array($old_name, $new_name), $this->locale, true diff --git a/src/mibew/libs/common/datetime.php b/src/mibew/libs/common/datetime.php index 21194604..43cb1f43 100644 --- a/src/mibew/libs/common/datetime.php +++ b/src/mibew/libs/common/datetime.php @@ -72,16 +72,16 @@ function set_form_date($utime, $prefix) function date_to_text($unixtime) { if ($unixtime < 60 * 60 * 24 * 30) { - return getlocal("time.never"); + return getlocal("Never"); } $then = getdate($unixtime); $now = getdate(); if ($then['yday'] == $now['yday'] && $then['year'] == $now['year']) { - return getlocal("time.today.at", array(format_date($unixtime, 'time'))); + return getlocal("Today at {0}", array(format_date($unixtime, 'time'))); } elseif (($then['yday'] + 1) == $now['yday'] && $then['year'] == $now['year']) { - return getlocal("time.yesterday.at", array(format_date($unixtime, 'time'))); + return getlocal("Yesterday at {0}", array(format_date($unixtime, 'time'))); } else { return format_date($unixtime, 'full'); } diff --git a/src/mibew/libs/common/locale.php b/src/mibew/libs/common/locale.php index 85267998..b7190e0c 100644 --- a/src/mibew/libs/common/locale.php +++ b/src/mibew/libs/common/locale.php @@ -803,7 +803,7 @@ function get_localized_string($string, $locale) return get_localized_string($string, 'en'); } - return "!" . $string; + return $string; } /* prepares for Javascript string */ diff --git a/src/mibew/libs/common/response.php b/src/mibew/libs/common/response.php index fe4c15df..3bc52c0d 100644 --- a/src/mibew/libs/common/response.php +++ b/src/mibew/libs/common/response.php @@ -201,17 +201,17 @@ function get_plugins_data($page_name) function no_field($key) { - return getlocal('errors.required', array(getlocal($key))); + return getlocal('Please fill "{0}".', array(getlocal($key))); } function failed_uploading_file($filename, $key) { - return getlocal('errors.failed.uploading.file', array($filename, getlocal($key))); + return getlocal('Error uploading file "{0}": {1}.', array($filename, getlocal($key))); } function wrong_field($key) { - return getlocal('errors.wrong_field', array(getlocal($key))); + return getlocal('Please fill "{0}" correctly.', array(getlocal($key))); } function add_params($servlet, $params) diff --git a/src/mibew/libs/getcode.php b/src/mibew/libs/getcode.php index 752dcf10..f5d75cc8 100644 --- a/src/mibew/libs/getcode.php +++ b/src/mibew/libs/getcode.php @@ -147,7 +147,7 @@ function verifyparam_groupid($param_id, &$errors) if ($group_id) { $group = group_by_id($group_id); if (!$group) { - $errors[] = getlocal("page.group.no_such"); + $errors[] = getlocal("No such group"); $group_id = ""; } } @@ -166,7 +166,7 @@ function get_groups_list() $all_groups = get_all_groups(); $result[] = array( 'groupid' => '', - 'vclocalname' => getlocal("page.gen_button.default_group"), + 'vclocalname' => getlocal("-all operators-"), 'level' => 0, ); foreach ($all_groups as $g) { diff --git a/src/mibew/libs/groups.php b/src/mibew/libs/groups.php index af1f0e25..c5d1c889 100644 --- a/src/mibew/libs/groups.php +++ b/src/mibew/libs/groups.php @@ -124,7 +124,7 @@ function get_available_parent_groups($skip_group) $result[] = array( 'groupid' => '', 'level' => '', - 'vclocalname' => getlocal("form.field.groupparent.root"), + 'vclocalname' => getlocal("-none-"), ); $db = Database::getInstance(); diff --git a/src/mibew/libs/invitation.php b/src/mibew/libs/invitation.php index be6e247d..562e0c98 100644 --- a/src/mibew/libs/invitation.php +++ b/src/mibew/libs/invitation.php @@ -120,7 +120,7 @@ function invitation_invite($visitor_id, $operator) $thread->postMessage( Thread::KIND_FOR_AGENT, getlocal( - 'chat.visitor.invitation.sent', + 'Operator {0} invites visitor at {1} page', array($operator_name, $last_visited_page), CURRENT_LOCALE, true @@ -128,7 +128,7 @@ function invitation_invite($visitor_id, $operator) ); $thread->postMessage( Thread::KIND_AGENT, - getlocal('invitation.message', null, CURRENT_LOCALE, true), + getlocal('Hello, how can I help you?', null, CURRENT_LOCALE, true), array( 'name' => $operator_name, 'operator_id' => $operator['operatorid'], @@ -202,7 +202,7 @@ function invitation_reject($visitor_id) if ($thread) { $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.visitor.invitation.rejected', null, CURRENT_LOCALE, true) + getlocal('Visitor rejected invitation', null, CURRENT_LOCALE, true) ); } @@ -272,7 +272,7 @@ function invitation_close_old() $thread = Thread::createFromDbInfo($thread_info); $thread->postMessage( Thread::KIND_FOR_AGENT, - getlocal('chat.visitor.invitation.ignored', null, $thread->locale, true) + getlocal('Visitor ignored invitation and it was closed automatically', null, $thread->locale, true) ); unset($thread); } diff --git a/src/mibew/libs/operator.php b/src/mibew/libs/operator.php index 4c79f8b9..7cb2906a 100644 --- a/src/mibew/libs/operator.php +++ b/src/mibew/libs/operator.php @@ -572,8 +572,8 @@ function setup_redirect_links(UrlGeneratorInterface $url_generator, $threadid, $ $params['nextAgent'] = $agent['operatorid']; $status = $agent['time'] < Settings::get('online_timeout') ? ($agent['istatus'] == 0 - ? getlocal("char.redirect.operator.online_suff") - : getlocal("char.redirect.operator.away_suff")) + ? getlocal("(online)") + : getlocal("(away)")) : ""; $agent_list .= "
  • generate('chat_operator_redirect', $params) . "\" title=\"" . get_operator_name($agent) . "\">" @@ -588,8 +588,8 @@ function setup_redirect_links(UrlGeneratorInterface $url_generator, $threadid, $ foreach ($groups as $group) { $params['nextGroup'] = $group['groupid']; $status = group_is_online($group) - ? getlocal("char.redirect.operator.online_suff") - : (group_is_away($group) ? getlocal("char.redirect.operator.away_suff") : ""); + ? getlocal("(online)") + : (group_is_away($group) ? getlocal("(away)") : ""); $group_list .= "
  • generate('chat_operator_redirect', $params) . "\" title=\"" . get_group_name($group) . "\">" . get_group_name($group) @@ -648,7 +648,7 @@ function prepare_menu($operator, $has_right = true) $result['showMenu'] = true; $result['operator'] = get_operator_name($operator); $result['goOnlineLink'] = getlocal( - "menu.goonline", + "You are Offline.
    Connect...", array(MIBEW_WEB_ROOT . "/operator/users?nomenu") ); if ($has_right) { diff --git a/src/mibew/libs/pagination.php b/src/mibew/libs/pagination.php index 09e0ba96..0dcb49ea 100644 --- a/src/mibew/libs/pagination.php +++ b/src/mibew/libs/pagination.php @@ -149,7 +149,7 @@ function setup_pagination($items, $default_items_per_page = 15) function generate_pagination($style_path, $pagination, $bottom = true) { $result = getlocal( - 'tag.pagination.info', + 'Page {0} of {1}, {2}-{3} from {4}', array( $pagination['page'], $pagination['total'], @@ -177,7 +177,7 @@ function generate_pagination($style_path, $pagination, $bottom = true) generate_pagination_image( $style_path, "prevpage", - getlocal("tag.pagination.previous") + getlocal("previous") ) ) . PAGINATION_SPACING; } @@ -200,7 +200,7 @@ function generate_pagination($style_path, $pagination, $bottom = true) generate_pagination_image( $style_path, "nextpage", - getlocal("tag.pagination.next") + getlocal("next") ) ); } diff --git a/src/mibew/locales/en/translation.po b/src/mibew/locales/en/translation.po index 118d9efa..03ef1b96 100644 --- a/src/mibew/locales/en/translation.po +++ b/src/mibew/locales/en/translation.po @@ -1,1326 +1 @@ -msgid "admin.content.client_agents" -msgstr "Create or delete company operators. Manage their permissions." -msgid "admin.content.client_gen_button" -msgstr "Button HTML code generation." -msgid "admin.content.client_settings" -msgstr "Specify options affecting chat window and common system behavior." -msgid "admin.content.description" -msgstr "Functions available for site operators." -msgid "agent.not_logged_in" -msgstr "Your session has expired. Please login again" -msgid "app.descr" -msgstr "Mibew Messenger is an open-source live support application." -msgid "app.title" -msgstr "Mibew Messenger" -msgid "ban.error.duplicate" -msgstr "The specified address is already in use. Click here if you want to edit it." -msgid "button.delete" -msgstr "Delete" -msgid "button.enter" -msgstr "Enter" -msgid "button.offline.bottom" -msgstr "Leave your message" -msgid "button.offline.top" -msgstr "Site consultant" -msgid "button.offline" -msgstr "OFFLINE" -msgid "button.online.bottom" -msgstr "Ask your question" -msgid "button.online.top" -msgstr "Site consultant" -msgid "button.online" -msgstr "ONLINE" -msgid "button.save" -msgstr "Save" -msgid "button.search" -msgstr "Search" -msgid "canned.actions.del" -msgstr "remove" -msgid "canned.actions.edit" -msgstr "edit" -msgid "canned.actions" -msgstr "Modify" -msgid "canned.add" -msgstr "Add message..." -msgid "canned.descr" -msgstr "Edit messages that you frequently type into the chat." -msgid "canned.group" -msgstr "For group:" -msgid "canned.locale" -msgstr "For language:" -msgid "canned.message_title" -msgstr "Title" -msgid "canned.title" -msgstr "Canned Messages" -msgid "cannededit.descr" -msgstr "Edit an existing message." -msgid "cannededit.done" -msgstr "Saved" -msgid "cannededit.message" -msgstr "Message" -msgid "cannededit.no_such" -msgstr "No such message" -msgid "cannededit.title" -msgstr "Edit Message" -msgid "cannednew.descr" -msgstr "Add new message." -msgid "cannednew.title" -msgstr "New Message" -msgid "char.redirect.operator.away_suff" -msgstr "(away)" -msgid "char.redirect.operator.online_suff" -msgstr "(online)" -msgid "chat.came.from" -msgstr "Vistor came from page {0}" -msgid "chat.client.changename" -msgstr "Change name" -msgid "chat.client.name" -msgstr "You are" -msgid "chat.client.spam.prefix" -msgstr "[spam]" -msgid "chat.client.visited.page" -msgstr "Visitor navigated to {0}" -msgid "chat.close.confirmation" -msgstr "Are you sure want to leave chat?" -msgid "chat.default.username" -msgstr "Guest" -msgid "chat.error_page.close" -msgstr "Close..." -msgid "chat.error_page.head" -msgstr "Error occurred:" -msgid "chat.error_page.title" -msgstr "Error" -msgid "chat.mailthread.sent.close" -msgstr "Close..." -msgid "chat.mailthread.sent.closewindow" -msgstr "Click on this link to close the window" -msgid "chat.mailthread.sent.content" -msgstr "A history of your chat was sent to address {0}" -msgid "chat.mailthread.sent.title" -msgstr "Sent" -msgid "chat.redirect.back" -msgstr "Back..." -msgid "chat.redirect.cannot" -msgstr "You are not chatting with the visitor." -msgid "chat.redirect.choose" -msgstr "Choose:" -msgid "chat.redirect.group" -msgstr "Group:" -msgid "chat.redirect.operator" -msgstr "Operator:" -msgid "chat.redirect.title" -msgstr "Redirect to
    another operator" -msgid "chat.redirected.close" -msgstr "Close..." -msgid "chat.redirected.closewindow" -msgstr "Click to close the window" -msgid "chat.redirected.content" -msgstr "The visitor has been placed in the priorty queue of the operator {0}." -msgid "chat.redirected.group.content" -msgstr "The visitor has been placed in a priorty queue of the group {0}." -msgid "chat.redirected.title" -msgstr "The visitor has been redirected to another operator" -msgid "chat.requested_operator.offline" -msgstr "Thank you for contacting us. We are sorry, but requested operator {0} is offline. Another operator will be with you shortly." -msgid "chat.status.operator.changed" -msgstr "Operator {0} changed operator {1}" -msgid "chat.status.operator.dead" -msgstr "Your operator has connection issues. We have moved you to a priorty position in the queue. Sorry for keeping you waiting." -msgid "chat.status.operator.joined" -msgstr "Operator {0} joined the chat" -msgid "chat.status.operator.left" -msgstr "Operator {0} left the chat" -msgid "chat.status.operator.redirect" -msgstr "Operator {0} redirected you to another operator. Please wait a while." -msgid "chat.status.operator.returned" -msgstr "Operator {0} is back" -msgid "chat.status.user.changedname" -msgstr "The visitor changed their name {0} to {1}" -msgid "chat.status.user.dead" -msgstr "Visitor closed chat window" -msgid "chat.status.user.left" -msgstr "Visitor {0} left the chat" -msgid "chat.status.user.reopenedthread" -msgstr "Visitor joined chat again" -msgid "chat.thread.state_chatting_with_agent" -msgstr "In chat" -msgid "chat.thread.state_closed" -msgstr "Closed" -msgid "chat.thread.state_loading" -msgstr "Loading" -msgid "chat.thread.state_wait" -msgstr "In queue" -msgid "chat.thread.state_wait_for_another_agent" -msgstr "Waiting for operator" -msgid "chat.visitor.email" -msgstr "E-Mail: {0}" -msgid "chat.visitor.info" -msgstr "Info: {0}" -msgid "chat.visitor.invitation.accepted" -msgstr "Visitor accepted invitation from operator {0}" -msgid "chat.visitor.invitation.canceled" -msgstr "Operator canceled invitation" -msgid "chat.visitor.invitation.ignored" -msgstr "Visitor ignored invitation and it was closed automatically" -msgid "chat.visitor.invitation.rejected" -msgstr "Visitor rejected invitation" -msgid "chat.visitor.invitation.sent" -msgstr "Operator {0} invites visitor at {1} page" -msgid "chat.wait" -msgstr "Thank you for contacting us. An operator will be with you shortly." -msgid "chat.window.chatting_with" -msgstr "You are chatting with:" -msgid "chat.window.close_title" -msgstr "Close chat" -msgid "chat.window.poweredby" -msgstr "Powered by:" -msgid "chat.window.predefined.select_answer" -msgstr "Select answer..." -msgid "chat.window.product_name" -msgstr "Mibew Messenger" -msgid "chat.window.send_message" -msgstr "Send message" -msgid "chat.window.send_message_short" -msgstr "Send ({0})" -msgid "chat.window.title.agent" -msgstr "Mibew Messenger" -msgid "chat.window.title.user" -msgstr "Mibew Messenger" -msgid "chat.window.toolbar.mail_history" -msgstr "Send chat history by e-mail" -msgid "chat.window.toolbar.redirect_user" -msgstr "Redirect visitor to another operator" -msgid "chat.window.toolbar.refresh" -msgstr "Refresh" -msgid "chat.window.toolbar.mute" -msgstr "Sound on/off" -msgid "chat.window.toolbar.turn_off_sound" -msgstr "Turn off sound" -msgid "chat.window.toolbar.turn_on_sound" -msgstr "Turn on sound" -msgid "clients.how_to" -msgstr "To answer the visitor click their name in the list." -msgid "clients.intro" -msgstr "This page displays a list of visitors who are waiting." -msgid "clients.no_clients" -msgstr "The list of visitors waiting is empty" -msgid "clients.queue.chat" -msgstr "Visitors in dialogs" -msgid "clients.queue.prio" -msgstr "Priority visitors' queue" -msgid "clients.queue.wait" -msgstr "Waiting an operator for the first time" -msgid "clients.title" -msgstr "List of visitors waiting" -msgid "common.asterisk_explanation" -msgstr "mandatory fields" -msgid "company.title" -msgstr "Mibew Messenger Community" -msgid "confirm.take.head" -msgstr "Change operator" -msgid "confirm.take.message" -msgstr "Visitor {0} is already being assisted by {1}.
    Are you really sure you want to start chatting the visitor?" -msgid "confirm.take.no" -msgstr "No. Close the window" -msgid "confirm.take.yes" -msgstr "Yes. I'm sure" -msgid "content.blocked" -msgstr "Here you can block malicious visitors." -msgid "content.history" -msgstr "Search the dialogs history." -msgid "content.logoff" -msgstr "Log out of the system." -msgid "data.saved" -msgstr "Changes saved" -msgid "demo.chat.question" -msgstr "There are so many browsers to choose from. Which ones do you recommend?" -msgid "demo.chat.welcome" -msgstr "Hello. How may I help you?" -msgid "edit.item" -msgstr "edit" -msgid "errors.captcha" -msgstr "The letters you typed don't match the letters that were shown in the picture." -msgid "errors.failed.uploading.file" -msgstr "Error uploading file \"{0}\": {1}." -msgid "errors.file.move.error" -msgstr "Error moving file" -msgid "errors.file.size.exceeded" -msgstr "Uploaded file size exceeded" -msgid "errors.header" -msgstr "Correct the mistakes:" -msgid "errors.invalid.file.type" -msgstr "Invalid file type" -msgid "errors.required" -msgstr "Please fill \"{0}\"." -msgid "errors.wrong_field" -msgstr "Please fill \"{0}\" correctly." -msgid "error.no_password" -msgstr "This is your first time logging in and your password is blank. For security reasons you have to change it." -msgid "error.no_password.visit_profile" -msgstr "Visit your Profile Page." -msgid "features.saved" -msgstr "Features activated" -msgid "form.field.address.description" -msgstr "Ex: 127.0.0.1 or example.com" -msgid "form.field.address" -msgstr "Visitor's Address" -msgid "form.field.agent_code.description" -msgstr "Use to start chat with determined operator" -msgid "form.field.agent_code" -msgstr "Code" -msgid "form.field.agent_commonname.description" -msgstr "This name will be seen by your visitors." -msgid "form.field.agent_commonname" -msgstr "International name (Latin)" -msgid "form.field.agent_name.description" -msgstr "This name will be seen by your visitors." -msgid "form.field.agent_name" -msgstr "Name" -msgid "form.field.avatar.current.description" -msgstr "Your avatar image." -msgid "form.field.avatar.current" -msgstr "Current avatar image" -msgid "form.field.avatar.upload.description" -msgstr "Choose the avatar file to upload.
    The picture size should not exceed 100x100 px." -msgid "form.field.avatar.upload" -msgstr "Upload avatar" -msgid "form.field.ban_comment.description" -msgstr "Reason for block" -msgid "form.field.ban_comment" -msgstr "Comment" -msgid "form.field.ban_days.description" -msgstr "Numbers of days this address is blocked" -msgid "form.field.ban_days" -msgstr "Days" -msgid "form.field.department" -msgstr "Choose Department:" -msgid "form.field.department.description" -msgstr "Department description:" -msgid "form.field.email" -msgstr "Your email" -msgid "form.field.groupcommondesc.description" -msgstr "Description in English." -msgid "form.field.groupcommondesc" -msgstr "International description" -msgid "form.field.groupcommonname.description" -msgstr "Name in English." -msgid "form.field.groupcommonname" -msgstr "International name" -msgid "form.field.groupdesc.description" -msgstr "Description of the group." -msgid "form.field.groupdesc" -msgstr "Description" -msgid "form.field.groupemail.description" -msgstr "Group email for notifications. Leave empty to use the default address." -msgid "form.field.groupname.description" -msgstr "Name to identify the group." -msgid "form.field.groupname" -msgstr "Name" -msgid "form.field.groupparent" -msgstr "Parent group" -msgid "form.field.groupparent.description" -msgstr "Groups can be organized in a hierarchical structure" -msgid "form.field.groupparent.root" -msgstr "-none-" -msgid "form.field.groupweight" -msgstr "Weight" -msgid "form.field.groupweight.description" -msgstr "Groups with lower weight display higher in groups list. Group weight is a positive integer value." -msgid "form.field.login.description" -msgstr "Login can consist of small Latin letters and underscore." -msgid "form.field.login" -msgstr "Login" -msgid "form.field.mail.description" -msgstr "For notifications and password retrieval." -msgid "form.field.mail" -msgstr "E-mail" -msgid "form.field.mail_template_body" -msgstr "Mail body" -msgid "form.field.mail_template_subject" -msgstr "Mail subject" -msgid "form.field.message" -msgstr "Message" -msgid "form.field.name" -msgstr "Your name" -msgid "form.field.password.description" -msgstr "Enter a new password or leave the field empty to keep the previous one." -msgid "form.field.password" -msgstr "Password" -msgid "form.field.password_confirm.description" -msgstr "Confirm new password." -msgid "form.field.password_confirm" -msgstr "Confirmation" -msgid "form.field.title" -msgstr "Title" -msgid "form.field.translation" -msgstr "Translation" -msgid "harderrors.header" -msgstr "Cannot execute:" -msgid "install.0.app" -msgstr "Application path is {0}" -msgid "install.0.package" -msgstr "Mibew package is valid." -msgid "install.0.php" -msgstr "PHP version {0}" -msgid "install.1.connected" -msgstr "You are connected to MySQL server version {0}" -msgid "install.2.create" -msgstr "Create database \"{0}\"" -msgid "install.2.db_exists" -msgstr "Database \"{0}\" is created." -msgid "install.2.notice" -msgstr "The database was not found on the server. If you have permissions to create it now, click on the following link." -msgid "install.3.create" -msgstr "Create required tables." -msgid "install.3.tables_exist" -msgstr "Required tables are created." -msgid "install.4.create" -msgstr "Update tables" -msgid "install.4.done" -msgstr "Tables structure is up to date." -msgid "install.4.notice" -msgstr "Structure of your tables should be adjusted for new version of Messenger." -msgid "install.5.newmessage" -msgstr "New Message" -msgid "install.5.newvisitor" -msgstr "New Visitor" -msgid "install.5.text" -msgstr "Click to check the sound: {0} and {1}" -msgid "install.bad_checksum" -msgstr "Checksum differs for {0}" -msgid "install.cannot_read" -msgstr "Cannot read file {0}" -msgid "install.check_files" -msgstr "Please, re-upload files to the server." -msgid "install.check_permissions" -msgstr "Insufficient file permissions {0}" -msgid "install.connection.error" -msgstr "Could not connect. Please check server settings in config.php. Error: {0}" -msgid "install.done" -msgstr "Completed:" -msgid "install.err.back" -msgstr "Resolve the problem and try again. Press back to return to the wizard." -msgid "install.err.title" -msgstr "Problem" -msgid "install.kill_tables.notice" -msgstr "Impossible to update tables structure. Try to do it manually or recreate all tables (warning: all your data will be lost)." -msgid "install.kill_tables" -msgstr "Drop existing tables from database" -msgid "install.license" -msgstr "Software license agreement" -msgid "install.message" -msgstr "Follow the wizard to setup your database." -msgid "install.newfeatures" -msgstr "Congratulations! You now have Mibew Messenger {1} installed. Turn on more features on the Optional services page." -msgid "install.next" -msgstr "Next step:" -msgid "install.no_file" -msgstr "File is absent: {0}" -msgid "install.title" -msgstr "Installation" -msgid "install.updatedb" -msgstr "Please run the Update wizard to adjust your database." -msgid "installed.login_link" -msgstr "Proceed to the login page" -msgid "installed.message" -msgstr "Application installed successfully." -msgid "installed.notice" -msgstr "You can logon as admin with empty password.

    !!! For security reasons please change your password immediately and remove the {0} folder from your server." -msgid "invitation.message" -msgstr "Hello, how can I help you?" -msgid "invitation.accept.caption" -msgstr "Answer" -msgid "lang.choose" -msgstr "Choose your language" -msgid "leavemessage.close" -msgstr "Close" -msgid "leavemessage.descr" -msgstr "Sorry. None of the support team is available at the moment.
    Please leave a message and someone will get back to you shortly." -msgid "leavemessage.perform" -msgstr "Submit" -msgid "leavemessage.sent.message" -msgstr "Thank you for your message. We'll answer your query by email as soon as possible." -msgid "leavemessage.sent.title" -msgstr "Your message has been sent" -msgid "leavemessage.title" -msgstr "Leave your message" -msgid "leftMenu.client_agents" -msgstr "Operators" -msgid "leftMenu.client_gen_button" -msgstr "Button code" -msgid "leftMenu.client_settings" -msgstr "Settings" -msgid "license.title" -msgstr "License" -msgid "mail_template.actions" -msgstr "Modify" -msgid "mail_template.actions.edit" -msgstr "edit" -msgid "mail_template.body" -msgstr "Mail body" -msgid "mail_template.intro" -msgstr "On this page you can edit mail templates which are used in the system." -msgid "mail_template.locale" -msgstr "For language:" -msgid "mail_template.name" -msgstr "Machine name" -msgid "mail_template.saved" -msgstr "Changes saved" -msgid "mail_template.subject" -msgstr "Mail subject" -msgid "mail_template.title" -msgstr "Mail templates" -msgid "mailthread.close" -msgstr "Close..." -msgid "mailthread.enter_email" -msgstr "Enter your email:" -msgid "mailthread.perform" -msgstr "Send" -msgid "mailthread.title" -msgstr "Send chat history
    by mail" -msgid "menu.agents" -msgstr "Operators list" -msgid "menu.blocked" -msgstr "Blocked visitors" -msgid "menu.canned" -msgstr "Canned Messages" -msgid "menu.goonline" -msgstr "You are Offline.
    Connect.." -msgid "menu.groups.content" -msgstr "Department or skill based groups." -msgid "menu.groups" -msgstr "Groups" -msgid "menu.locale.content" -msgstr "Change locale." -msgid "menu.locale" -msgstr "Language" -msgid "menu.mail_templates" -msgstr "Mail templates" -msgid "menu.main" -msgstr "Main" -msgid "menu.operator" -msgstr "You are {0}" -msgid "menu.profile.content" -msgstr "You can change your personal information on this page." -msgid "menu.profile" -msgstr "Profile" -msgid "menu.styles" -msgstr "Styles" -msgid "menu.translate" -msgstr "Localize" -msgid "menu.updates.content" -msgstr "Check for news and updates." -msgid "menu.updates" -msgstr "Updates" -msgid "my_settings.error.no_password" -msgstr "No Password set for the Administrator" -msgid "my_settings.error.password_match" -msgstr "Entered passwords do not match" -msgid "no_such_operator" -msgstr "No such Operator" -msgid "not_found" -msgstr "-not found-" -msgid "operator.group.no_description" -msgstr "<no description>" -msgid "operator.groups.intro" -msgstr "Choose groups according to operator skills." -msgid "operator.groups.title" -msgstr "Operator groups" -msgid "page.analysis.search.head_browser" -msgstr "Browser" -msgid "page.analysis.search.head_group" -msgstr "Group" -msgid "page.analysis.search.head_host" -msgstr "Visitor's address" -msgid "page.analysis.search.head_messages" -msgstr "Visitor's messages" -msgid "page.analysis.search.head_name" -msgstr "Name" -msgid "page.analysis.search.head_operator" -msgstr "Operator" -msgid "page.analysis.search.head_time" -msgstr "Time in chat" -msgid "page.analysis.trackedpath.title" -msgstr "Tracked visitor's path" -msgid "page.analysis.userhistory.intro" -msgstr "You can find the chat history of your visitors here." -msgid "page.analysis.userhistory.title" -msgstr "Visit history" -msgid "page.chat.old_browser.close" -msgstr "Close..." -msgid "page.chat.old_browser.problem" -msgstr "Your web browser is not fully supported. \nPlease, use one of the following web browsers:" -msgid "page.chat.old_browser.title" -msgstr "Please use a more recent browser" -msgid "page.gen_button.button" -msgstr "button" -msgid "page.gen_button.choose_group" -msgstr "Code for group" -msgid "page.gen_button.choose_image" -msgstr "Choose image" -msgid "page.gen_button.choose_invitationstyle" -msgstr "Invitation style" -msgid "page.gen_button.choose_locale" -msgstr "Code for language" -msgid "page.gen_button.choose_style" -msgstr "Chat window style" -msgid "page.gen_button.choose_type" -msgstr "Generating code type" -msgid "page.gen_button.code.description" -msgstr "Caution! Please don't change
    the code manually because
    we don't guarantee that
    it will work!" -msgid "page.gen_button.code" -msgstr "HTML code" -msgid "page.gen_button.default_group" -msgstr "-all operators-" -msgid "page.gen_button.include_site_name" -msgstr "Include host name into the code" -msgid "page.gen_button.intro" -msgstr "You can generate HTML code to place at your site here." -msgid "page.gen_button.modsecurity" -msgstr "Compatibility with mod_security (modsecurity.org), turn on only if you have problems with it" -msgid "page.gen_button.operator_code" -msgstr "operator code field" -msgid "page.gen_button.sample" -msgstr "Example" -msgid "page.gen_button.secure_links" -msgstr "Use secure links (https)" -msgid "page.gen_button.text_link" -msgstr "text link" -msgid "page.gen_button.text_link_text" -msgstr "Click to chat" -msgid "page.gen_button.title" -msgstr "Button HTML code generation" -msgid "page.group.create_new" -msgstr "Create new group here." -msgid "page.group.duplicate_name" -msgstr "Please choose another name because a group with that name already exists." -msgid "page.group.extrafields.title" -msgstr "The fields that located below are extra fields. These fields are only available for the top level groups and override corresponding system settings if specified." -msgid "page.group.intro" -msgstr "On this page you can edit group details." -msgid "page.group.membersnum" -msgstr "Operators" -msgid "page.group.no_such" -msgstr "No such group" -msgid "page.group.title" -msgstr "Group details" -msgid "page.groupmembers.intro" -msgstr "View and edit the member list." -msgid "page.groupmembers.title" -msgstr "Members" -msgid "page.groups.confirm" -msgstr "Are you sure that you want to delete the group \"{0}\"?" -msgid "page.groups.error.cannot_delete" -msgstr "Cannot delete: wrong argument." -msgid "page.groups.error.forbidden_remove" -msgstr "You are not allowed to remove groups." -msgid "page.groups.intro" -msgstr "This page displays a list of groups. Each group can have separate button and canned responses." -msgid "page.groups.isaway" -msgstr "Away" -msgid "page.groups.isonline" -msgstr "Online" -msgid "page.groups.new" -msgstr "Create new group" -msgid "page.groups.sort" -msgstr "Sort by:" -msgid "page.groups.sortdirection" -msgstr "Sort direction:" -msgid "page.groups.sortdirection.desc" -msgstr "descending" -msgid "page.groups.sortdirection.asc" -msgstr "ascending" -msgid "page.groups.title" -msgstr "Groups" -msgid "page.groups.weight" -msgstr "Weight" -msgid "page.preview.agentchat" -msgstr "Chat window (operator-mode)" -msgid "page.preview.agentrochat" -msgstr "View Chat window (operator in read-only mode)" -msgid "page.preview.chatsimple" -msgstr "Simple chat window. Refresh to post messages (IE 5, Opera 7)" -msgid "page.preview.choose" -msgstr "Choose style" -msgid "page.preview.choosetpl" -msgstr "Choose template" -msgid "page.preview.error" -msgstr "Error window" -msgid "page.preview.intro" -msgstr "You can view the list of themes you currently have installed here." -msgid "page.preview.leavemessage" -msgstr "Leave message window" -msgid "page.preview.leavemessagesent" -msgstr "\"Message is delivered\" window" -msgid "page.preview.mail" -msgstr "Mail thread window" -msgid "page.preview.mailsent" -msgstr "\"Mail is sent\" window" -msgid "page.preview.nochat" -msgstr "List of supported browsers window" -msgid "page.preview.redirect" -msgstr "Redirect visitor to another operator window" -msgid "page.preview.redirected" -msgstr "\"Visitor is redirected\" window" -msgid "page.preview.showerr" -msgstr "Show errors" -msgid "page.preview.style_default" -msgstr "-from general settings-" -msgid "page.preview.survey" -msgstr "Pre-chat survey" -msgid "page.preview.title" -msgstr "Site style" -msgid "page.preview.userchat" -msgstr "Chat window (user-mode)" -msgid "page.translate.descr" -msgstr "If you don't agree with the translation please send us an update." -msgid "page.translate.done" -msgstr "Your translation is saved." -msgid "page.translate.one" -msgstr "Enter your translation." -msgid "page.translate.title" -msgstr "Translations" -msgid "page_agent.cannot_modify" -msgstr "You are not allowed to change this person's profile." -msgid "page_agent.clear_avatar" -msgstr "Remove avatar" -msgid "page_agent.create_new" -msgstr "You can create a new operator here." -msgid "page_agent.error.duplicate_login" -msgstr "Please choose another login because an operator with that login is already registered in the system." -msgid "page_agent.error.duplicate_email" -msgstr "Please choose another email because an operator with that email is already registered in the system." -msgid "page_agent.error.forbidden_create" -msgstr "You are not allowed to create operators." -msgid "page_agent.error.wrong_login" -msgstr "Login should contain only latin characters, numbers and underscore symbol." -msgid "page_agent.error.wrong_agent_code" -msgstr "Code should contain only latin characters, numbers and underscore symbol." -msgid "page_agent.intro" -msgstr "Edit general operator settings." -msgid "page_agent.tab.avatar" -msgstr "Photo" -msgid "page_agent.tab.groups" -msgstr "Groups" -msgid "page_agent.tab.main" -msgstr "General" -msgid "page_agent.tab.permissions" -msgstr "Permissions" -msgid "page_agent.title" -msgstr "Operator details" -msgid "page_agents.agent_name" -msgstr "Name" -msgid "page_agents.agents" -msgstr "Full list of operators:" -msgid "page_agents.commonname" -msgstr "International name" -msgid "page_agents.confirm" -msgstr "Are you sure that you want to delete operator \"{0}\"?" -msgid "page_agents.cannot.disable.admin" -msgstr "Cannot disable \"admin\"." -msgid "page_agents.cannot.disable.self" -msgstr "Cannot disable self." -msgid "page_agents.disable.agent" -msgstr "disable" -msgid "page_agents.disable.not.allowed" -msgstr "You are not allowed to disable operators." -msgid "page_agents.enable.agent" -msgstr "enable" -msgid "page_agents.enable.not.allowed" -msgstr "You are not allowed to enable operators." -msgid "page_agents.error.cannot_remove_admin" -msgstr "Cannot remove operator \"admin\"." -msgid "page_agents.error.cannot_remove_self" -msgstr "Cannot remove self." -msgid "page_agents.error.forbidden_remove" -msgstr "You are not allowed to remove operators." -msgid "page_agents.intro" -msgstr "This page displays a list of company operators." -msgid "page_agents.isaway" -msgstr "Away" -msgid "page_agents.isonline" -msgstr "Online" -msgid "page_agents.login" -msgstr "Login" -msgid "page_agents.new_agent" -msgstr "Add operator..." -msgid "page_agents.sort" -msgstr "Sort by:" -msgid "page_agents.sortdirection" -msgstr "Sort direction:" -msgid "page_agents.sortdirection.desc" -msgstr "descending" -msgid "page_agents.sortdirection.asc" -msgstr "ascending" -msgid "page_agents.status" -msgstr "Last active" -msgid "page_agents.title" -msgstr "Operators" -msgid "page_analysis.full.text.search" -msgstr "User name, operator name or message text search:" -msgid "page_analysis.search.title" -msgstr "Chat history" -msgid "page_avatar.intro" -msgstr "You can upload your photo only as JPG, GIF, PNG or TIF image files." -msgid "page_avatar.title" -msgstr "Upload photo" -msgid "page_ban.intro" -msgstr "Here you can block malicious visitors that affect your work with spam messages." -msgid "page_ban.sent" -msgstr "Address {0} is blocked for a specified number of days." -msgid "page_ban.thread" -msgstr "You opened this window for \"{0}\" thread. Address field is already filled. Select a number of days and click Send." -msgid "page_ban.title" -msgstr "Block address" -msgid "page_bans.add" -msgstr "Add address" -msgid "page_bans.confirm" -msgstr "Are you sure that you want to delete address {0} from the blocked list?" -msgid "page_bans.edit" -msgstr "Edit" -msgid "page_bans.list" -msgstr "List of banned IPs:" -msgid "page_bans.title" -msgstr "Ban List" -msgid "page_bans.to" -msgstr "Till" -msgid "page_client.pending_users" -msgstr "You can find awaiting visitors." -msgid "page_group.tab.main" -msgstr "General" -msgid "page_group.tab.members" -msgstr "Members" -msgid "page_locales.actions" -msgstr "Modify" -msgid "page_locales.cannot_disable_all" -msgstr "You cannot disable all locales." -msgid "page_locales.code" -msgstr "Code" -msgid "page_locales.disable.locale" -msgstr "disable" -msgid "page_locales.enable.locale" -msgstr "enable" -msgid "page_locales.intro" -msgstr "On this page you can configure locales which are used in the system" -msgid "page_locales.name" -msgstr "Name" -msgid "page_locales.title" -msgstr "Locales" -msgid "page_localization.tab.locale" -msgstr "Locales" -msgid "page_localization.tab.translation" -msgstr "Translations" -msgid "page_login.error" -msgstr "Entered login/password is incorrect" -msgid "page_login.operator.disabled" -msgstr "Your account is temporarily blocked. Please contact system administrator." -msgid "page_login.intro" -msgstr "Please enter your username and password to access administrative tools. See your visitors and browse the history." -msgid "page_login.login" -msgstr "Login:" -msgid "page_login.password" -msgstr "Password:" -msgid "page_login.remember" -msgstr "Remember" -msgid "page_login.title" -msgstr "Login" -msgid "page_search.intro" -msgstr "Search the chat history for a specified user, an operator or a specified phrase in messages." -msgid "page_search.type.all" -msgstr "everywhere" -msgid "page_search.search.type.in_system_messages" -msgstr "Search in system messages" -msgid "page_search.type.message" -msgstr "in messages" -msgid "page_search.type.operator" -msgstr "by operator" -msgid "page_search.type.title" -msgstr "Search:" -msgid "page_search.type.visitor" -msgstr "by visitor" -msgid "page_settings.intro" -msgstr "Specify options affecting chat window and common system behavior." -msgid "page_settings.tab.features" -msgstr "Optional Services" -msgid "page_settings.tab.main" -msgstr "General" -msgid "page_settings.tab.page_themes" -msgstr "Operator pages themes preview" -msgid "page_settings.tab.performance" -msgstr "Performance" -msgid "page_settings.tab.themes" -msgstr "Chat themes preview" -msgid "page_settings.tab.invitationthemes" -msgstr "Invitation themes preview" -msgid "pending.errors.network" -msgstr "Network problems detected. Please refresh the page." -msgid "pending.menu.hide" -msgstr "Hide menu >>" -msgid "pending.menu.show" -msgstr "Show menu >>" -msgid "pending.popup_notification" -msgstr "A new visitor is waiting for an answer." -msgid "pending.status.away" -msgstr "Away" -msgid "pending.status.online" -msgstr "Up to date" -msgid "pending.status.setaway" -msgstr "Set status as \"Away\"" -msgid "pending.status.setonline" -msgstr "Set status as \"Available\"" -msgid "pending.table.ban" -msgstr "Ban this visitor" -msgid "pending.table.head.actions" -msgstr "Actions" -msgid "pending.table.head.contactid" -msgstr "Visitor's address" -msgid "pending.table.head.etc" -msgstr "Misc" -msgid "pending.table.head.name" -msgstr "Name" -msgid "pending.table.head.operator" -msgstr "Operator" -msgid "pending.table.head.state" -msgstr "State" -msgid "pending.table.head.total" -msgstr "Total time" -msgid "pending.table.head.waittime" -msgstr "Waiting time" -msgid "pending.table.invite" -msgstr "Invite to chat" -msgid "pending.table.speak" -msgstr "Click to chat with the visitor" -msgid "pending.table.tracked" -msgstr "Tracked visitor's path" -msgid "pending.table.view" -msgstr "Watch the chat" -msgid "permission.admin" -msgstr "System administration: settings, operators management, button generation" -msgid "permission.modifyprofile" -msgstr "Ability to modify profile" -msgid "permission.takeover" -msgstr "Take over chat thread" -msgid "permission.viewthreads" -msgstr "View another operator's chat thread" -msgid "permissions.intro" -msgstr "Change restrictions and available features for this operator." -msgid "permissions.title" -msgstr "Permissions" -msgid "presurvey.error.wrong_email" -msgstr "Wrong email address." -msgid "presurvey.department" -msgstr "Choose Department:" -msgid "presurvey.intro" -msgstr "Thank you for contacting us. Please fill out the form below and click the Start Chat button." -msgid "presurvey.mail" -msgstr "Email:" -msgid "presurvey.name" -msgstr "Name:" -msgid "presurvey.question" -msgstr "Initial Question:" -msgid "presurvey.submit" -msgstr "Start Chat" -msgid "presurvey.title" -msgstr "Live support" -msgid "remove.item" -msgstr "remove" -msgid "report.bydate.1" -msgstr "Date" -msgid "report.bydate.2" -msgstr "Chat threads" -msgid "report.bydate.3" -msgstr "Messages from operators" -msgid "report.bydate.4" -msgstr "Messages from visitors" -msgid "report.bydate.5" -msgstr "Average waiting time (in seconds)" -msgid "report.bydate.6" -msgstr "Average chat time (in seconds)" -msgid "report.bydate.7" -msgstr "Missed threads" -msgid "report.bydate.8" -msgstr "Invitations sent" -msgid "report.bydate.9" -msgstr "Invitations accepted" -msgid "report.bydate.10" -msgstr "Invitations rejected" -msgid "report.bydate.11" -msgstr "Invitations ignored" -msgid "report.bydate.title" -msgstr "Usage statistics for each date" -msgid "report.byoperator.1" -msgstr "Operator" -msgid "report.byoperator.2" -msgstr "Chat Threads" -msgid "report.byoperator.3" -msgstr "Messages" -msgid "report.byoperator.4" -msgstr "Average message length (in chars)" -msgid "report.byoperator.5" -msgstr "Invitations sent" -msgid "report.byoperator.6" -msgstr "Invitations accepted" -msgid "report.byoperator.7" -msgstr "Invitations rejected" -msgid "report.byoperator.8" -msgstr "Invitations ignored" -msgid "report.byoperator.title" -msgstr "Threads by operator" -msgid "report.bypage.1" -msgstr "Page" -msgid "report.bypage.2" -msgstr "View times" -msgid "report.bypage.3" -msgstr "Chat threads" -msgid "report.bypage.4" -msgstr "Invitations sent" -msgid "report.bypage.5" -msgstr "Invitations accepted" -msgid "report.bypage.6" -msgstr "Invitations rejected" -msgid "report.bypage.7" -msgstr "Invitations ignored" -msgid "report.bypage.title" -msgstr "Chat threads by page" -msgid "report.no_items" -msgstr "Not enough data" -msgid "report.total" -msgstr "Total:" -msgid "resetpwd.changed.title" -msgstr "Your password has been changed." -msgid "resetpwd.changed" -msgstr "Login using your new password." -msgid "resetpwd.intro" -msgstr "Please choose a password to use with your account." -msgid "resetpwd.login" -msgstr "Proceed to login" -msgid "resetpwd.submit" -msgstr "Change" -msgid "resetpwd.title" -msgstr "Change your password" -msgid "restore.back_to_login" -msgstr "Back to login" -msgid "restore.emailorlogin" -msgstr "Login or E-mail:" -msgid "restore.intro" -msgstr "You cannot retrieve your password, but you can set a new one by following a link sent to you by email." -msgid "restore.pwd.message" -msgstr "Forgot your password?" -msgid "restore.sent.title" -msgstr "Password retrieval" -msgid "restore.sent" -msgstr "We've sent the instructions to your email. Please check it." -msgid "restore.submit" -msgstr "Reset password" -msgid "restore.title" -msgstr "Trouble Accessing Your Account?" -msgid "right.administration" -msgstr "Administration" -msgid "right.main" -msgstr "Main" -msgid "right.other" -msgstr "Other" -msgid "settings.chat.title.description" -msgstr "Name of your company for example." -msgid "settings.chat.title" -msgstr "Title in the chat window" -msgid "settings.chatstyle.description" -msgstr "A preview all pages for each style is available here" -msgid "settings.chatstyle" -msgstr "Select a style for your chat windows" -msgid "settings.company.title.description" -msgstr "Enter your company title" -msgid "settings.company.title" -msgstr "Company title" -msgid "settings.cronkey" -msgstr "Cron security key" -msgid "settings.cronkey.description" -msgstr "To run cron use link {0}." -msgid "settings.email.description" -msgstr "Enter an email to receive system messages" -msgid "settings.email" -msgstr "Email" -msgid "settings.enableban.description" -msgstr "Using it you can block attacks from specific IPs" -msgid "settings.enableban" -msgstr "Enable feature \"Malicious Visitors\"" -msgid "settings.enablegroups.description" -msgstr "Use it to have separate queues for different questions." -msgid "settings.enablegroups" -msgstr "Enable \"Groups\"" -msgid "settings.enablegroupsisolation" -msgstr "Enable \"Groups Isolation\"" -msgid "settings.enablegroupsisolation.description" -msgstr "Use it to completely isolate groups from each other." -msgid "settings.enablepresurvey.description" -msgstr "Forces the user to fill out a special form to start a chat." -msgid "settings.enablepresurvey" -msgstr "Enable \"Pre-chat survey\"" -msgid "settings.enablessl.description" -msgstr "Please note that your web server should be configured to support https requests." -msgid "settings.enablessl" -msgstr "Allow secure connections (SSL)" -msgid "settings.enablestatistics.description" -msgstr "Adds a page with messenger usage reports." -msgid "settings.enablestatistics" -msgstr "Enable \"Statistics\"" -msgid "settings.enabletracking.description" -msgstr "Enable tracking of visitors' activity on your site and ability to invite visitors to chat." -msgid "settings.enabletracking" -msgstr "Enable \"Tracking and inviting\"" -msgid "settings.forcessl.description" -msgstr "Show chats only through https connection" -msgid "settings.forcessl" -msgstr "Force all chats to be secure" -msgid "settings.frequencychat.description" -msgstr "Specify the poll interval in seconds. Default is 2 seconds." -msgid "settings.frequencychat" -msgstr "Chat refresh time" -msgid "settings.frequencyoldchat.description" -msgstr "Old browsers need to refresh the whole page to get messages. Default is 7 seconds." -msgid "settings.frequencyoldchat" -msgstr "Page refresh time for old browsers" -msgid "settings.frequencyoperator.description" -msgstr "Specify the poll interval in seconds. Default is 2 seconds." -msgid "settings.frequencyoperator" -msgstr "Operator's console refresh time" -msgid "settings.frequencytracking.description" -msgstr "Specify the poll interval in seconds. Default is 10 seconds." -msgid "settings.frequencytracking" -msgstr "Tracking refresh time" -msgid "settings.geolink.description" -msgstr "Each IP becomes a link opening in a new window. {ip} is substituted with a real IP." -msgid "settings.geolink" -msgstr "Link to an external geolocation service" -msgid "settings.geolinkparams.description" -msgstr "Window size and toolbars hiding" -msgid "settings.geolinkparams" -msgstr "Geolocation window options" -msgid "settings.host.description" -msgstr "Destination for your company name or logo link" -msgid "settings.host" -msgstr "URL of your website" -msgid "settings.invitationlifetime.description" -msgstr "Specify the lifetime of invitation in seconds. Default is 60 seconds." -msgid "settings.invitationlifetime" -msgstr "Invitation lifetime" -msgid "settings.invitationstyle.description" -msgstr "A preview for invitation style is available here" -msgid "settings.invitationstyle" -msgstr "Select a style for your invitation" -msgid "settings.leavemessage_captcha.description" -msgstr "Protection against automated spam (captcha)" -msgid "settings.leavemessage_captcha" -msgstr "Force visitor to enter a verification code when leaving message" -msgid "settings.leftmessageslocale.description" -msgstr "Language of the messages that could be left by visitors when operators aren't available" -msgid "settings.leftmessageslocale" -msgstr "Language of the messages left by visitors" -msgid "settings.logo.description" -msgstr "Enter http address of your company logo" -msgid "settings.logo" -msgstr "Your company logo" -msgid "settings.maxuploadedfilesize.description" -msgstr "The upper limit of uploaded files (avatars) in bytes. Default is 100000 bytes." -msgid "settings.maxuploadedfilesize" -msgstr "Maximum size of uploaded files" -msgid "settings.no.title" -msgstr "Please enter your company title" -msgid "settings.onehostconnections.description" -msgstr "0 allows any number of connections" -msgid "settings.onehostconnections" -msgstr "Max number of threads from one address" -msgid "settings.onlinetimeout.description" -msgstr "Set the number of seconds to show an operator as online. Default is 30 seconds." -msgid "settings.onlinetimeout" -msgstr "Operator online time threshold" -msgid "settings.page_style.description" -msgstr "A preview for each style is available here" -msgid "settings.page_style" -msgstr "Select a style for your operator pages" -msgid "settings.popup_notification.description" -msgstr "Small dialog appears to attract your attention." -msgid "settings.popup_notification" -msgstr "Enable \"Popup dialog notification of the new visitor\"." -msgid "settings.saved" -msgstr "Changes saved" -msgid "settings.sendmessagekey" -msgstr "Send messages with:" -msgid "settings.show_online_operators.description" -msgstr "Can slow down the update rate of the list" -msgid "settings.show_online_operators" -msgstr "Show online operators on \"List of awaiting visitors\" page" -msgid "settings.statistics_aggregation_interval" -msgstr "Statistics aggregation interval" -msgid "settings.statistics_aggregation_interval.description" -msgstr "Specify interval for statistics aggregation in seconds. Default is 86400 (one day)" -msgid "settings.survey.askgroup.description" -msgstr "Show/hide department selection field in the survey" -msgid "settings.survey.askgroup" -msgstr "Allows a visitor to choose department/group" -msgid "settings.survey.askmail.description" -msgstr "Show/hide email field in the survey" -msgid "settings.survey.askmail" -msgstr "Ask for visitor's email" -msgid "settings.survey.askmessage.description" -msgstr "Show/hide initial question field in the survey" -msgid "settings.survey.askmessage" -msgstr "Show initial question field" -msgid "settings.title" -msgstr "Messenger settings" -msgid "settings.trackinglifetime.description" -msgstr "Specify the lifetime of old visitor's tracks in seconds. Default is 600 seconds." -msgid "settings.trackinglifetime" -msgstr "Track lifetime" -msgid "settings.threadlifetime.description" -msgstr "Specify the lifetime of the thread after closing the dialog box in seconds. Default is 600 seconds. Set 0 for unlimited thread lifetime." -msgid "settings.threadlifetime" -msgstr "Thread lifetime" -msgid "settings.usercanchangename.description" -msgstr "Turn off to hide edit box from chat window" -msgid "settings.usercanchangename" -msgstr "Allows users to change their names" -msgid "settings.usernamepattern.description" -msgstr "How to build visitor's identifying string from {name}, {id} or {addr}. Default: {name}" -msgid "settings.usernamepattern" -msgstr "Visitor's identifier" -msgid "settings.visitorslimit.description" -msgstr "Specify the number of items to display in tracked visitors list. Default is 20. Set 0 for all visitors (not recommended)." -msgid "settings.visitorslimit" -msgstr "Limit for tracked visitors list" -msgid "settings.wrong.cronkey" -msgstr "Use only Latin letters(upper and lower case) and numbers in cron key." -msgid "settings.wrong.email" -msgstr "Enter a valid email address" -msgid "settings.wrong.onehostconnections" -msgstr "\"Max number of threads\" field should be a number" -msgid "settings.wrong.threadlifetime" -msgstr "\"Thread lifetime\" field should be a number" -msgid "statistics.dates" -msgstr "Select dates" -msgid "statistics.description" -msgstr "From this page you can generate a variety of usage reports." -msgid "statistics.description.full" -msgstr "From this page you can generate a variety of usage reports. Last time statistics was calculated {0}. You can calculate it manually." -msgid "statistics.from" -msgstr "From:" -msgid "statistics.till" -msgstr "Till:" -msgid "statistics.title" -msgstr "Statistics" -msgid "statistics.wrong.dates" -msgstr "You have selected From date after Till date" -msgid "tag.pagination.info" -msgstr "Page {0} of {1}, {2}-{3} from {4}" -msgid "tag.pagination.next" -msgstr "next" -msgid "tag.pagination.no_items.elements" -msgstr "No elements" -msgid "tag.pagination.no_items" -msgstr "Found 0 elements" -msgid "tag.pagination.previous" -msgstr "previous" -msgid "thread.back_to_search" -msgstr "Go to search" -msgid "thread.chat_log" -msgstr "Chat log" -msgid "thread.error.cannot_take" -msgstr "Cannot take thread" -msgid "thread.error.cannot_take_over" -msgstr "Cannot take over" -msgid "thread.error.cannot_view" -msgstr "Cannot view threads" -msgid "thread.error.old_browser" -msgstr "Old browser is used, please update it" -msgid "thread.error.wrong_thread" -msgstr "Wrong thread" -msgid "thread.intro" -msgstr "This page displays chat details and content." -msgid "time.never" -msgstr "Never" -msgid "time.today.at" -msgstr "Today at {0}" -msgid "time.yesterday.at" -msgstr "Yesterday at {0}" -msgid "topMenu.admin" -msgstr "Home" -msgid "topMenu.logoff" -msgstr "Exit" -msgid "topMenu.main" -msgstr "Home" -msgid "topMenu.users.nomenu" -msgstr "without menu" -msgid "topMenu.users" -msgstr "Visitors" -msgid "tracked.date" -msgstr "Visit time" -msgid "tracked.empty.referrer" -msgstr "direct visit" -msgid "tracked.intro" -msgstr "This page displays tracked history of visitor's activity on site." -msgid "tracked.link" -msgstr "Visited page" -msgid "tracked.path" -msgstr "Tracked path of visitor" -msgid "tracked.visitor.came.from" -msgstr "Visitor came from" -msgid "translate.direction" -msgstr "Direction:" -msgid "translate.show.all" -msgstr "All strings" -msgid "translate.show.foradmin" -msgstr "Strings for administrator" -msgid "translate.show.foroperator" -msgstr "Strings for operator" -msgid "translate.show.forvisitor" -msgstr "Strings for visitor" -msgid "translate.show" -msgstr "Show:" -msgid "translate.sort.key" -msgstr "Key identifier" -msgid "translate.sort.lang" -msgstr "Source language string" -msgid "translate.sort" -msgstr "Sort by:" -msgid "typing.remote" -msgstr "Remote user is typing..." -msgid "updates.current" -msgstr "You are using:" -msgid "updates.env" -msgstr "Environment:" -msgid "updates.installed_locales" -msgstr "Installed localizations:" -msgid "updates.intro" -msgstr "Messenger updates." -msgid "updates.latest" -msgstr "Latest version:" -msgid "updates.news" -msgstr "News:" -msgid "updates.title" -msgstr "Updates" -msgid "visitors.how_to" -msgstr "To invite the visitor to chat click on his/her name in the list." -msgid "visitors.intro" -msgstr "The table below represents a list of visitors ready to chat on your site." -msgid "visitors.no_visitors" -msgstr "There are no visitors ready to chat on your site at present time" -msgid "visitors.table.head.actions" -msgstr "Actions" -msgid "visitors.table.head.contactid" -msgstr "Visitor's address" -msgid "visitors.table.head.etc" -msgstr "Misc" -msgid "visitors.table.head.firsttimeonsite" -msgstr "First seen" -msgid "visitors.table.head.invitations" -msgstr "Invitations / Chats" -msgid "visitors.table.head.invitationtime" -msgstr "Invitation time" -msgid "visitors.table.head.invited.by" -msgstr "Invited by" -msgid "visitors.table.head.lasttimeonsite" -msgstr "Last seen" -msgid "visitors.table.head.name" -msgstr "Name" -msgid "visitors.title" -msgstr "Visitors on site" +# This file is empty because english strings are a part of Mibew core \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js b/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js index fcfce9fe..d3e6dec9 100644 --- a/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js +++ b/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js @@ -10,53 +10,53 @@ typeof f===m?f.apply(a):f))+'" alt=""/>\n \n ')}fu m="function",h=this.escapeExpression,s=this;c='\n
    \n \n
    '});v.chat_avatar=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=this.escapeExpression; return(c=e["if"].call(a,a&&a.imageLink,{hash:{},inverse:this.program(3,function(a,e){return'
    '},b),fn:this.program(1,function(a,c){var b,d;b=''},b),data:b}))||0===c?c:""});v.chat_controls_close=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing; -d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_history=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_redirect=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k=e.helperMissing,l=this.escapeExpression;return(g=e["if"].call(a,(g=a&&a.user,null==g||!1===g?g:g.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d,s;return b=""+('\n
    \n')},b),data:b}))||0===g?g:""});v.chat_controls_refresh=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_secure_mode=u(function(c, -a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'
    '});v.chat_controls_send_mail=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_sound= -u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=e.helperMissing,k=this.escapeExpression;return(c=e["if"].call(a,a&&a.enabled,{hash:{},inverse:this.program(3,function(a,c){var b,d,h;return b=""+('\n
    \n')},b),fn:this.program(1,function(a,c){var b, -d,h;return b=""+('\n
    \n')},b),data:b}))||0===c?c:""});v.chat_controls_user_name=u(function(c,a,e,d,b){function g(a,c){var b,d,f,h;return b=""+('\n
    \n \n ')}function k(a,c){var b,d,f,h;return b=""+('\n '+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+'\n \n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;return(l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canChangeName), -{hash:{},inverse:h.program(6,function(a,c){var b,d,f,h;return b=""+("\n"+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"chat.client.name",h):m.call(a,"l10n","chat.client.name",h)))+" "+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+"\n")},b),fn:h.program(1,function(a,c){var d,b,f;d=""+('\n '+n((b=e.l10n||a&&a.l10n,f={hash:{},data:c},b?b.call(a,"chat.client.name",f):m.call(a,"l10n","chat.client.name",f)))+"\n "); -if((b=e["if"].call(a,a&&a.nameInput,{hash:{},inverse:h.program(4,k,c),fn:h.program(2,g,c),data:c}))||0===b)d+=b;return d+"\n"},b),data:b}))||0===l?l:""});v.chat_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression;c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;c+='\n\n\n
    \n
    \n \n
    \n
    \n
    \n\n\n
    \n
    \n '; -if((d=e.unless.call(a,(d=a&&a.user,null==d||!1===d?d:d.isAgent),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){return'\n
    \n '},b),data:b}))||0===d)c+=d;return c+='\n \n
    \n \n
    \n
    \n
    \n\n\n
    \n\n\n'});v.chat_message=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l=this.escapeExpression,t=e.helperMissing;c=""+(""+l((g=e.formatTime||a&&a.formatTime,k={hash:{},data:b},g?g.call(a,a&&a.created,k):t.call(a,"formatTime",a&&a.created,k)))+" \n");if((g=e["if"].call(a,a&&a.name,{hash:{}, -inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a&&a.name,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=l(d)+": "},b),data:b}))||0===g)c+=g;c+="\n";if((g=e["if"].call(a,a&&a.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br",b)))},b),fn:this.program(3,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br, allowTags",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br, allowTags",b)))},b),data:b}))||0===g)c+= -g;return c+"
    "});v.chat_message_form=u(function(c,a,e,d,b){function g(a,c){var d,b,f;d=""+('\n \n "}function k(a,c){var d,b;return d=""+("\n \n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;c='
    \n';if((l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(1,function(a,c){return'\n
    \n \n
    \n'}, -b),data:b}))||0===l)c+=l;c+='\n
    \n\n
    \n';if((l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(3,function(a,c){var d,b,f,w;d='\n
    \n
    \n ';if((b=e["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.isAgent),{hash:{},inverse:h.noop,fn:h.program(4,g,c),data:c}))||0===b)d+=b;return d+='\n
    \n '+n((f=e.l10n||a&&a.l10n,w={hash:{},data:c},f?f.call(a,"chat.window.send_message_short_and_shortcut",w):m.call(a,"l10n","chat.window.send_message_short_and_shortcut",w)))+"\n
    \n"},b),data:b}))||0===l)c+=l;return c+'\n
    \n
    '});v.chat_status_base=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b|| -{};c=this.escapeExpression;(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c(a)});v.chat_status_message=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.message)?a=e.call(a,{hash:{},data:b}):(e=a&&a.message,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c(a)});v.chat_status_typing=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e, -c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"typing.remote",k):c.call(a,"l10n","typing.remote",k)))});v.default_control=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};d=this.escapeExpression;c="";(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c+=d(a)+""});v.invitation_layout=u(function(c, -a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'
    '});v.leave_message_description=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    \n \n '+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,\n \n
    \n
    '+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"leavemessage.descr",l):c.call(a,"l10n","leavemessage.descr",l)))+"
    ")});v.leave_message_form=u(function(c,a,e,d,b){function g(a,c){var d,b;d=''}function k(a,c){var b,d;b=""+('\n \n "}function l(a,b){return'selected="selected"'}function t(a,b){return" (offline)"}function n(a,b){var d;return(d=e["if"].call(a,a&&a.selected,{hash:{},inverse:q.noop, +d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_history=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_redirect=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k=e.helperMissing,l=this.escapeExpression;return(g=e["if"].call(a,(g=a&&a.user,null==g||!1===g?g:g.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d,s;return b=""+('\n
    \n')},b),data:b}))||0===g?g:""});v.chat_controls_refresh=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_secure_mode=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'
    '}); +v.chat_controls_send_mail=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    ')});v.chat_controls_sound=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=e.helperMissing,k=this.escapeExpression; +return(c=e["if"].call(a,a&&a.enabled,{hash:{},inverse:this.program(3,function(a,c){var b,d,h;return b=""+('\n
    \n')},b),fn:this.program(1,function(a,c){var b,d,h;return b=""+('\n
    \n')},b),data:b}))||0===c?c:""});v.chat_controls_user_name=u(function(c,a,e,d,b){function g(a,c){var b,d,f,h;return b=""+('\n
    \n \n ')}function k(a,c){var b,d,f,h;return b=""+('\n '+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+'\n \n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;return(l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canChangeName),{hash:{},inverse:h.program(6,function(a,c){var b,d,f,h;return b=""+("\n"+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"You are",h):m.call(a,"l10n","You are",h)))+" "+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+"\n")},b),fn:h.program(1,function(a, +c){var d,b,f;d=""+('\n '+n((b=e.l10n||a&&a.l10n,f={hash:{},data:c},b?b.call(a,"You are",f):m.call(a,"l10n","You are",f)))+"\n ");if((b=e["if"].call(a,a&&a.nameInput,{hash:{},inverse:h.program(4,k,c),fn:h.program(2,g,c),data:c}))||0===b)d+=b;return d+"\n"},b),data:b}))||0===l?l:""});v.chat_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression; +c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;c+='\n\n\n
    \n
    \n \n
    \n
    \n
    \n\n\n
    \n
    \n ';if((d=e.unless.call(a,(d=a&&a.user,null==d||!1===d?d:d.isAgent),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){return'\n
    \n '}, +b),data:b}))||0===d)c+=d;return c+='\n \n
    \n \n
    \n
    \n
    \n\n\n
    \n\n\n'});v.chat_message=u(function(c,a,e,d,b){this.compilerInfo= +[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l=this.escapeExpression,t=e.helperMissing;c=""+(""+l((g=e.formatTime||a&&a.formatTime,k={hash:{},data:b},g?g.call(a,a&&a.created,k):t.call(a,"formatTime",a&&a.created,k)))+" \n");if((g=e["if"].call(a,a&&a.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="";(d=e.name)? +d=d.call(a,{hash:{},data:c}):(d=a&&a.name,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=l(d)+": "},b),data:b}))||0===g)c+=g;c+="\n";if((g=e["if"].call(a,a&&a.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br",b):t.call(a, +"apply",a&&a.message,"urlReplace, nl2br",b)))},b),fn:this.program(3,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br, allowTags",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br, allowTags",b)))},b),data:b}))||0===g)c+=g;return c+"
    "});v.chat_message_form=u(function(c,a,e,d,b){function g(a,c){var d,b,f;d=""+('\n \n "}function k(a,c){var d,b;return d=""+("\n \n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers); +b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;c='
    \n';if((l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(1,function(a,c){return'\n
    \n \n
    \n'},b),data:b}))||0===l)c+=l;c+='\n
    \n\n
    \n';if((l=e["if"].call(a,(l=a&&a.user, +null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(3,function(a,c){var d,b,f,w;d='\n
    \n
    \n ';if((b=e["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.isAgent),{hash:{},inverse:h.noop,fn:h.program(4,g,c),data:c}))||0===b)d+=b;return d+='\n
    \n '+n((f=e.l10n||a&&a.l10n,w={hash:{},data:c},f?f.call(a,"chat.window.send_message_short_and_shortcut",w):m.call(a,"l10n","chat.window.send_message_short_and_shortcut",w)))+"\n
    \n"},b),data:b}))||0===l)c+=l;return c+'\n
    \n
    '});v.chat_status_base=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{}, +data:b}):e);return c(a)});v.chat_status_message=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.message)?a=e.call(a,{hash:{},data:b}):(e=a&&a.message,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c(a)});v.chat_status_typing=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a, +"Remote user is typing...",k):c.call(a,"l10n","Remote user is typing...",k)))});v.default_control=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};d=this.escapeExpression;c="";(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c+=d(a)+""});v.invitation_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'
    '}); +v.leave_message_description=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('
    \n \n '+
+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,\n \n
    \n
    '+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Sorry. None of the support team is available at the moment.
    Please leave a message and someone will get back to you shortly.",l):c.call(a,"l10n","Sorry. None of the support team is available at the moment.
    Please leave a message and someone will get back to you shortly.",l)))+"
    ")});v.leave_message_form= +u(function(c,a,e,d,b){function g(a,c){var d,b;d=''}function k(a,c){var b,d;b=""+('\n \n "}function l(a,b){return'selected="selected"'}function t(a,b){return" (offline)"}function n(a,b){var d;return(d=e["if"].call(a,a&&a.selected,{hash:{},inverse:q.noop, fn:q.program(15,m,b),data:b}))||0===d?d:""}function m(a,b){var d;return p((d=a&&a.description,typeof d===r?d.apply(a):d))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var h,s,r="function",p=this.escapeExpression,q=this,f=e.helperMissing;c=""+('
    \n \n \n \n \n ';if((h=e.unless.call(a,a&&a.showEmail,{hash:{},inverse:q.noop,fn:q.program(1,function(a,b){var d,c;d=''},b),data:b}))||0===h)c+=h;c+="\n ";if((h=e.unless.call(a,a&&a.groups,{hash:{},inverse:q.noop,fn:q.program(3,function(a,b){var d;return(d=e["if"].call(a,a&&a.groupId,{hash:{},inverse:q.noop,fn:q.program(4,g,b),data:b}))||0===d?d:""},b),data:b}))||0===h)c+=h;c+="\n ";if((h=e.unless.call(a,a&&a.showMessage,{hash:{},inverse:q.noop,fn:q.program(6,function(a,d){var b,c;b=''},b),data:b}))||0===h)c+=h;c+='\n\n
    \n\n \n ';if((h=e["if"].call(a,a&&a.groups,{hash:{},inverse:q.noop,fn:q.program(8,function(a,b){var d,c,g,h;d=""+("\n \n \n \n \n \n \n \n \n "},b),data:b}))||0===h)c+=h;c+="\n \n \n \n \n ";if((h=e["if"].call(a,a&&a.showEmail,{hash:{},inverse:q.noop,fn:q.program(19,function(a,d){var b,c,g;b=""+("\n \n \n \n \n '},b),data:b}))||0===h)c+=h;c+="\n ";if((h=e["if"].call(a,a&&a.showMessage,{hash:{},inverse:q.noop,fn:q.program(21,function(a,c){var d,b,g;d=""+("\n \n \n \n \n "},b),data:b}))||0===h)c+=h;return c+='\n
    "+p((g=e.l10n||a&&a.l10n,h={hash:{},data:b},g?g.call(a,"form.field.department",h):f.call(a,"l10n","form.field.department",h)))+'\n \n
    "+p((g=e.l10n||a&&a.l10n,h={hash:{},data:b},g?g.call(a,"form.field.department.description",h):f.call(a,"l10n","form.field.department.description",h)))+'';if((c=e.each.call(a,a&&a.groups,{hash:{},inverse:q.noop,fn:q.program(14,n,b),data:b}))||0=== -c)d+=c;return d+"
    "+p((d=e.l10n||a&&a.l10n,s={hash:{},data:b},d?d.call(a,"presurvey.name",s):f.call(a,"l10n","presurvey.name",s)))+'
    "+p((c=e.l10n||a&&a.l10n,g={hash:{},data:d},c?c.call(a,"presurvey.mail",g):f.call(a,"l10n","presurvey.mail",g)))+'
    "+p((b=e.l10n||a&&a.l10n,g={hash:{},data:c},b?b.call(a,"presurvey.question",g):f.call(a,"l10n","presurvey.question",g)))+'
    \n '+p((d=e.l10n||a&&a.l10n,s={hash:{},data:b},d?d.call(a,"presurvey.submit",s):f.call(a,"l10n","presurvey.submit",s)))+'\n
     
    \n
    \n
    Loading...
    '});v.survey_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression;c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;return c+='\n\n\n
    \n
    \n
    \n '+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,\n
    \n
    '+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a, -"presurvey.intro",k):l.call(a,"l10n","presurvey.intro",k)))+'
    \n
    \n
    \n\n\n
    '})})(); +(c=e.message)?c=c.call(a,{hash:{},data:d}):(c=a&&a.message,c=typeof c===r?c.call(a,{hash:{},data:d}):c);return b+=p(c)+'"/>'},b),data:b}))||0===h)c+=h;c+='\n\n
    \n\n \n ';if((h=e["if"].call(a,a&&a.groups,{hash:{},inverse:q.noop,fn:q.program(8,function(a,b){var d,c,g,h;d=""+("\n \n \n \n \n \n \n \n \n "}, +b),data:b}))||0===h)c+=h;c+="\n \n \n \n \n ";if((h=e["if"].call(a,a&&a.showEmail,{hash:{},inverse:q.noop,fn:q.program(19,function(a,d){var b,c,g;b=""+("\n \n \n \n \n '}, +b),data:b}))||0===h)c+=h;c+="\n ";if((h=e["if"].call(a,a&&a.showMessage,{hash:{},inverse:q.noop,fn:q.program(21,function(a,c){var d,b,g;d=""+("\n \n \n \n \n "},b),data:b}))||0===h)c+=h;return c+='\n
    "+p((g=e.l10n||a&&a.l10n,h={hash:{},data:b},g?g.call(a,"Choose Department:",h):f.call(a,"l10n","Choose Department:",h)))+'\n \n
    "+p((g=e.l10n||a&&a.l10n,h={hash:{},data:b},g?g.call(a,"Department description:",h):f.call(a,"l10n","Department description:",h)))+'';if((c=e.each.call(a,a&&a.groups,{hash:{},inverse:q.noop,fn:q.program(14,n,b),data:b}))||0===c)d+=c;return d+"
    "+p((d=e.l10n||a&&a.l10n,s={hash:{},data:b},d?d.call(a,"Name:",s):f.call(a,"l10n","Name:",s)))+'
    "+p((c=e.l10n||a&&a.l10n,g={hash:{},data:d},c?c.call(a,"Email:",g):f.call(a,"l10n","Email:",g)))+'
    "+p((b=e.l10n||a&&a.l10n,g={hash:{},data:c},b?b.call(a,"Initial Question:",g):f.call(a,"l10n","Initial Question:",g)))+'
    \n '+p((d=e.l10n||a&&a.l10n,s={hash:{},data:b},d?d.call(a,"Start Chat",s):f.call(a,"l10n","Start Chat",s)))+'\n
     
    \n\n
    Loading...
    '}); +v.survey_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression;c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;return c+='\n\n\n
    \n
    \n
    \n '+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,\n
    \n
    '+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Thank you for contacting us. Please fill out the form below and click the Start Chat button.", +k):l.call(a,"l10n","Thank you for contacting us. Please fill out the form below and click the Start Chat button.",k)))+'
    \n
    \n
    \n\n\n
    '})})(); diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/close.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/close.handlebars index 5ec63a6b..2183c6bf 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/close.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/close.handlebars @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/history.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/history.handlebars index e890e10d..94c896bb 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/history.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/history.handlebars @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/redirect.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/redirect.handlebars index bb996021..62822432 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/redirect.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/redirect.handlebars @@ -1,3 +1,3 @@ {{#if user.canPost}} -
    +
    {{/if}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/refresh.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/refresh.handlebars index aafc832d..b5bb0fb7 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/refresh.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/refresh.handlebars @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/send_mail.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/send_mail.handlebars index 61afda95..ba204486 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/send_mail.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/send_mail.handlebars @@ -1 +1 @@ -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/sound.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/sound.handlebars index 00d05321..c9e81d27 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/sound.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/sound.handlebars @@ -1,5 +1,5 @@ {{#if enabled}} -
    +
    {{else}} -
    +
    {{/if}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/user_name.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/user_name.handlebars index f8f738f0..147c8a3b 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/user_name.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/user_name.handlebars @@ -1,12 +1,12 @@ {{#if user.canChangeName}} - {{l10n "chat.client.name"}} + {{l10n "You are"}} {{#if nameInput}}
    - + {{else}} - {{user.name}} - + {{user.name}} + {{/if}} {{else}} -{{l10n "chat.client.name"}} {{user.name}} +{{l10n "You are"}} {{user.name}} {{/if}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/layout.handlebars index 65356a1e..15578295 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/layout.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/layout.handlebars @@ -26,4 +26,4 @@
    {{! Footer links}} - \ No newline at end of file + \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/message_form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/message_form.handlebars index e4a9fb2e..3a9fb2af 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/message_form.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/message_form.handlebars @@ -12,14 +12,14 @@
    {{#if user.isAgent}} {{/if}}
    - {{l10n "chat.window.send_message_short_and_shortcut"}} + {{l10n "chat.window.send_message_short_and_shortcut"}} {{/if}} diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/typing.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/typing.handlebars index fe60281f..8453b950 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/typing.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/typing.handlebars @@ -1 +1 @@ -{{l10n "typing.remote"}} \ No newline at end of file +{{l10n "Remote user is typing..."}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/description.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/description.handlebars index 6cb49ed6..510469f4 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/description.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/description.handlebars @@ -1,6 +1,6 @@ -
    {{l10n "leavemessage.descr"}}
    \ No newline at end of file +
    {{l10n "Sorry. None of the support team is available at the moment.
    Please leave a message and someone will get back to you shortly."}}
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars index af1af50c..49581781 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars @@ -8,16 +8,16 @@ - + - + {{#if groups}} - + - + {{/if}} - + @@ -46,7 +46,7 @@ {{/if}}
    {{l10n "form.field.email"}}:{{l10n "Your email"}}:
    {{l10n "form.field.name"}}:{{l10n "Your name"}}:
    {{l10n "form.field.department"}}{{l10n "Choose Department:"}}
    {{l10n "form.field.department.description"}}{{l10n "Department description:"}} {{#each groups}}{{#if this.selected}}{{this.description}}{{/if}}{{/each}}
    {{l10n "form.field.message"}}:{{l10n "Message"}}:
    - {{l10n "mailthread.perform"}} + {{l10n "Send"}}
     
    Loading...
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/sent_description.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/sent_description.handlebars index 30e87801..e8002842 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/sent_description.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/sent_description.handlebars @@ -1,6 +1,6 @@ -
    {{l10n "leavemessage.sent.message"}}
    \ No newline at end of file +
    {{l10n "Thank you for your message. We'll answer your query by email as soon as possible."}}
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/survey/form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/survey/form.handlebars index fabb3134..f80e3a94 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/survey/form.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/survey/form.handlebars @@ -12,7 +12,7 @@ {{#if groups}} - + - + {{/if}} - + {{#if showEmail}} - + {{/if}} {{#if showMessage}} - + {{/if}}
    {{l10n "form.field.department"}}{{l10n "Choose Department:"}}
    {{l10n "form.field.department.description"}}{{l10n "Department description:"}} {{#each groups}}{{#if this.selected}}{{this.description}}{{/if}}{{/each}}
    {{l10n "presurvey.name"}}{{l10n "Name:"}}
    {{l10n "presurvey.mail"}}{{l10n "Email:"}}
    {{l10n "presurvey.question"}}{{l10n "Initial Question:"}}
    - {{l10n "presurvey.submit"}} + {{l10n "Start Chat"}}
     
    Loading...
    \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/templates_src/client_side/survey/layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/survey/layout.handlebars index a5b76be4..481e7d12 100644 --- a/src/mibew/styles/dialogs/default/templates_src/client_side/survey/layout.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/client_side/survey/layout.handlebars @@ -5,9 +5,9 @@
    - {{l10n + {{l10n
    -
    {{l10n "presurvey.intro"}}
    +
    {{l10n "Thank you for contacting us. Please fill out the form below and click the Start Chat button."}}
    diff --git a/src/mibew/styles/dialogs/default/templates_src/server_side/_layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/server_side/_layout.handlebars index 78aea9f2..3f38f652 100644 --- a/src/mibew/styles/dialogs/default/templates_src/server_side/_layout.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/server_side/_layout.handlebars @@ -2,7 +2,7 @@ - {{#block "windowTitle"}}{{l10n "chat.window.title.user"}}{{/block}} + {{#block "windowTitle"}}{{l10n "Mibew Messenger"}}{{/block}} {{#block "head"}}{{/block}} @@ -30,7 +30,7 @@ {{/if}} {{/if}} -
    {{#block "pageTitle"}}{{l10n "chat.window.title.user"}}{{/block}}
    +
    {{#block "pageTitle"}}{{l10n "Mibew Messenger"}}{{/block}}
     
    diff --git a/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars b/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars index 1220d7ad..2bdb4a82 100644 --- a/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars @@ -30,43 +30,43 @@ {{else}} - {{l10n "page_ban.intro"}} + {{l10n "Here you can block malicious visitors that affect your work with spam messages."}}

    @@ -18,7 +18,7 @@ {{> _errors}} {{#if thread}} - {{l10n "page_ban.thread" thread}}
    + {{l10n "You opened this window for \"{0}\" thread. Address field is already filled. Select a number of days and click Send." thread}}

    {{/if}} @@ -37,34 +37,34 @@
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    @@ -75,7 +75,7 @@
    - * - {{l10n "common.asterisk_explanation"}} + * - {{l10n "mandatory fields"}}
    diff --git a/src/mibew/styles/pages/default/templates_src/server_side/bans.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/bans.handlebars index 9f613a38..fbaf84ce 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/bans.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/bans.handlebars @@ -6,7 +6,7 @@ {{else}} {{#if key}} - {{l10n "cannededit.descr"}} + {{l10n "Edit an existing message."}} {{else}} - {{l10n "cannednew.descr"}} + {{l10n "Add new message."}} {{/if}}
    @@ -36,21 +36,21 @@
    - +
    - +
    - +
    diff --git a/src/mibew/styles/pages/default/templates_src/server_side/canned_messages.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/canned_messages.handlebars index c47383aa..a6da357e 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/canned_messages.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/canned_messages.handlebars @@ -2,7 +2,7 @@ {{#override "menu"}}{{> _menu}}{{/override}} {{#override "content"}} - {{l10n "canned.descr"}} + {{l10n "Edit messages that you frequently type into the chat."}}

    @@ -17,7 +17,7 @@
    - {{l10n "canned.locale"}}
    + {{l10n "For language:"}}
    {{#each groups}} @@ -48,7 +48,7 @@ - {{l10n "canned.add"}} + {{l10n "Add message..."}}

    @@ -56,9 +56,9 @@ - - - + + + @@ -73,13 +73,13 @@ {{else}} - + {{/each}} diff --git a/src/mibew/styles/pages/default/templates_src/server_side/confirm.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/confirm.handlebars index b7aef6bb..fdd81d35 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/confirm.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/confirm.handlebars @@ -7,7 +7,7 @@
    - {{l10n "confirm.take.message" user agent}} + {{l10n "Visitor {0} is already being assisted by {1}.
    Are you really sure you want to start chatting the visitor?" user agent}}

    @@ -23,7 +23,7 @@
    {{else}} - + {{/each}} diff --git a/src/mibew/styles/pages/default/templates_src/server_side/updates.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/updates.handlebars index 457484d6..55e633e4 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/updates.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/updates.handlebars @@ -8,7 +8,7 @@ {{/override}} {{#override "content"}} - {{l10n "updates.intro"}} + {{l10n "Messenger updates."}}

    @@ -20,27 +20,27 @@
    - {{l10n "updates.news"}}
    + {{l10n "News:"}}
    - {{l10n "updates.current"}}
    + {{l10n "You are using:"}}
    {{version}}

    - {{l10n "updates.latest"}} + {{l10n "Latest version:"}}

    - {{l10n "updates.installed_locales"}}
    + {{l10n "Installed localizations:"}}
    {{#each localizations}} {{this}} {{/each}}

    - {{l10n "updates.env"}}
    + {{l10n "Environment:"}}
    PHP {{phpVersion}}
    diff --git a/src/mibew/styles/pages/default/templates_src/server_side/users.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/users.handlebars index ea579a43..519562a8 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/users.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/users.handlebars @@ -33,44 +33,44 @@
    {{l10n "canned.message_title"}}{{l10n "cannededit.message"}}{{l10n "canned.actions"}}{{l10n "Title"}}{{l10n "Message"}}{{l10n "Modify"}}
    {{l10n "canned.actions.edit"}}, - {{l10n "canned.actions.del"}} + onclick="this.newWindow = window.open('{{../mibewRoot}}/operator/canned-message/{{id}}/edit', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">{{l10n "edit"}}, + {{l10n "remove"}}
    {{l10n "tag.pagination.no_items.elements"}}{{l10n "No elements"}}
    - {{l10n "confirm.take.yes"}} + {{l10n "Yes. I'm sure"}} @@ -43,7 +43,7 @@ - {{l10n "confirm.take.no"}} + {{l10n "No. Close the window"}} diff --git a/src/mibew/styles/pages/default/templates_src/server_side/group_edit.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/group_edit.handlebars index e47d6e63..7e54fd36 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/group_edit.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/group_edit.handlebars @@ -8,9 +8,9 @@ {{#override "content"}} {{#if grid}} - {{l10n "page.group.intro"}} + {{l10n "On this page you can edit group details."}} {{else}} - {{l10n "page.group.create_new"}} + {{l10n "Create new group here."}} {{/if}}
    @@ -19,7 +19,7 @@ {{> _errors}} {{#if stored}} -
    {{l10n "data.saved"}}
    +
    {{l10n "Changes saved"}}
    {{/if}}
    @@ -36,61 +36,61 @@
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    -
    {{l10n "page.group.extrafields.title"}}
    +
    {{l10n "The fields that located below are extra fields. These fields are only available for the top level groups and override corresponding system settings if specified."}}
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    - +
    @@ -155,7 +155,7 @@
    - * - {{l10n "common.asterisk_explanation"}} + * - {{l10n "mandatory fields"}}
    diff --git a/src/mibew/styles/pages/default/templates_src/server_side/group_members.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/group_members.handlebars index 07cb3d8e..74087745 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/group_members.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/group_members.handlebars @@ -2,7 +2,7 @@ {{#override "menu"}}{{> _menu}}{{/override}} {{#override "content"}} - {{l10n "page.groupmembers.intro"}} + {{l10n "View and edit the member list."}}

    @@ -10,7 +10,7 @@ {{> _errors}} {{#if stored}} -
    {{l10n "data.saved"}}
    +
    {{l10n "Changes saved"}}
    {{/if}}
    @@ -37,7 +37,7 @@ {{/each}}
    - +
    diff --git a/src/mibew/styles/pages/default/templates_src/server_side/groups.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/groups.handlebars index 844a2fde..6beb7381 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/groups.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/groups.handlebars @@ -6,7 +6,7 @@ {{else}} - {{l10n "page.translate.one"}} + {{l10n "Enter your translation."}}

    @@ -43,7 +43,7 @@
    - +
    diff --git a/src/mibew/styles/pages/default/templates_src/server_side/translations.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/translations.handlebars index da1025b8..15676e4b 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/translations.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/translations.handlebars @@ -2,7 +2,7 @@ {{#override "menu"}}{{> _menu}}{{/override}} {{#override "content"}} - {{l10n "page.translate.descr"}} + {{l10n "If you don't agree with the translation please send us an update."}}

    @@ -17,7 +17,7 @@
    - {{l10n "translate.direction"}}
    + {{l10n "Direction:"}}
    {{#each availableOrders}} @@ -82,7 +82,7 @@
    {{l10n "tag.pagination.no_items"}}{{l10n "Found 0 elements"}}