Browse Source

Evolution #187: String brute force

bastien 12 years ago
parent
commit
9407eb94b8

+ 4 - 1
app/Resources/translations/userui.fr.yml View File

@@ -137,4 +137,7 @@ comment:
137 137
     confirm: 
138 138
       sentence:          Signaler ce commentaire comme inapproprié ?
139 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 View File

@@ -49,6 +49,9 @@
49 49
     string_commentreport_confirm_sentence = "{{ 'comment.report.confirm.sentence'|trans({}, 'userui') }}";
50 50
     string_commentreport_confirm_yes = "{{ 'comment.report.confirm.yes'|trans({}, 'userui') }}";
51 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 56
     url_index = "{{ path('index') }}";
54 57
     url_search_tag = "{{ path('search_tag') }}";

+ 1 - 1
web/bundles/muzichcore/js/muzich.js View File

@@ -684,7 +684,7 @@ $(document).ready(function(){
684 684
       var span_info = divtags.find('span.info');
685 685
       span_info.show();
686 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 689
       // C'est en fonction du nb de resultats qu'il sera affiché
690 690
       divtags.find('a.more').hide();