From daecdea906ddd8121d469820f2e7514387f4ca7b Mon Sep 17 00:00:00 2001 From: Aleksej Date: Mon, 13 Aug 2012 20:28:48 +0400 Subject: [PATCH] added title tags to various pages and marked a string translatable --- mediagoblin/templates/mediagoblin/admin/panel.html | 4 ++++ .../templates/mediagoblin/auth/forgot_password.html | 4 ++++ mediagoblin/templates/mediagoblin/auth/login.html | 4 ++++ mediagoblin/templates/mediagoblin/auth/register.html | 4 ++++ .../templates/mediagoblin/edit/attachments.html | 12 +++++++++++- mediagoblin/templates/mediagoblin/edit/edit.html | 6 ++++++ .../templates/mediagoblin/edit/edit_account.html | 7 +++++++ .../templates/mediagoblin/edit/edit_profile.html | 6 ++++++ mediagoblin/templates/mediagoblin/submit/start.html | 4 ++++ .../mediagoblin/user_pages/processing_panel.html | 4 ++++ 10 files changed, 54 insertions(+), 1 deletion(-) diff --git a/mediagoblin/templates/mediagoblin/admin/panel.html b/mediagoblin/templates/mediagoblin/admin/panel.html index 0da3c18f..618c5c40 100644 --- a/mediagoblin/templates/mediagoblin/admin/panel.html +++ b/mediagoblin/templates/mediagoblin/admin/panel.html @@ -17,6 +17,10 @@ #} {% extends "mediagoblin/base.html" %} +{% block title -%} + {% trans %}Media processing panel{% endtrans %} — {{ super() }} +{%- endblock %} + {% block mediagoblin_content %}

{% trans %}Media processing panel{% endtrans %}

diff --git a/mediagoblin/templates/mediagoblin/auth/forgot_password.html b/mediagoblin/templates/mediagoblin/auth/forgot_password.html index 672e9d9a..46aeddef 100644 --- a/mediagoblin/templates/mediagoblin/auth/forgot_password.html +++ b/mediagoblin/templates/mediagoblin/auth/forgot_password.html @@ -19,6 +19,10 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} +{% block title -%} + {% trans %}Recover password{% endtrans %} — {{ super() }} +{%- endblock %} + {% block mediagoblin_content %}
diff --git a/mediagoblin/templates/mediagoblin/auth/login.html b/mediagoblin/templates/mediagoblin/auth/login.html index 8161ea9d..4a39059d 100644 --- a/mediagoblin/templates/mediagoblin/auth/login.html +++ b/mediagoblin/templates/mediagoblin/auth/login.html @@ -24,6 +24,10 @@ src="{{ request.staticdirect('/js/autofilledin_password.js') }}"> {% endblock %} +{% block title -%} + {% trans %}Log in{% endtrans %} — {{ super() }} +{%- endblock %} + {% block mediagoblin_content %} diff --git a/mediagoblin/templates/mediagoblin/auth/register.html b/mediagoblin/templates/mediagoblin/auth/register.html index 39c9efff..a2505cb9 100644 --- a/mediagoblin/templates/mediagoblin/auth/register.html +++ b/mediagoblin/templates/mediagoblin/auth/register.html @@ -24,6 +24,10 @@ src="{{ request.staticdirect('/js/show_password.js') }}"> {% endblock mediagoblin_head %} +{% block title -%} + {% trans %}Create an account!{% endtrans %} — {{ super() }} +{%- endblock %} + {% block mediagoblin_content %}
-

Editing attachments for {{ media.title }}

+

+ {% trans media_title=media.title -%} + Editing attachments for {{ media_title }} + {%- endtrans %}

diff --git a/mediagoblin/templates/mediagoblin/edit/edit.html b/mediagoblin/templates/mediagoblin/edit/edit.html index 3f7cbe0e..3e305ae0 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit.html +++ b/mediagoblin/templates/mediagoblin/edit/edit.html @@ -19,6 +19,12 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} +{% block title -%} + {% trans media_title=media.title -%} + Editing {{ media_title }} + {%- endtrans %} — {{ super() }} +{%- endblock %} + {% block mediagoblin_content %} {% endblock mediagoblin_head %} +{% block title -%} + {% trans username=user.username -%} + Changing {{ username }}'s account settings + {%- endtrans %} — {{ super() }} +{%- endblock %} + + {% block mediagoblin_content %} diff --git a/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html b/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html index ecbfb409..f6fa69d0 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html +++ b/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html @@ -17,6 +17,10 @@ #} {% extends "mediagoblin/base.html" %} +{% block title -%} + {% trans %}Media processing panel{% endtrans %} — {{ super() }} +{%- endblock %} + {% block mediagoblin_content %}

{% trans %}Media processing panel{% endtrans %}

-- 2.25.1