diff --git a/mediagoblin/templates/mediagoblin/auth/login.html b/mediagoblin/templates/mediagoblin/auth/login.html index e25783ea..8b1e2296 100644 --- a/mediagoblin/templates/mediagoblin/auth/login.html +++ b/mediagoblin/templates/mediagoblin/auth/login.html @@ -23,21 +23,23 @@
{% endblock %} diff --git a/mediagoblin/templates/mediagoblin/auth/register.html b/mediagoblin/templates/mediagoblin/auth/register.html index f77b3782..5d512829 100644 --- a/mediagoblin/templates/mediagoblin/auth/register.html +++ b/mediagoblin/templates/mediagoblin/auth/register.html @@ -24,10 +24,11 @@ diff --git a/mediagoblin/templates/mediagoblin/auth/resent_verification_email.html b/mediagoblin/templates/mediagoblin/auth/resent_verification_email.html index da3a9e99..8fd80ee9 100644 --- a/mediagoblin/templates/mediagoblin/auth/resent_verification_email.html +++ b/mediagoblin/templates/mediagoblin/auth/resent_verification_email.html @@ -19,6 +19,6 @@ {% block mediagoblin_content %}- Resent your verification email. + {% trans %}Resent your verification email.{% endtrans %}
{% endblock %} diff --git a/mediagoblin/templates/mediagoblin/auth/verification_email.txt b/mediagoblin/templates/mediagoblin/auth/verification_email.txt index 7863374d..cb01600d 100644 --- a/mediagoblin/templates/mediagoblin/auth/verification_email.txt +++ b/mediagoblin/templates/mediagoblin/auth/verification_email.txt @@ -15,8 +15,10 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see- Submit an item + {% trans %}Submit an item{% endtrans %}
{% else %}- If you have an account, you can - Login. + {% trans login_url=request.urlgen('mediagoblin.auth.login') %}If you have an account, you can + Login.{% endtrans %}
{% if allow_registration %}- If you don't have an account, please - Register. + {% trans + register_url=request.urlgen('mediagoblin.auth.register') %}If you don't have an account, please + Register.{% endtrans %}
{% endif %} {% endif %} diff --git a/mediagoblin/templates/mediagoblin/submit/start.html b/mediagoblin/templates/mediagoblin/submit/start.html index 6d00510c..eb34c2e2 100644 --- a/mediagoblin/templates/mediagoblin/submit/start.html +++ b/mediagoblin/templates/mediagoblin/submit/start.html @@ -23,13 +23,13 @@ diff --git a/mediagoblin/templates/mediagoblin/user_pages/gallery.html b/mediagoblin/templates/mediagoblin/user_pages/gallery.html index 637c892d..71f14da4 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/gallery.html +++ b/mediagoblin/templates/mediagoblin/user_pages/gallery.html @@ -29,7 +29,9 @@Sorry, no such user found.
+{% trans %}Sorry, no such user found.{% endtrans %}
{% endif %} {% endblock %} diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index a1382518..92894d0d 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -38,24 +38,24 @@ {% endautoescape %}- — uploaded on - {{ "%4d-%02d-%02d"|format(media.created.year, - media.created.month, media.created.day) }} - by - - {{- media.uploader().username }} + {% trans date="%4d-%02d-%02d"|format(media.created.year, + media.created.month, media.created.day), user_url= + request.urlgen('mediagoblin.user_pages.user_home',user= + media.uploader().username), + username=media.uploader().username %} + — uploaded on {{ date }} by {{ username }}{% endtrans %}
Sorry, no such media found.
+{% trans %}Sorry, no such media found.{% endtrans %}
{% endif %} {% endblock %} diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html index 76cf36be..c3ad07db 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/user.html +++ b/mediagoblin/templates/mediagoblin/user_pages/user.html @@ -27,53 +27,56 @@ {% block mediagoblin_content -%} {# If no user... #} {% if not user %} -Sorry, no such user found.
+{% trans %}Sorry, no such user found.{% endtrans %}
{# User exists, but needs verification #} {% elif user.status == "needs_email_verification" %} {% if user == request.user %} {# this should only be visible when you are this user #}Almost done! Your account still needs to be verified.
+{% trans %}Almost done! Your account still needs to be + verified.{% endtrans %}
- An email should arrive in a few moments with instructions - on how to do so. + {% trans %}An email should arrive in a few moments with + instructions on how to do so.{% endtrans %}
-In case it doesn't:
+{% trans %}In case it doesn't:{% endtrans %}
Resend verification email + class="button">{% trans %}Resend verification email{% endtrans %}- Someone has registered an account with this username, but it - still has to be verified. + {% trans %}Someone has registered an account with this + username, but it still has to be verified.{% endtrans %}
- If you are that person but you've lost your verification + {% trans login_url=request.urlgen('mediagoblin.auth.login') + %}If you are that person but you've lost your verification email, you can - log in - and resend it. + log in and resend it.{% + endtrans %}
View all of {{ user.username }}'s media
- atom feed +{% trans + username=user.username %}View all of {{ username }}'s media{% + endtrans %}
+ {% trans %}atom feed1{% + endtrans %}
Sidebar content here!
+{% trans %}Sidebar content here!{% endtrans %}
{% if media['uploader'] == request.user['_id'] or @@ -117,7 +117,7 @@