diff --git a/i18n.sh.template b/i18n.sh.template new file mode 100755 index 0000000000..9e66c1d8a8 --- /dev/null +++ b/i18n.sh.template @@ -0,0 +1,6 @@ +#!/bin/sh + +# Ignore all apps +django-admin.py makemessages -l zh_CN -e py,html -i "thirdpart*" -i "api*" -i "avatar*" -i "base*" -i "contacts*" -i "group*" -i "notifications*" -i "organizations*" -i "profile*" -i "share*" + +django-admin.py compilemessages diff --git a/locale/zh_CN/LC_MESSAGES/django.mo b/locale/zh_CN/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..cdfdb24eef Binary files /dev/null and b/locale/zh_CN/LC_MESSAGES/django.mo differ diff --git a/locale/zh_CN/LC_MESSAGES/django.po b/locale/zh_CN/LC_MESSAGES/django.po new file mode 100644 index 0000000000..544e5a36ed --- /dev/null +++ b/locale/zh_CN/LC_MESSAGES/django.po @@ -0,0 +1,57 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-20 16:19+0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#: forms.py:26 +msgid "A user with this email already" +msgstr "" + +#: forms.py:40 +msgid "The two password fields didn't match." +msgstr "" + +#: templates/myhome_base.html:8 +msgid "My Home" +msgstr "我的页面" + +#: templates/registration/password_reset_email.html:2 +msgid "You're receiving this e-mail because you requested a password reset" +msgstr "" + +#: templates/registration/password_reset_email.html:3 +#, python-format +msgid "for your user account at %(site_name)s" +msgstr "" + +#: templates/registration/password_reset_email.html:5 +msgid "Please go to the following page and choose a new password:" +msgstr "" + +#: templates/registration/password_reset_email.html:9 +msgid "Your username, in case you've forgotten:" +msgstr "" + +#: templates/registration/password_reset_email.html:11 +msgid "Thanks for using our site!" +msgstr "" + +#: templates/registration/password_reset_email.html:13 +#, python-format +msgid "The %(site_name)s team" +msgstr "" diff --git a/templates/myhome_base.html b/templates/myhome_base.html index 79f7bad6cd..5a690b8e2b 100644 --- a/templates/myhome_base.html +++ b/templates/myhome_base.html @@ -1,10 +1,11 @@ {% extends "base.html" %} {% load url from future %} +{% load i18n %} {% block top_bar_myaccount_class %} class="cur"{% endblock %} {% block nav %}