Browse Source

Translation fixes

sh4nks 10 years ago
parent
commit
8b9d0fa163

+ 3 - 2
flaskbb/templates/forum/category_layout.html

@@ -77,14 +77,15 @@
                 <br />
                 <br />
                 {{ forum.last_post_created|time_since }}<br />
                 {{ forum.last_post_created|time_since }}<br />
 
 
+                    {% trans %}by{% endtrans %}
                     {% if forum.last_post_user_id %}
                     {% if forum.last_post_user_id %}
-                    by <a href="{{ url_for('user.profile', username=forum.last_post_username) }}">{{ forum.last_post_username }}</a>
+                    <a href="{{ url_for('user.profile', username=forum.last_post_username) }}">{{ forum.last_post_username }}</a>
                     {% else %}
                     {% else %}
                     {{ forum.last_post_username }}
                     {{ forum.last_post_username }}
                     {% endif %}
                     {% endif %}
 
 
                 {% else %}
                 {% else %}
-                No posts
+                {% trans %}No posts{% endtrans %}
                 {% endif %}
                 {% endif %}
             {% endif %}
             {% endif %}
             </td>
             </td>

+ 13 - 0
flaskbb/templates/user/all_posts.html

@@ -12,6 +12,13 @@
     {{ render_pagination(posts, url_for('user.view_all_posts', username=user.username)) }}
     {{ render_pagination(posts, url_for('user.view_all_posts', username=user.username)) }}
 </div> <!-- end span pagination -->
 </div> <!-- end span pagination -->
 <table class="table table-bordered">
 <table class="table table-bordered">
+    <thead>
+        <tr>
+            <th>
+                {% trans user=user.username %}All Posts created by {{user}}{% endtrans %}
+            </th>
+        </tr>
+    </thead>
     <tbody>
     <tbody>
     {% for post in posts.items %}
     {% for post in posts.items %}
         <tr>
         <tr>
@@ -27,6 +34,12 @@
                 {{ post.content }}
                 {{ post.content }}
             </td>
             </td>
         </tr>
         </tr>
+    {% else %}
+        <tr>
+            <td>
+                {% trans %}No Posts so far.{% endtrans %}
+            </td>
+        </tr>
     {% endfor %}
     {% endfor %}
 
 
     </tbody>
     </tbody>

+ 2 - 2
flaskbb/templates/user/all_topics.html

@@ -17,7 +17,7 @@
     <thead>
     <thead>
         <tr>
         <tr>
             <th colspan="5">
             <th colspan="5">
-                {% trans %}All Topics created by{% endtrans %} {{ user.username }}
+                {% trans user=user.username %}All Topics created by {{user}}{% endtrans %}
             </th>
             </th>
         </tr>
         </tr>
     </thead>
     </thead>
@@ -69,7 +69,7 @@
         {% else %}
         {% else %}
         <tr>
         <tr>
             <td colspan="5">
             <td colspan="5">
-                No Topics so far.
+                {% trans %}No Topics so far.{% endtrans %}
             </td>
             </td>
         </tr>
         </tr>
         {% endfor %}
         {% endfor %}