Update templates to fit the new translator

This commit is contained in:
Romain Neutron
2013-11-21 19:00:17 +01:00
parent e4c43b8622
commit 16c1930ca0
87 changed files with 361 additions and 317 deletions

View File

@@ -177,7 +177,7 @@ $(document).ready(function(){
$.each(data.files, function(i, file) {
{% set supported_file_types = ['png', 'jpg', 'gif']|join(' | ') %}
if( ! /(\image|\/)(png|jpeg|jpg|pjpg|gif)$/i.test(file.type)) {
alert("{% trans %} Invalid file type, only ({{ supported_file_types }}) file formats are supported {% endtrans %}");
alert("{{ 'Invalid file type, only (%supported_file_types%) file formats are supported' | trans({'%supported_file_types%' : supported_file_types}) | e('js') }}");
return false;
}