1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00

translation

This commit is contained in:
llj
2012-10-30 20:37:48 +08:00
parent 3ad2a2cf0a
commit f1ef097bac
8 changed files with 94 additions and 76 deletions

Binary file not shown.

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-30 14:40+0800\n"
"POT-Creation-Date: 2012-10-30 20:27+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"
@@ -27,11 +27,11 @@ msgstr "两次输入的密码不一致"
#: forms.py:49 forms.py:222
msgid "Email is required"
msgstr ""
msgstr "请输入邮箱"
#: forms.py:50
msgid "Email is not longer than 512 characters"
msgstr "邮箱太长,不超过512个字符"
msgstr "邮箱不超过512个字符"
#: forms.py:67
msgid "Name can't be empty"
@@ -64,11 +64,11 @@ msgstr "名称 %s 含有无效字符"
#: forms.py:124 forms.py:147 forms.py:171 forms.py:194
msgid "Repo id is required"
msgstr "需要 repo id"
msgstr "repo id 为必填项"
#: forms.py:125 forms.py:148 forms.py:172
msgid "Parent dir is required"
msgstr "需要 parent dir"
msgstr "parent dir 为必填项"
#: forms.py:128 forms.py:152
msgid "File name is too long"
@@ -102,7 +102,7 @@ msgstr "目录名 %s 含有无效字符"
#: forms.py:195
msgid "Username is required"
msgstr "需要 username"
msgstr "用户名为必填项"
#: forms.py:196
msgid "Password can't be empty"
@@ -231,8 +231,8 @@ msgstr "取消"
#: templates/decrypt_repo_form.html:9
msgid ""
"This library is encrypt, please input password. The password will live on "
"server for 1 hour."
"This library is encrypted. Please input the password if you want to browse "
"it online. And the password will be kept on the server for only 1 hour."
msgstr ""
"该资料库已加密。如需在线查看里面的内容,请输入解密密码。密码只会在服务器上暂"
"存1小时。"
@@ -257,6 +257,65 @@ msgstr "密码:"
msgid "Submit"
msgstr "提交"
#: templates/file_revisions.html:6
msgid "'s Version History"
msgstr " 版本历史"
#: templates/file_revisions.html:7
msgid ""
"Tip:a new version will be generated after each modification, and you can "
"restore the file to a previous version."
msgstr "Tip每次修改后都会生成一个新的版本, 您可以将当前文件恢复到之前的某个版本。"
#: templates/file_revisions.html:10 templates/text_diff.html:8
msgid "Current Path:"
msgstr "当前路径:"
#: templates/file_revisions.html:23
msgid "Time"
msgstr "时间"
#: templates/file_revisions.html:24 templates/repo_view_snapshot.html:16
msgid "Last Modifier"
msgstr "最后修改者"
#: templates/file_revisions.html:25 templates/repo.html:98
#: templates/repo_history_view.html:51
msgid "Size"
msgstr "大小"
#: templates/file_revisions.html:26 templates/public_home.html:25
#: templates/repo.html:99 templates/repo_view_snapshot.html:18
#: templates/snippets/my_owned_repos.html:21
#: templates/snippets/my_owned_repos.html:54
msgid "Operations"
msgstr "操作"
#: templates/file_revisions.html:33
msgid "(current version)"
msgstr "(当前版本)"
#: templates/file_revisions.html:43 templates/repo.html:58
#: templates/repo_history.html:33 templates/repo_history_view.html:20
#: templates/repo_view_snapshot.html:33
msgid "Unknown"
msgstr "未知"
#: templates/file_revisions.html:50 templates/repo_view_snapshot.html:44
msgid "Restore"
msgstr "还原"
#: templates/file_revisions.html:52 templates/public_home.html:46
#: templates/repo.html:21 templates/repo.html.py:137
#: templates/repo_view_file.html:123 templates/snippets/my_owned_repos.html:34
#: templates/snippets/my_owned_repos.html:76
msgid "Download"
msgstr "下载"
#: templates/file_revisions.html:53 templates/repo_view_snapshot.html:43
msgid "View"
msgstr "查看"
#: templates/myhome.html:15
msgid "No Nickname"
msgstr "暂无昵称"
@@ -393,13 +452,6 @@ msgstr "更新时间"
msgid "Share From"
msgstr "共享来源"
#: templates/public_home.html:25 templates/repo.html:99
#: templates/repo_view_snapshot.html:18
#: templates/snippets/my_owned_repos.html:21
#: templates/snippets/my_owned_repos.html:54
msgid "Operations"
msgstr "操作"
#: templates/public_home.html:31 templates/snippets/my_owned_repos.html:25
#: templates/snippets/my_owned_repos.html:61
#: templates/snippets/repo_create_form.html:11
@@ -413,13 +465,6 @@ msgstr "可读写"
msgid "Read-Only"
msgstr "只读"
#: templates/public_home.html:46 templates/repo.html:21
#: templates/repo.html.py:137 templates/repo_view_file.html:123
#: templates/snippets/my_owned_repos.html:34
#: templates/snippets/my_owned_repos.html:76
msgid "Download"
msgstr "下载"
#: templates/public_home.html:53
msgid ""
"You can create a public library, others can view and download this library."
@@ -458,11 +503,6 @@ msgstr "历史"
msgid "Generated by system"
msgstr "系统自动生成"
#: templates/repo.html:58 templates/repo_history.html:33
#: templates/repo_history_view.html:20 templates/repo_view_snapshot.html:33
msgid "Unknown"
msgstr "未知"
#: templates/repo.html:71
msgid "You can't access this library."
msgstr "无法在线查看该资料库。"
@@ -483,10 +523,6 @@ msgstr "目录"
msgid "New File"
msgstr "新建文件"
#: templates/repo.html:98 templates/repo_history_view.html:51
msgid "Size"
msgstr "大小"
#: templates/repo.html:104
msgid "Directory icon"
msgstr "目录图标"
@@ -500,7 +536,7 @@ msgstr "更多操作"
msgid "Delete"
msgstr "删除"
#: templates/repo.html:116 templates/repo.html.py:146 templates/repo.html:286
#: templates/repo.html:116 templates/repo.html.py:146
msgid "Rename"
msgstr "重命名"
@@ -558,6 +594,10 @@ msgstr "文件"
msgid "directory"
msgstr "目录"
#: templates/repo.html:286
msgid "Rename "
msgstr "重命名"
#: templates/repo.html:286 templates/repo.html.py:348
msgid "to:"
msgstr "到:"
@@ -664,7 +704,7 @@ msgstr "获取中...请稍侯"
msgid "The owner of this library has ran out of space. Upload failed."
msgstr "该资料库拥有者的空间已用完, 文件上传失败。"
#: templates/repo_view_file.html:15
#: templates/repo_view_file.html:15 templates/repo_view_snapshot.html:7
msgid "snapshots"
msgstr "镜像"
@@ -765,10 +805,6 @@ msgstr "操作失败:"
msgid ", failed"
msgstr ",操作失败"
#: templates/repo_view_snapshot.html:7
msgid "snapshot viewing"
msgstr "镜像浏览"
#: templates/repo_view_snapshot.html:8
msgid "Back to modification history"
msgstr "返回修改历史"
@@ -777,30 +813,14 @@ msgstr "返回修改历史"
msgid "Create Time"
msgstr "生成时间"
#: templates/repo_view_snapshot.html:16
msgid "Last Modifier"
msgstr "最后修改者"
#: templates/repo_view_snapshot.html:17
msgid "Detail"
msgstr "修改内容"
#: templates/repo_view_snapshot.html:43
msgid "View"
msgstr "查看"
#: templates/repo_view_snapshot.html:44
msgid "Restore"
msgstr "还原"
#: templates/text_diff.html:6
msgid "modification details"
msgstr "修改详情"
#: templates/text_diff.html:8
msgid "Current Path:"
msgstr "当前路径:"
#: templates/text_diff.html:19
msgid "It's a newly-created blank file."
msgstr "该文件为新建空白文件。"
@@ -890,7 +910,6 @@ msgid "We've send a password reset email to your email."
msgstr "我们已经把密码重置说明发往您提交的邮箱里,请查收。"
#: templates/registration/password_reset_email.html:2
#, python-format
msgid ""
"You're receiving this e-mail because you requested a password reset for your "
"user account at %(site_name)s. "
@@ -909,7 +928,6 @@ msgid "Thanks for using our site!"
msgstr "感谢使用!"
#: templates/registration/password_reset_email.html:12
#, python-format
msgid "The %(site_name)s team"
msgstr "%(site_name)s 团队"
@@ -1121,6 +1139,9 @@ msgstr "Tip必须是团体内成员或群组输入 all 共享到公共资
msgid "Tip: type all to share to public library."
msgstr "Tip输入 all 共享到公共资料"
#~ msgid "snapshot viewing"
#~ msgstr "镜像浏览"
#~ msgid "Folder"
#~ msgstr "目录"

Binary file not shown.

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-29 20:24+0800\n"
"POT-Creation-Date: 2012-10-30 19:35+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"

View File

@@ -6,7 +6,7 @@
<div class="repo-file-list-outer-container">
<div class="repo-file-list-inner-container">
<div class="repo-file-list-not-show">
<p class="access-notice">{% trans "This library is encrypt, please input password. The password will live on server for 1 hour." %}</p>
<p class="access-notice">{% trans "This library is encrypted. Please input the password if you want to browse it online. And the password will be kept on the server for only 1 hour." %}</p>
<form action="{{ SITE_ROOT }}repo/{{ repo.id }}/?next={{ next }}" method="post">
<label>{% trans "Password: " %}</label>
<input type="hidden" name="repo_id" value="{{ repo.id }}" />
@@ -21,6 +21,3 @@
</div>
</div>
{% endblock %}
{% block extra_script %}
{% endblock %}

View File

@@ -1,13 +1,13 @@
{% extends base_template %}
{% load seahub_tags avatar_tags %}
{% load seahub_tags avatar_tags i18n %}
{% load url from future %}
{% block main_panel %}
<h2>{{ u_filename }} 版本历史</h2>
<p class="tip">Tip: 文件在每次修改后会生成一个新的版本,可以把当前文件内容“还原”到特定的版本。</p>
<h2>{{ u_filename }}{% trans "'s Version History" %}</h2>
<p class="tip">{% trans "Tip:a new version will be generated after each modification, and you can restore the file to a previous version." %}</p>
<p class="path">
当前路径:
{% trans 'Current Path:' %}
{% for name, link in zipped %}
{% if not forloop.last %}
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> /
@@ -20,17 +20,17 @@
<div class="commit-list-inner-container">
<table class="commit-list">
<tr>
<th width="30%" class="time">版本生成时间</th>
<th width="20%">最后修改者</th>
<th width="20%">大小</th>
<th width="30%">操作</th>
<th width="30%" class="time">{% trans 'Time' %}</th>
<th width="20%">{% trans 'Last Modifier' %}</th>
<th width="20%">{% trans 'Size' %}</th>
<th width="30%">{% trans 'Operations' %}</th>
</tr>
{% for commit in commits %}
<tr>
<td class="time">
{{ commit.props.ctime|translate_commit_time }}
{% if commit.is_current_version %}
(当前版本)
{% trans '(current version)' %}
{% endif %}
</td>
@@ -40,17 +40,17 @@
<a href="{{ SITE_ROOT }}profile/{{ commit.creator_name }}/">{{ commit.creator_name|email2nickname }}</a>
</td>
{% else %}
<td>未知</td>
<td>{% trans 'Unknown' %}</td>
{% endif %}
<td>{{ commit.revision_file_size|filesizeformat }} </td>
<td>
{% if not commit.is_current_version %}
<a href="{{ SITE_ROOT }}repo/revert_file/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&from=file_revisions" class="op">还原</a>
<a href="{{ SITE_ROOT }}repo/revert_file/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&from=file_revisions" class="op">{% trans 'Restore' %}</a>
{% endif %}
<a href="{{ SITE_ROOT }}repo/file_revisions/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&op=download" class="op">下载</a>
<a href="{% url 'repo_view_file' repo.id %}?obj_id={{ commit.file_id }}&commit_id={{ commit.id }}&p={{path|urlencode}}&from=file_history" class="op">查看</a>
<a href="{{ SITE_ROOT }}repo/file_revisions/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&op=download" class="op">{% trans 'Download' %}</a>
<a href="{% url 'repo_view_file' repo.id %}?obj_id={{ commit.file_id }}&commit_id={{ commit.id }}&p={{path|urlencode}}&from=file_history" class="op">{% trans 'View' %}</a>
</td>
</tr>
{% endfor %}

View File

@@ -283,7 +283,7 @@ $('.file-rename, .dir-rename').click(function () {
var type = $(this).hasClass('file-rename') ? '{% trans "file" %} ' : '{% trans "directory" %} ',
name = $(this).attr('data');
newname = $('#rename-form input[name="newname"]');
$('#rename-hd').html( '{% trans "Rename" %}' + type + ' <span class="op-target">' + name + '</span> {% trans "to:" %}');
$('#rename-hd').html( '{% trans "Rename " %}' + type + ' <span class="op-target">' + name + '</span> {% trans "to:" %}');
$('#rename-form input[name="oldname"]').val(name);
$('#rename-form').modal({appendTo:'#main'});
newname.before('<p class="hide">' + name + '</p>');

View File

@@ -4,7 +4,7 @@
{% block main_panel %}
<div class="w100 ovhd">
<h2 class="fleft">{{repo.props.name}} {% trans "snapshot viewing"%}</h2>
<h2 class="fleft">{{repo.props.name}} {% trans "snapshots"%}</h2>
<button data="{{ SITE_ROOT }}repo/history/{{ repo.props.id }}/" class="fright" id="back">{% trans "Back to modification history"%}</button>
</div>
@@ -81,6 +81,6 @@
$('#back').click(function() {
location.href = $(this).attr('data');
});
addConfirmTo($(".repo-revert"), gettext('Confirm to restore this library?'));
addConfirmTo($(".repo-revert"), gettext('Really want to restore this library?'));
</script>
{% endblock %}