Commit 196a42dc authored by JC Brand's avatar JC Brand

Make sure strings get translated and that interpolation is safe

parent ce56e0d8
......@@ -382,6 +382,7 @@
initialize (cfg) {
cfg.$parent.html(this.$el.html(
tpl_login_panel({
'__': __,
'ANONYMOUS': _converse.ANONYMOUS,
'EXTERNAL': _converse.EXTERNAL,
'LOGIN': _converse.LOGIN,
......
<div class="conn-feedback">
<p class="feedback-subject {{ conn_feedback_class }}">{{ conn_feedback_subject }}</p>
<p class="feedback-message {{ conn_feedback_class }}">{{ conn_feedback_message }} </p>
<p class="feedback-subject {{{ conn_feedback_class }}}">{{{ conn_feedback_subject }}}</p>
<p class="feedback-message {{{ conn_feedback_class }}}">{{{ conn_feedback_message }}}</p>
</div>
<form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">
......@@ -27,5 +27,5 @@
</form>
<form class="pure-form pure-form-stacked converse-form" id="converse-register" method="post">
<p>Don't have a chat account? You can <a class="register-account">register an account</a></p>
<p>{{{ __("Don't have a chat account?") }}} <a class="register-account" href="#register">{{{__("Register an account here")}}}</a></p>
</form>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment