浏览代码

texte (title de lien etc)

bastien 13 年前
父节点
当前提交
c5cf7e0b13
共有 2 个文件被更改,包括 15 次插入4 次删除
  1. 11 1
      app/Resources/translations/users.fr.yml
  2. 4 3
      src/Muzich/UserBundle/Resources/views/Info/bar.html.twig

+ 11 - 1
app/Resources/translations/users.fr.yml 查看文件

@@ -10,4 +10,14 @@ user:
10 10
     title:                      Diffusions de %name%
11 11
   reputation:
12 12
     name:                       Reputation
13
-    txt:                        points
13
+    txt:                        points
14
+    
15
+events:
16
+  new_comments:
17
+    no:                         Pas de nouveaux commentaires sur vos partages
18
+    one:                        %count% nouveaux commentaire sur un de vos partages
19
+    yes:                        %count% nouveaux commentaires sur vos partages
20
+    
21
+reputation:
22
+  bar:
23
+    title:                      Votre réputation

+ 4 - 3
src/Muzich/UserBundle/Resources/views/Info/bar.html.twig 查看文件

@@ -1,7 +1,8 @@
1 1
 <div id="events">
2 2
     
3 3
     <div class="score">
4
-      <img src="{{ asset('bundles/muzichcore/img/1332286466_stock_scores.png') }}" alt="score" />
4
+      <img title="{{ 'reputation.bar.title'|trans({}, 'users') }}"
5
+        src="{{ asset('bundles/muzichcore/img/1332286466_stock_scores.png') }}" alt="score" />
5 6
       <span>{{ app.user.reputation }}</span>
6 7
     </div>
7 8
     
@@ -10,14 +11,14 @@
10 11
         {% if events[event_const('TYPE_COMMENT_ADDED_ELEMENT')] is defined %}
11 12
           <a 
12 13
             href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].id}) }}" 
13
-            title="BLLLLLLLLL"
14
+            title="{%if events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count == 1 %}{{ 'events.new_comments.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_comments.yes'|trans({'%count%':events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count}, 'users') }}{% endif %}"
14 15
             class="view_elements_event"
15 16
           >
16 17
             <img src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
17 18
             <span>{{ events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count }}</span>
18 19
           </a>
19 20
         {% else %}
20
-          <img src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
21
+          <img title="{{ 'events.new_comments.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
21 22
           <span>0</span>
22 23
         {% endif %}
23 24
     </div>