summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-07-10 19:11:34 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-07-10 19:11:34 -0400
commitbb801f2bbd9f26bebca846b71e8947a1951f86a5 (patch)
treecd4f7417cdbabc6834aeb45f73f09208a738ac2d /templates/base.html
parentd3b7efc1eba6f38fba8d5110c7155f477d1459e6 (diff)
downloadaskbot-bb801f2bbd9f26bebca846b71e8947a1951f86a5.tar.gz
askbot-bb801f2bbd9f26bebca846b71e8947a1951f86a5.tar.bz2
askbot-bb801f2bbd9f26bebca846b71e8947a1951f86a5.zip
english translation
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html34
1 files changed, 21 insertions, 13 deletions
diff --git a/templates/base.html b/templates/base.html
index 90b40612..dca312e3 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,27 +1,34 @@
-{% 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">
+<!-- template base.html -->
+{% load extra_filters %}
+{% load i18n %}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>{% block title %}{% endblock %} - {{ APP_TITLE }}</title>
+ <title>{% block title %}{% endblock %} - {% trans "site title" %} - {% trans "site slogan" %}</title>
{% spaceless %}
{% block meta %}{% endblock %}
{% endspaceless %}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="verify-v1" content="55uGNnQVJW8p1bbXeF/Xbh9I7nZBM/wLhRz6N/I1kkA=" />
+ <meta name="verify-v1" content="{{verify_v1_code}}" />
<link rel="shortcut icon" href="/content/images/favicon.ico" >
<link href="/content/style/style.css" rel="stylesheet" type="text/css" />
- <script type='text/javascript' src='/content/js/com.cnprog.utils.js'></script>
<script src="http://www.google.com/jsapi"></script>
<script>google.load("jquery", "1.2.6");</script>
- <script type="text/javascript">
+ <script type="text/javascript">
+ var i18nLang = 'en';
+ </script>
+ <script type='text/javascript' src='/content/js/com.cnprog.i18n.js'></script>
+ <script type='text/javascript' src='/content/js/jquery.i18n.js'></script>
+ <script type='text/javascript' src='/content/js/com.cnprog.utils.js'></script>
+ <!--<script type="text/javascript">
var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
</script>
<script type="text/javascript">
UserVoice.Tab.show({
- key: 'cnprog',
- host: 'cnprog.uservoice.com',
+ //EDIT!!!
+ key: 'key',
+ host: 'where.uservoice.com',
forum: 'general',
alignment: 'left', /* 'left', 'right' */
background_color:'#777',
@@ -29,7 +36,8 @@
hover_color: '#06C',
lang: 'en' /* 'en', 'de', 'nl', 'es', 'fr' */
})
- </script>
+ </script>-->
+ <!-- todo move this to settings -->
{% with request.user.get_messages as messages%}
{% if messages %}
<style type="text/css">
@@ -40,7 +48,6 @@
notify.show();
});
</script>
-
{% endif %}
{% endwith %}
@@ -50,9 +57,9 @@
<body>
<div class="notify" style="display:none">
<span>{% if request.user.get_messages %}
- {% 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>
+ {% trans "congratulations, community gave you a badge" %}: {% for message in request.user.get_messages %}
+ <font class="darkred">{{ message }}</font>, {% endfor %}查看
+ <a href="{{ request.user.get_profile_url }}">{% trans "profile" %}</a>{% endif %}</span>
<a class="close-notify" onclick="notify.close(true)">&times;</a>
</div>
{% include "header.html" %}
@@ -81,3 +88,4 @@
{% endblock %}
</body>
</html>
+<!-- end template base.html -->