From: Elrond Date: Mon, 3 Dec 2012 13:19:28 +0000 (+0100) Subject: Fix translations around. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=32255ec0159837094b459e3f08694fda07ea3651;p=mediagoblin.git Fix translations around. This includes: - Mark more strings for translation - Don't mark html-only nonsense for translation - Mark a better part for translation. --- diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 2d42ff0b..111f9ae8 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -153,7 +153,7 @@ def edit_attachments(request, media): messages.add_message( request, messages.SUCCESS, - "You added the attachment %s!" \ + _("You added the attachment %s!") \ % (request.form['attachment_name'] or request.files['attachment_file'].filename)) diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index bd3467cb..745bb6f9 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -53,7 +53,12 @@ {% block mediagoblin_header_title %}{% endblock %}
{% if request.user %} - {{ request.user.username }}{% trans %}'s account{% endtrans %} + {% trans + user_url=request.urlgen('mediagoblin.user_pages.user_home', + user= request.user.username), + user_name=request.user.username -%} + {{ user_name }}'s account + {%- endtrans %} ({% trans %}log out{% endtrans %}) {% if request.user and request.user.status == 'active' %} {% trans %}Add media{% endtrans %} diff --git a/mediagoblin/templates/mediagoblin/edit/attachments.html b/mediagoblin/templates/mediagoblin/edit/attachments.html index 641306e8..31084c30 100644 --- a/mediagoblin/templates/mediagoblin/edit/attachments.html +++ b/mediagoblin/templates/mediagoblin/edit/attachments.html @@ -53,11 +53,14 @@ {% endif %} -

{% trans %]Add attachment{% endtrans %}

+

{% trans %}Add attachment{% endtrans %}

{{ wtforms_util.render_divs(form) }}
diff --git a/mediagoblin/templates/mediagoblin/utils/collection_gallery.html b/mediagoblin/templates/mediagoblin/utils/collection_gallery.html index 5f8ffea1..25def418 100644 --- a/mediagoblin/templates/mediagoblin/utils/collection_gallery.html +++ b/mediagoblin/templates/mediagoblin/utils/collection_gallery.html @@ -35,21 +35,21 @@ {% if item.note %} - {%- trans note=item.note -%}
- {{ note }} - {%- endtrans -%} + {{ item.note }} {% endif %} {% if request.user and (item.in_collection.creator == request.user._id or request.user.is_admin) %} - {%- trans remove_url=request.urlgen( + {%- set remove_url=request.urlgen( 'mediagoblin.user_pages.collection_item_confirm_remove', user=item.in_collection.get_creator.username, collection=item.in_collection.slug, collection_item=item.id) -%} -
(remove) - {%- endtrans -%} +
+ + {%- trans %}(remove){% endtrans -%} + {% endif %} {% endfor %}