Permalink
Browse files

translation: Add complete Chinese(zh) translation

Fixes #514

Squashed commit of the following:

commit fc4670eb9ba9f7cf8ac3180c4036a61535130a94
Author: Feather Andelf <andelf@gmail.com>
Date:   Sat Feb 2 21:05:09 2013 +0800

    l10n/translation: fix missing underscore in admin_overview.tpl

commit 2a0c178f1558f573ae8e081365c52ffabc971bc8
Author: Feather Andelf <andelf@gmail.com>
Date:   Fri Feb 1 14:58:54 2013 +0800

    l10n/translation: fix missing underscore translate tag in media upload dialog

commit 5d94f9e4402323c9199b09400be6e4b8ca778a5f
Author: Feather Andelf <andelf@gmail.com>
Date:   Fri Feb 1 00:22:37 2013 +0800

    l10n/translation: fix mixing translation underscore in .tpl & .erl

commit 44ab45d2463503e7c70df817d5be08d9ca4441bf
Author: Feather Andelf <andelf@gmail.com>
Date:   Thu Jan 31 21:56:46 2013 +0800

    translation: Added complete chinese translation(zh)

commit c6d8630c12758b05fef4512c1214ab0f74e584b7
Author: Feather Andelf <andelf@gmail.com>
Date:   Thu Jan 31 01:05:10 2013 +0800

    translation: add more chinese translation, fix typo

commit 93a49d68ce3e8bb07b623193e1b01b4af4097746
Author: Feather Andelf <andelf@gmail.com>
Date:   Mon Jan 14 15:07:33 2013 +0800

    zh translation: update some translation, fix typo

commit 1163281344daeefaf766cda07c5bacc3ffa7adbc
Author: Feather Andelf <andelf@gmail.com>
Date:   Sun Jan 13 14:24:53 2013 +0800

    translations: Chinese(zh) translations by Shuyu Wang aka andelf

commit b6c4ce8c47cd679231f3697909e160bdc8123ef9
Author: Feather Andelf <andelf@gmail.com>
Date:   Sat Jan 12 00:55:35 2013 +0800

    translations: Chinese(zh) translations by Shuyu Wang aka andelf
  • Loading branch information...
1 parent 2029d86 commit 23564acb8136dcfe91e17dcacf861c0ee71d0445 @arjan arjan committed Feb 19, 2013
Showing with 2,671 additions and 486 deletions.
  1. +178 −0 modules/mod_acl_simple_roles/translations/zh.po
  2. +12 −14 modules/mod_admin/actions/action_admin_dialog_media_upload.erl
  3. +8 −10 modules/mod_admin/actions/action_admin_dialog_new_rsc.erl
  4. +27 −27 modules/mod_admin/templates/_action_dialog_media_upload_tab_upload.tpl
  5. +2 −3 modules/mod_admin/templates/_admin_overview_list.tpl
  6. +1 −1 modules/mod_admin/templates/admin_overview.tpl
  7. +8 −8 modules/mod_admin/templates/admin_referrers.tpl
  8. +93 −52 modules/mod_admin/translations/zh.po
  9. +3 −3 modules/mod_admin_config/templates/admin_config.tpl
  10. +6 −6 modules/mod_admin_identity/templates/admin_users.tpl
  11. +17 −8 modules/mod_admin_identity/translations/zh.po
  12. +4 −4 modules/mod_admin_predicate/templates/admin_predicate.tpl
  13. +18 −16 modules/mod_admin_predicate/translations/zh.po
  14. +30 −24 modules/mod_authentication/translations/zh.po
  15. +16 −10 modules/mod_backup/translations/zh.po
  16. +30 −0 modules/mod_base/translations/zh.po
  17. +2 −2 modules/mod_base_site/translations/zh.po
  18. +4 −4 modules/mod_comment/templates/admin_comments.tpl
  19. +7 −7 modules/mod_comment/translations/zh.po
  20. +59 −0 modules/mod_contact/translations/zh.po
  21. +59 −0 modules/mod_facebook/translations/zh.po
  22. +3 −3 modules/mod_geomap/translations/zh.po
  23. +58 −0 modules/mod_import_csv/translations/zh.po
  24. +48 −0 modules/mod_import_wordpress/translations/zh.po
  25. +240 −240 modules/mod_l10n/translations/zh.country.po
  26. +2 −2 modules/mod_l10n/translations/zh.po
  27. +1 −1 modules/mod_logging/templates/_admin_log_row.tpl
  28. +5 −5 modules/mod_mailinglist/templates/_dialog_mailing_page.tpl
  29. +867 −0 modules/mod_mailinglist/translations/zh.po
  30. +8 −7 modules/mod_oauth/translations/zh.po
  31. +1 −1 modules/mod_oembed/templates/_media_upload_tab.tpl
  32. +4 −3 modules/mod_oembed/translations/zh.po
  33. +82 −0 modules/mod_seo_sitemap/translations/zh.po
  34. +16 −17 modules/mod_signup/translations/zh.po
  35. +632 −0 modules/mod_survey/translations/zh.po
  36. +13 −8 modules/mod_translation/translations/zh.po
  37. +55 −0 modules/mod_twitter/translations/zh.po
  38. +52 −0 modules/mod_video_embed/translations/zh.po
@@ -0,0 +1,178 @@
+# 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.
+#
+# NB: Consider using poEdit <http://poedit.sourceforge.net>
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: zotonic\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"PO-Revision-Date: 2013-01-14 15:06+0800\n"
+"Last-Translator: Shuyu Wang <andelf@gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+"Language: zh\n"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_sidebar.person.tpl:12
+msgid "(implicit)"
+msgstr "(隐含)"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:41
+msgid "(users can’t change visibility to higher level than this)"
+msgstr "(用户不能修改高于此级别的可见性)"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:86
+msgid ""
+"<strong>Security notice</strong>: When you allow */* files then all members "
+"of this role will be able to obtain full access to your whole site and all "
+"underlying data."
+msgstr ""
+"<strong>安全提示</strong>: 当你允许 */* 文件的时候,那么所有角色成员将会获得"
+"站点和数据的所有访问权限。"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:22
+msgid "ACL role overview"
+msgstr "ACL 角色概览"
+
+#: modules/mod_acl_simple_roles/mod_acl_simple_roles.erl:411
+msgid "Access Control"
+msgstr "访问控制"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:10
+msgid "Access Control - Roles Overview"
+msgstr "访问控制 - 角色概览"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:12
+msgid ""
+"Access control controls what an user is allowed to do and see. The roles "
+"define different groups of rights. Users can be made member of multiple "
+"roles."
+msgstr ""
+"访问控制用于控制用户的行为和可见权限。角色定义了不同的权限组。用户可以成为多"
+"个组的成员。"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:3
+msgid "Admin Access Control"
+msgstr "管理访问控制"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:18
+msgid ""
+"All members are allowed to view all content. (Check this for supervisors.)"
+msgstr "所有成员都允许查看所有内容。"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:49
+msgid "Allow editing of category"
+msgstr "允许编辑分类"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:44
+msgid "Categories"
+msgstr "分类"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:12
+msgid "Check below what people that are member of this role are allowed to do."
+msgstr "在下面选择角色允许的行为。"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:38
+msgid "Community members"
+msgstr "社区成员"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:84
+msgid "File types allowed to be uploaded"
+msgstr "允许上传的文件类型"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:77
+msgid "File uploads"
+msgstr "文件上传"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:39
+msgid "Group members"
+msgstr "组成员"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:8
+msgid "Help about ACL roles."
+msgstr "ACL 角色帮助。"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:16
+msgid "Make new ACL role"
+msgstr "创建新 ACL 角色"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:61
+msgid "Manage modules"
+msgstr "管理模块"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:79
+msgid "Maximum allowed file size for uploads (in KB)"
+msgstr "允许上传的文件大小(KB为单位)"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:30
+msgid "Maximum visibility"
+msgstr "最大可见性"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_sidebar.person.tpl:3
+msgid "Member of roles"
+msgstr "角色成员"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:48
+msgid "Modules"
+msgstr "模块"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:8
+msgid "Need more help?"
+msgstr "更多帮助?"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:58
+msgid "No ACL roles found."
+msgstr "没有找到 ACL 角色。"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:25
+msgid ""
+"Only allow to update content created by the user himself. (Check for user "
+"generated content sites.)"
+msgstr "只允许用户修改自己创建的内容。(适合用户创建内容的网站)"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:4
+msgid "Permissions"
+msgstr "权限"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:29
+msgid "Rights"
+msgstr "权限"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:35
+msgid "The whole world"
+msgstr "全部"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:27
+msgid "Title"
+msgstr "标题"
+
+#: modules/mod_acl_simple_roles/templates/_admin_edit_content.acl_role.tpl:8
+msgid ""
+"Users can be member of multiple roles. Depending on the roles an user is "
+"allowed to create and edit certain categories or is able to manage certain "
+"modules."
+msgstr ""
+"用户可以是多个角色的成员。基于角色,拥护可以创建并编辑特定分类的内容,或是可"
+"以管理特定模块。"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:28
+msgid "View all"
+msgstr "查看所有"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:41
+msgid "delete"
+msgstr "删除"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:42
+msgid "edit"
+msgstr "编辑"
+
+#: modules/mod_acl_simple_roles/templates/admin_acl.tpl:38
+msgid "view all,&mdash;"
+msgstr "查看所有,&mdash;"
@@ -8,9 +8,9 @@
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
-%%
+%%
%% http://www.apache.org/licenses/LICENSE-2.0
-%%
+%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -37,8 +37,8 @@ render_action(TriggerId, TargetId, Args, Context) ->
Stay = proplists:get_value(stay, Args, false),
Callback = proplists:get_value(callback, Args),
Postback = {media_upload_dialog, Title, Id, SubjectId, Predicate, Stay, Callback, Actions},
- {PostbackMsgJS, _PickledPostback} = z_render:make_postback(Postback, click, TriggerId, TargetId, ?MODULE, Context),
- {PostbackMsgJS, Context}.
+ {PostbackMsgJS, _PickledPostback} = z_render:make_postback(Postback, click, TriggerId, TargetId, ?MODULE, Context),
+ {PostbackMsgJS, Context}.
%% @doc Fill the dialog with the new page form. The form will be posted back to this module.
@@ -54,7 +54,7 @@ event(#postback{message={media_upload_dialog, Title, Id, SubjectId, Predicate, S
{predicate, Predicate},
{stay, Stay}
],
- DTitle = case Id of undefined -> "Add a new media file"; _ -> "Replace current medium." end,
+ DTitle = case Id of undefined -> ?__("Add a new media file", Context); _ -> ?__("Replace current medium", Context) end,
z_render:dialog(DTitle, "_action_dialog_media_upload.tpl", Vars, Context);
@@ -117,32 +117,32 @@ handle_media_upload(EventProps, Context, InsertFun, ReplaceFun) ->
{ok, MediaId} ->
{_, ContextCb} = mod_admin:do_link(z_convert:to_integer(SubjectId), Predicate, MediaId, Callback, Context),
- ContextRedirect =
+ ContextRedirect =
case SubjectId of
- undefined ->
+ undefined ->
case Stay of
true -> ContextCb;
false -> z_render:wire({redirect, [{dispatch, "admin_edit_rsc"}, {id, MediaId}]}, ContextCb)
end;
- _ ->
+ _ ->
ContextCb
end,
Actions2 = [add_arg_to_action({id, MediaId}, A) || A <- Actions],
z_render:wire([
{growl, [{text, ?__("Media item created.", ContextRedirect)}]},
- {dialog_close, []}
+ {dialog_close, []}
| Actions2], ContextRedirect);
{error, R} ->
z_render:growl_error(error_message(R, Context), Context)
end;
-
+
%% Replace attached medium with the uploaded file (skip any edge requests)
- N when is_integer(N) ->
+ N when is_integer(N) ->
case ReplaceFun(Id, Context) of
{ok, _} ->
z_render:wire([
{growl, [{text, ?__("Media item created.", Context)}]},
- {dialog_close, []}
+ {dialog_close, []}
| Actions], Context);
{error, R} ->
z_render:growl_error(error_message(R, Context), Context)
@@ -165,5 +165,3 @@ add_arg_to_action(Arg, {postback, [{postback, {Action, ArgList}} | Rest]}) ->
{postback, [{postback, {Action, [Arg | ArgList]}} | Rest]};
add_arg_to_action(_A, B) ->
B.
-
-
@@ -8,9 +8,9 @@
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
-%%
+%%
%% http://www.apache.org/licenses/LICENSE-2.0
-%%
+%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -46,10 +46,10 @@ render_action(TriggerId, TargetId, Args, Context) ->
%% @spec event(Event, Context1) -> Context2
event(#postback{message={new_rsc_dialog, Title, Cat, NoCatSelect, Redirect, SubjectId, Predicate, Callback, Actions}}, Context) ->
CatName = case Cat of
- undefined -> "page";
+ undefined -> z_convert:to_list(?__("page", Context));
_ -> z_convert:to_list(?__(m_rsc:p(Cat, title, Context), Context))
end,
- CatId = case Cat of
+ CatId = case Cat of
undefined -> undefined;
X when is_integer(X) -> X;
X -> m_category:name_to_id_check(X, Context)
@@ -67,7 +67,7 @@ event(#postback{message={new_rsc_dialog, Title, Cat, NoCatSelect, Redirect, Subj
{catname, CatName},
{actions, Actions}
],
- z_render:dialog("Make a new "++CatName++".", "_action_dialog_new_rsc.tpl", Vars, Context);
+ z_render:dialog(z_convert:to_list(?__("Make a new ", Context))++CatName, "_action_dialog_new_rsc.tpl", Vars, Context);
event(#submit{message={new_page, Args}}, Context) ->
@@ -81,7 +81,7 @@ event(#submit{message={new_page, Args}}, Context) ->
Callback = proplists:get_value(callback, Args),
Actions = proplists:get_value(actions, Args, []),
- Lang = z_context:language(Context),
+ Lang = z_context:language(Context),
Props = [
{category_id, CatId},
{title, {trans, [{Lang, Title}]}},
@@ -92,8 +92,8 @@ event(#submit{message={new_page, Args}}, Context) ->
{ok, Id} = m_rsc_update:insert(Props, Context),
% Optionally add an edge from the subject to this new resource
- {_,Context1} = mod_admin:do_link(z_convert:to_integer(SubjectId), Predicate, Id, Callback, Context),
-
+ {_,Context1} = mod_admin:do_link(z_convert:to_integer(SubjectId), Predicate, Id, Callback, Context),
+
% Close the dialog
Context2a = z_render:wire({dialog_close, []}, Context1),
@@ -108,5 +108,3 @@ event(#submit{message={new_page, Args}}, Context) ->
Location = z_dispatcher:url_for(admin_edit_rsc, [{id, Id}], Context2),
z_render:wire({redirect, [{location, Location}]}, Context2)
end.
-
-
@@ -1,38 +1,38 @@
<div class="tab-pane {% if is_active %}active{% endif %}" id="{{ tab }}-upload">
- <p>
- {_ Upload a file from your computer. _}
- {% if not id %}
- {_ You have to specify a description of the file to make it easier to find and share. _}
- {% endif %}
- </p>
+ <p>
+ {_ Upload a file from your computer. _}
+ {% if not id %}
+ {_ You have to specify a description of the file to make it easier to find and share. _}
+ {% endif %}
+ </p>
- {% wire id=#form type="submit"
- postback={media_upload predicate=predicate actions=actions id=id subject_id=subject_id stay=stay callback=callback}
- delegate=`action_admin_dialog_media_upload`
- %}
- <form id="{{ #form }}" method="POST" action="postback" class="form-horizontal">
- <fieldset>
+ {% wire id=#form type="submit"
+ postback={media_upload predicate=predicate actions=actions id=id subject_id=subject_id stay=stay callback=callback}
+ delegate=`action_admin_dialog_media_upload`
+ %}
+ <form id="{{ #form }}" method="POST" action="postback" class="form-horizontal">
+ <fieldset>
{% if not id %}
<div class="control-group">
- <label class="control-label" for="new_media_title">{_ Media title _}</label>
+ <label class="control-label" for="new_media_title">{_ Media title _}</label>
<div class="controls">
- <input type="text" class="span4 do_autofocus" id="new_media_title" name="new_media_title" value="{{ title|escape }}" />
+ <input type="text" class="span4 do_autofocus" id="new_media_title" name="new_media_title" value="{{ title|escape }}" />
</div>
- </div>
- {% endif %}
-
+ </div>
+ {% endif %}
+
<div class="control-group">
- <label class="control-label" for="upload_file">{_ Media file _}</label>
+ <label class="control-label" for="upload_file">{_ Media file _}</label>
<div class="controls">
- <input type="file" class="span4" id="upload_file" name="upload_file" />
- {% validate id="upload_file" type={presence} %}
+ <input type="file" class="span4" id="upload_file" name="upload_file" />
+ {% validate id="upload_file" type={presence} %}
</div>
- </div>
-
- <div class="modal-footer">
- {% button class="btn" action={dialog_close} text="Cancel" tag="a" %}
- <button class="btn btn-primary" type="submit">{_ Upload file _}</button>
- </div>
+ </div>
+
+ <div class="modal-footer">
+ {% button class="btn" action={dialog_close} text=_"Cancel" tag="a" %}
+ <button class="btn btn-primary" type="submit">{_ Upload file _}</button>
+ </div>
</fieldset>
- </form>
+ </form>
</div>
@@ -25,8 +25,8 @@
<tr id="{{ #tr.id }}" class="{% if not m.rsc[id].is_published %}unpublished{% endif %}" data-href="{% url admin_edit_rsc id=id %}">
<td><span {% include "_language_attrs.tpl" %}>{{ m.rsc[id].title|striptags|default:"<em>untitled</em>" }}</span></td>
<td>{{ m.rsc[m.rsc[id].category_id].title }}</td>
- <td>{{ m.rsc[id].created|date:"d M Y, H:i" }}</td>
- <td>{{ m.rsc[id].modified|date:"d M Y, H:i" }}</td>
+ <td>{{ m.rsc[id].created|date:_"d M Y, H:i" }}</td>
+ <td>{{ m.rsc[id].modified|date:_"d M Y, H:i" }}</td>
<td>
{{ m.rsc[m.rsc[id].modifier_id].title|default:"-" }}
<span class="pull-right">
@@ -45,4 +45,3 @@
{% endfor %}
</tbody>
</table>
-
Oops, something went wrong.

0 comments on commit 23564ac

Please sign in to comment.