Make sure strings get translated and that interpolation is safe

This commit is contained in:
JC Brand 2017-09-09 10:05:01 +02:00
parent ce56e0d858
commit 196a42dc50
2 changed files with 4 additions and 3 deletions

View File

@ -382,6 +382,7 @@
initialize (cfg) {
cfg.$parent.html(this.$el.html(
tpl_login_panel({
'__': __,
'ANONYMOUS': _converse.ANONYMOUS,
'EXTERNAL': _converse.EXTERNAL,
'LOGIN': _converse.LOGIN,

View File

@ -1,6 +1,6 @@
<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>