浏览代码

Evolution #158: hardcore string

bastien 12 年前
父节点
当前提交
15427dd421

+ 8 - 0
app/Resources/translations/elements.fr.yml 查看文件

@@ -26,6 +26,10 @@ element:
26 26
     link:               Modifier
27 27
   remove:
28 28
     link:               Supprimer
29
+    confirm:
30
+      sentence:         Vraiment supprimer ?
31
+      yes:              Oui
32
+      no:               Non
29 33
   comments: 
30 34
     add:                Ajouter un commentaire
31 35
     thereis:            Afficher le commentaire
@@ -46,6 +50,10 @@ comment:
46 50
     link:               Modifier votre commentaire
47 51
   remove:
48 52
     link:               Supprimer votre commentaire
53
+    confirm:
54
+      sentence:         Vraiment supprimer ?
55
+      yes:              Oui
56
+      no:               Non
49 57
   
50 58
 elements:
51 59
   ajax:

+ 6 - 0
src/Muzich/CoreBundle/Resources/views/layout.html.twig 查看文件

@@ -34,6 +34,12 @@
34 34
     string_tag_add_argument = "{{ 'tags.add.argument'|trans({}, 'userui') }}";
35 35
     string_tag_add_inputs_cancel = "{{ 'tags.add.inputs.cancel'|trans({}, 'userui') }}";
36 36
     string_tag_add_inputs_submit = "{{ 'tags.add.inputs.submit'|trans({}, 'userui') }}";
37
+    string_element_delete_confirm_sentence = "{{ 'element.remove.confirm.sentence'|trans({}, 'elements') }}";
38
+    string_element_delete_confirm_yes = "{{ 'element.remove.confirm.yes'|trans({}, 'elements') }}";
39
+    string_element_delete_confirm_no = "{{ 'element.remove.confirm.no'|trans({}, 'elements') }}";
40
+    string_comment_delete_confirm_sentence = "{{ 'comment.remove.confirm.sentence'|trans({}, 'elements') }}";
41
+    string_comment_delete_confirm_yes = "{{ 'comment.remove.confirm.yes'|trans({}, 'elements') }}";
42
+    string_comment_delete_confirm_no = "{{ 'comment.remove.confirm.no'|trans({}, 'elements') }}";
37 43
     
38 44
     url_index = "{{ path('index') }}";
39 45
     url_search_tag = "{{ path('search_tag') }}";

+ 6 - 6
web/bundles/muzichcore/js/muzich.js 查看文件

@@ -514,9 +514,9 @@ $(document).ready(function(){
514 514
   
515 515
  // Suppression d'un element
516 516
   $('a.element_remove_link').jConfirmAction({
517
-    question : "Vraiment supprimer ?", 
518
-    yesAnswer : "Oui", 
519
-    cancelAnswer : "Non",
517
+    question : string_element_delete_confirm_sentence, 
518
+    yesAnswer : string_element_delete_confirm_yes, 
519
+    cancelAnswer : string_element_delete_confirm_no,
520 520
     onYes: function(link){
521 521
       
522 522
       li = link.parent('td').parent('tr').parent().parent().parent('li.element');
@@ -1402,9 +1402,9 @@ $(document).ready(function(){
1402 1402
       
1403 1403
     // Supprimer
1404 1404
     $('a.comment_remove_link').jConfirmAction({
1405
-    question : "Vraiment supprimer ?", 
1406
-    yesAnswer : "Oui", 
1407
-    cancelAnswer : "Non",
1405
+    question : string_comment_delete_confirm_sentence, 
1406
+    yesAnswer : string_comment_delete_confirm_yes, 
1407
+    cancelAnswer : string_comment_delete_confirm_no,
1408 1408
     onYes: function(link){
1409 1409
       
1410 1410
       li = link.parent('li.comment');