diff --git a/src/mibew/js/compiled/default/handlebars_helpers.js b/src/mibew/js/compiled/default/handlebars_helpers.js
index 3ecc1729..5c05a941 100644
--- a/src/mibew/js/compiled/default/handlebars_helpers.js
+++ b/src/mibew/js/compiled/default/handlebars_helpers.js
@@ -6,5 +6,5 @@
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(e,b){b.registerHelper("apply",function(a,c){var f=a,e=/^[0-9A-z_]+$/;c=c.split(/\s*,\s*/);for(var d in c)if(c.hasOwnProperty(d)&&e.test(c[d])){if("function"!=typeof b.helpers[c[d]])throw Error("Unregistered helper '"+c[d]+"'!");f=b.helpers[c[d]](f).toString()}return new b.SafeString(f)});b.registerHelper("allowTags",function(a){a=a.replace(/<(span|strong)>(.*?)<\/\1>/g,"<$1>$2$1>");a=a.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2');
-return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g," "))});b.registerHelper("L10n",function(a){return e.Localization.get(a)||
+return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g," "))});b.registerHelper("l10n",function(a){return e.Localization.get(a)||
""})})(Mibew,Handlebars);
diff --git a/src/mibew/js/compiled/default_app.js b/src/mibew/js/compiled/default_app.js
index 08d08445..ac80e185 100644
--- a/src/mibew/js/compiled/default_app.js
+++ b/src/mibew/js/compiled/default_app.js
@@ -12,7 +12,7 @@ var Mibew={};(function(a,b){b.Marionette.TemplateCache.prototype.compileTemplate
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(e,b){b.registerHelper("apply",function(a,c){var f=a,e=/^[0-9A-z_]+$/;c=c.split(/\s*,\s*/);for(var d in c)if(c.hasOwnProperty(d)&&e.test(c[d])){if("function"!=typeof b.helpers[c[d]])throw Error("Unregistered helper '"+c[d]+"'!");f=b.helpers[c[d]](f).toString()}return new b.SafeString(f)});b.registerHelper("allowTags",function(a){a=a.replace(/<(span|strong)>(.*?)<\/\1>/g,"<$1>$2$1>");a=a.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2');
-return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g," "))});b.registerHelper("L10n",function(a){return e.Localization.get(a)||
+return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g," "))});b.registerHelper("l10n",function(a){return e.Localization.get(a)||
""})})(Mibew,Handlebars);
/*
Copyright 2005-2013 the original author or authors.
diff --git a/src/mibew/js/source/default/handlebars_helpers.js b/src/mibew/js/source/default/handlebars_helpers.js
index cd318c1a..49e6c598 100644
--- a/src/mibew/js/source/default/handlebars_helpers.js
+++ b/src/mibew/js/source/default/handlebars_helpers.js
@@ -103,11 +103,11 @@
});
/**
- * Register 't' Handlebars helper
+ * Register 'l10n' Handlebars helper
*
* This helper returns translated string with specified key
*/
- Handlebars.registerHelper('L10n', function(key) {
+ Handlebars.registerHelper('l10n', function(key) {
return (Mibew.Localization.get(key) || '');
});
})(Mibew, Handlebars);
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars
index 48912a68..5ec63a6b 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/controls/history.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars
index ee01aa8d..e890e10d 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/controls/redirect.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars
index 3208d443..bb996021 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/controls/refresh.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars
index f7270917..aafc832d 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/controls/send_mail.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars
index ad823d5d..61afda95 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/controls/sound.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars
index 4b059ca8..00d05321 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/controls/user_name.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars
index 3b7a3b01..f8f738f0 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars
@@ -1,12 +1,12 @@
{{#if user.canChangeName}}
- {{L10n "chat.client.name"}}
+ {{l10n "chat.client.name"}}
{{#if nameInput}}
-
+
{{else}}
- {{user.name}}
-
+ {{user.name}}
+
{{/if}}
{{else}}
-{{L10n "chat.client.name"}} {{user.name}}
+{{l10n "chat.client.name"}} {{user.name}}
{{/if}}
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars
index d2d48d61..e36934f9 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars
@@ -49,4 +49,4 @@
{{! Footer links}}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars
index 2aff7496..e4a9fb2e 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/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/handlebars_templates/chat/status/typing.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars
index 91728f51..fe60281f 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars
@@ -1 +1 @@
-{{L10n "typing.remote"}}
\ No newline at end of file
+{{l10n "typing.remote"}}
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars
index cdbdffc3..6cb49ed6 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars
index 30b1127d..c41e3fcd 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars
@@ -8,16 +8,16 @@
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars
index 77406fc9..30e87801 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars
index e3ffa2d4..fabb3134 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars
@@ -12,7 +12,7 @@
\ No newline at end of file
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars
index f2f9abd5..3218043b 100644
--- a/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars
+++ b/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars
@@ -28,9 +28,9 @@
\n \n\n\n\n'})})();
diff --git a/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js b/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js
index 4c346b2f..b13adce0 100644
--- a/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js
+++ b/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js
@@ -4,31 +4,31 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
-(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.visitor=k(function(b,c,e,a,d){function f(){return"-"}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var g,h=e.helperMissing,j=this.escapeExpression;b='
'})})();
diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars
index a482a764..1e7464bb 100644
--- a/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars
+++ b/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars
@@ -1 +1 @@
-{{name}}{{#unless isLast}},{{/unless}}
\ No newline at end of file
+{{name}}{{#unless isLast}},{{/unless}}
\ No newline at end of file
diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars
index 7a629f6e..0d076727 100644
--- a/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars
+++ b/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars
@@ -1 +1 @@
-
{{L10n "clients.no_clients"}}
\ No newline at end of file
+
{{l10n "clients.no_clients"}}
\ No newline at end of file
diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars
index 17e3f3da..affba3e4 100644
--- a/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars
+++ b/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars
@@ -1 +1 @@
-
{{L10n "visitors.no_visitors"}}
\ No newline at end of file
+
{{l10n "visitors.no_visitors"}}
\ No newline at end of file
diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars
index 339994e4..04e36c60 100644
--- a/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars
+++ b/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars
@@ -1,20 +1,20 @@
\ No newline at end of file
diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars
index ede4845f..e588671c 100644
--- a/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars
+++ b/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars
@@ -1,14 +1,14 @@