diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-09 23:45:12 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-09 23:45:12 +0800 |
commit | e4718d7ae6d1870ec98a0a110fff8d5c0bc596c5 (patch) | |
tree | aeab43fb342fdfe16c4401507294ebf07e24d91d /templates/base.html | |
parent | 4d3d4fc3fffbda4e2d6e111305f84fab915c0a75 (diff) | |
download | askbot-e4718d7ae6d1870ec98a0a110fff8d5c0bc596c5.tar.gz askbot-e4718d7ae6d1870ec98a0a110fff8d5c0bc596c5.tar.bz2 askbot-e4718d7ae6d1870ec98a0a110fff8d5c0bc596c5.zip |
translate header, index and footer pages
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 9 |
1 files changed, 5 insertions, 4 deletions
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 %} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <title>{% block title %}{% endblock %} - CNProg.com 程序员问答社区</title> + <title>{% block title %}{% endblock %} - {{ APP_TITLE }}</title> {% spaceless %} {% block meta %}{% endblock %} {% endspaceless %} @@ -49,9 +50,9 @@ <body> <div class="notify" style="display:none"> <span>{% if request.user.get_messages %} - 恭喜您,社区给您颁发了奖牌:{% for message in request.user.get_messages %} - <font class="darkred">{{ message }}</font>, {% endfor %}查看 - <a href="{{ request.user.get_profile_url }}">个人资料</a>{% endif %}</span> + {% trans "Congratulations! You have new badges: " %}{% for message in request.user.get_messages %} + <font class="darkred">{{ message }}</font>, {% endfor %}{% trans "go to see" %} + <a href="{{ request.user.get_profile_url }}">{% trans "Profile" %}</a>{% endif %}</span> <a class="close-notify" onclick="notify.close(true)">×</a> </div> {% include "header.html" %} |