PHRAS-1052 #time 1h

-fix : added escaping to js context strings (translation contains a quote)
This commit is contained in:
Jean-Yves Gaulier
2016-03-24 19:43:41 +01:00
parent 99473a65bf
commit adf4968711

View File

@@ -498,18 +498,18 @@
maxDownload: {{max_download}}, maxDownload: {{max_download}},
haveFtp: {% if download.get_total_ftp() > 0 %}true{% else %}false{% endif %}, haveFtp: {% if download.get_total_ftp() > 0 %}true{% else %}false{% endif %},
msg: { msg: {
termOfUseTitle: '{{ "Terms of Use" | trans }}', termOfUseTitle: '{{ "Terms of Use" | trans | e('js') }}',
termOfUseAgree: '{{ 'You must agree to the Terms of Use to continue.' | trans }}', termOfUseAgree: '{{ 'You must agree to the Terms of Use to continue.' | trans | e('js') }}',
requiredFields: '{{ 'Certains champs sont obligatoires, veuillez les remplir' | trans }}', requiredFields: '{{ 'Certains champs sont obligatoires, veuillez les remplir' | trans | e('js') }}',
missingSubdef: '{{ 'Vous devez selectionner un type de sous definitions' | trans }}', missingSubdef: '{{ 'Vous devez selectionner un type de sous definitions' | trans | e('js') }}',
fileTooLarge: '{% trans with {'%max_download%' : max_download} %}You can not directly download more than %max_download% Mo ; time to package all documents is too long{% endtrans %}', fileTooLarge: '{{ 'You can not directly download more than %max_download% Mo ; time to package all documents is too long'|trans({'%max_download%' : max_download})|e('js') }}',
fileTooLargeAlt: '{{ 'You can alternatively receive an email when the download is ready.' | trans }}', fileTooLargeAlt: '{{ 'You can alternatively receive an email when the download is ready.' | trans | e('js') }}',
fileTooLargeEmail: '{{ 'Would you like to receive an e-mail when your download is ready ?' | trans }}', fileTooLargeEmail: '{{ 'Would you like to receive an e-mail when your download is ready ?' | trans | e('js') }}',
success: '{{ "Success" | trans }}', success: '{{ "Success" | trans | e('js') }}',
warning: '{{ "Warning !" | trans }}' warning: '{{ "Warning !" | trans | e('js') }}'
}, },
user: { user: {
email: '{{app.getAuthenticatedUser().getEmail()}}' email: '{{app.getAuthenticatedUser().getEmail() | e('js')}}'
} }
}; };
</script> </script>