From e4718d7ae6d1870ec98a0a110fff8d5c0bc596c5 Mon Sep 17 00:00:00 2001 From: Mike Chen Date: Thu, 9 Jul 2009 23:45:12 +0800 Subject: translate header, index and footer pages --- templates/base.html | 9 ++++---- templates/base_content.html | 13 ++++++----- templates/footer.html | 16 ++++++-------- templates/header.html | 37 ++++++++++++++++--------------- templates/index.html | 53 ++++++++++++++++++++++----------------------- templates/logout.html | 9 ++++---- 6 files changed, 68 insertions(+), 69 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 3ed3b3f4..90b40612 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,8 +1,9 @@ {% load extra_filters %} +{% load i18n %} - {% block title %}{% endblock %} - CNProg.com 程序员问答社区 + {% block title %}{% endblock %} - {{ APP_TITLE }} {% spaceless %} {% block meta %}{% endblock %} {% endspaceless %} @@ -49,9 +50,9 @@ {% include "header.html" %} diff --git a/templates/base_content.html b/templates/base_content.html index 7fec09ed..6dec6cae 100644 --- a/templates/base_content.html +++ b/templates/base_content.html @@ -1,7 +1,8 @@ - +{% load i18n %} + - {% block title %}{% endblock %} - CNProg.com 程序员问答社区 + {% block title %}{% endblock %} - {{ APP_TITLE }} @@ -48,10 +49,10 @@ {% include "header.html" %}
diff --git a/templates/footer.html b/templates/footer.html index 2e3d6293..46649b9f 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,23 +1,21 @@ {% load extra_tags %} - +{% load i18n %} - \ No newline at end of file + diff --git a/templates/header.html b/templates/header.html index b362a5e6..1da107b6 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,13 +1,14 @@ {% load extra_tags %} +{% load i18n %}
@@ -17,24 +18,24 @@ @@ -49,16 +50,16 @@
- +
- 问题 - 标签 - 用户 + {% trans "Questions" %} + {% trans "Tags" %} + {% trans "Users" %}
-
\ No newline at end of file + diff --git a/templates/index.html b/templates/index.html index bc159ca9..ba3e2229 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,9 +2,10 @@ {% load extra_tags %} {% load humanize %} {% load extra_filters %} -{% block title %}{% spaceless %}首页{% endspaceless %}{% endblock %} -{% block meta %} - {% endblock %} +{% load i18n %} +{% block title %}{% spaceless %}{% trans "Home" %}{% endspaceless %}{% endblock %} +{% block meta %} + {% endblock %} {% block forejs %}