Changing translations to say "amount of time ago", basically
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 13 Apr 2013 16:57:16 +0000 (11:57 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 13 Apr 2013 16:57:16 +0000 (11:57 -0500)
Previously they were just "amount of time"... I think this fits a bit better.

mediagoblin/templates/mediagoblin/user_pages/media.html

index 58b9cdce1808fc7a0742373e904c5d5ce1617467..11392ec138db0f62bc31cad00853ea22150015ba 100644 (file)
                             user=comment_author.username) }}">
               {{- comment_author.username -}}
             </a>
-            {% trans %}at{% endtrans %}
             <a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',
                             comment=comment.id,
                             user=media.get_uploader.username,
                             media=media.slug_or_id) }}#comment">
               <span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
-                {{ timesince(comment.created) }}
-              </span>
-            </a>:
+                {%- trans formatted_time=timesince(comment.created) -%}
+                  {{ formatted_time }} ago
+                {%- endtrans -%}
+              </span></a>:
           </div>
           <div class="comment_content">
             {% autoescape False -%}
     {% endif %}
   </div>
   <div class="media_sidebar">
-    {% trans date=media.created.strftime("%Y-%m-%d"), formatted_time=timesince(media.created) -%}
-      <h3>Added on</h3>
-      <p><span title="{{ date }}">{{ formatted_time }}</span></p>
-    {%- endtrans %}
+    <h3>Added</h3>
+    <p><span title="{{ media.created.strftime("%Y-%m-%d") }}">
+        {%- trans formatted_time=timesince(media.created) -%}    
+          {{ formatted_time }} ago
+        {%- endtrans -%}
+    </span></p>
     {% if media.tags %}
       {% include "mediagoblin/utils/tags.html" %}
     {% endif %}