Make translatable table columns titles in media processing panel
authorLaura Arjona Reina <larjona99@gmail.com>
Sat, 26 Jul 2014 00:54:56 +0000 (02:54 +0200)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 29 Jul 2014 16:00:37 +0000 (11:00 -0500)
mediagoblin/templates/mediagoblin/moderation/media_panel.html

index 3c929d4fb59e665c5ffc1db15a2c2561c2f1db4d..9b77f638c3a0a26bbee66573ae0174ae3bbaa465 100644 (file)
 {% if processing_entries.count() %}
   <table class="media_panel processing">
     <tr>
-      <th>ID</th>
-      <th>User</th>
-      <th>Title</th>
-      <th>When submitted</th>
-      <th>Transcoding progress</th>
+      <th>{% trans %}ID{% endtrans %}</th>
+      <th>{% trans %}User{% endtrans %}</th>
+      <th>{% trans %}Title{% endtrans %}</th>
+      <th>{% trans %}When submitted{% endtrans %}</th>
+      <th>{% trans %}Transcoding progress{% endtrans %}</th>
     </tr>
     {% for media_entry in processing_entries %}
       <tr>
@@ -50,7 +50,7 @@
         {% if media_entry.transcoding_progress %}
           <td>{{ media_entry.transcoding_progress }}%</td>
         {% else %}
-        <td>Unknown</td>
+        <td>{% trans %}Unknown{% endtrans %}</td>
         {% endif %}
       </tr>
     {% endfor %}
 
   <table class="media_panel failed">
     <tr>
-      <th>ID</th>
-      <th>User</th>
-      <th>Title</th>
-      <th>When submitted</th>
-      <th>Reason for failure</th>
-      <th>Failure metadata</th>
+      <th>{% trans %}ID{% endtrans %}</th>
+      <th>{% trans %}User{% endtrans %}</th>
+      <th>{% trans %}Title{% endtrans %}</th>
+      <th>{% trans %}When submitted{% endtrans %}</th>
+      <th>{% trans %}Reason for failure{% endtrans %}</th>
+      <th>{% trans %}Failure metadata{% endtrans %}</th>
     </tr>
     {% for media_entry in failed_entries %}
       <tr>
 
   <table class="media_panel processed">
     <tr>
-        <th>ID</th>
-        <th>User</th>
-        <th>Title</th>
-        <th>Submitted</th>
+        <th>{% trans %}ID{% endtrans %}</th>
+        <th>{% trans %}User{% endtrans %}</th>
+        <th>{% trans %}Title{% endtrans %}</th>
+        <th>{% trans %}Submitted{% endtrans %}</th>
     </tr>
     {% for media_entry in processed_entries %}
       <tr>