1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 23:38:37 +00:00

Added i18n for seahub

This commit is contained in:
zhengxie 2012-10-20 16:22:19 +08:00
parent 1418a244cd
commit 2afa404385
4 changed files with 65 additions and 1 deletions

6
i18n.sh.template Executable file
View File

@ -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

Binary file not shown.

View File

@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View File

@ -1,10 +1,11 @@
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% block top_bar_myaccount_class %} class="cur"{% endblock %}
{% block nav %}
<ul class="nav">
<li>
<a href="{{ SITE_ROOT }}home/my/" {% block nav_myhome_class %}{% endblock %}>我的页面</a>
<a href="{{ SITE_ROOT }}home/my/" {% block nav_myhome_class %}{% endblock %}>{% trans "My Home" %}</a>
</li>
{% if not cloud_mode %}
<li>