Explorar el Código

Evolution #187: String brute force

bastien hace 13 años
padre
commit
9407eb94b8

+ 4 - 1
app/Resources/translations/userui.fr.yml Ver fichero

137
     confirm: 
137
     confirm: 
138
       sentence:          Signaler ce commentaire comme inapproprié ?
138
       sentence:          Signaler ce commentaire comme inapproprié ?
139
       yes:               Oui
139
       yes:               Oui
140
-      no:                Non
140
+      no:                Non
141
+      
142
+search_tag:
143
+  title:                 Recherche de tag correspondant à \"%string_search%\" ...

+ 3 - 0
src/Muzich/CoreBundle/Resources/views/layout.html.twig Ver fichero

49
     string_commentreport_confirm_sentence = "{{ 'comment.report.confirm.sentence'|trans({}, 'userui') }}";
49
     string_commentreport_confirm_sentence = "{{ 'comment.report.confirm.sentence'|trans({}, 'userui') }}";
50
     string_commentreport_confirm_yes = "{{ 'comment.report.confirm.yes'|trans({}, 'userui') }}";
50
     string_commentreport_confirm_yes = "{{ 'comment.report.confirm.yes'|trans({}, 'userui') }}";
51
     string_commentreport_confirm_no = "{{ 'comment.report.confirm.no'|trans({}, 'userui') }}";
51
     string_commentreport_confirm_no = "{{ 'comment.report.confirm.no'|trans({}, 'userui') }}";
52
+    {% autoescape false %}
53
+    string_search_tag_title = "{{ 'search_tag.title'|trans({}, 'userui') }}";
54
+    {% endautoescape %}
52
     
55
     
53
     url_index = "{{ path('index') }}";
56
     url_index = "{{ path('index') }}";
54
     url_search_tag = "{{ path('search_tag') }}";
57
     url_search_tag = "{{ path('search_tag') }}";

+ 1 - 1
web/bundles/muzichcore/js/muzich.js Ver fichero

684
       var span_info = divtags.find('span.info');
684
       var span_info = divtags.find('span.info');
685
       span_info.show();
685
       span_info.show();
686
       // TODO: multilingue !
686
       // TODO: multilingue !
687
-      span_info.text("Recherche des tags correspondants à \""+input.val()+"\" ...");
687
+      span_info.text(str_replace('%string_search%', input.val(), string_search_tag_title));
688
 
688
 
689
       // C'est en fonction du nb de resultats qu'il sera affiché
689
       // C'est en fonction du nb de resultats qu'il sera affiché
690
       divtags.find('a.more').hide();
690
       divtags.find('a.more').hide();