Skip to content

Commit 9971d94

Browse files
authored
Improve zh_CN Translations. (#652)
1 parent ebb5000 commit 9971d94

9 files changed

Lines changed: 102 additions & 61 deletions

File tree

databags/translate.ini

Lines changed: 55 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ click_here_listen = Click here to listen
5757

5858
; Resources
5959
by = by
60+
space_after_by = true
6061
published = published
6162
as_seen_at = As seen at
6263
unknown_resource = Unknown resource type
@@ -189,6 +190,7 @@ click_here_listen = إضغط هنا للاستماع
189190
190191
; Resources
191192
by = بواسطة
193+
space_after_by = true
192194
published = نُشِرَ
193195
as_seen_at = كما رُئِيَ في
194196
unknown_resource = نوع المصدر غير معروف
@@ -303,6 +305,7 @@ click_here_listen = Clique aqui para ouvir
303305
304306
; Resources
305307
by = por
308+
space_after_by = true
306309
published = publicado
307310
as_seen_at = Como visto em
308311
unknown_resource = Tipo de recurso desconhecido
@@ -417,6 +420,7 @@ click_here_listen = Click here to listen
417420
418421
; Resources
419422
by = by
423+
space_after_by = true
420424
published = published
421425
as_seen_at = As seen at
422426
unknown_resource = Unknown resource type
@@ -531,6 +535,7 @@ click_here_listen = Haz clic aquí para escuchar
531535
532536
; Resources
533537
by = por
538+
space_after_by = true
534539
published = publicado
535540
as_seen_at = Como visto en
536541
unknown_resource = Recurso desconocido
@@ -645,6 +650,7 @@ click_here_listen = Cliquez ici pour écouter
645650
646651
; Resources
647652
by = par
653+
space_after_by = true
648654
published = publié
649655
as_seen_at = Vu à
650656
unknown_resource = Ressource de type inconnu
@@ -759,6 +765,7 @@ click_here_listen = Clicca qui per ascoltare
759765

760766
; Resources
761767
by = di
768+
space_after_by = true
762769
published = pubblicato
763770
as_seen_at = Come visto a
764771
unknown_resource = Tipo di risorsa sconosciuto
@@ -873,6 +880,7 @@ click_here_listen = Kliknij tu aby posłuchać
873880
874881
; Resources
875882
by = autor:
883+
space_after_by = true
876884
published = opublikowany
877885
as_seen_at = Widziane na
878886
unknown_resource = Nieznany typ zasobu
@@ -940,27 +948,29 @@ update_translation = 在Github上更新翻译
940948
; Footer
941949
sitemap = 站点地图
942950
943-
; Pagination
944-
previous = 上一次
945-
next = 下一次
951+
; Pagination (translated as previous page, next page)
952+
previous = 上一页
953+
next = 下一页
946954
947955
; Incomplete
948956
incomplete_text = 此页内容不完整。您可以帮助我们
949957
incomplete_link = 扩充
950-
incomplete_after_link_text = .
951-
incomplete_space_before_link = true
958+
incomplete_after_link_text = 。
959+
; no spaces between anything in Chinese
960+
incomplete_space_before_link = false
952961
incomplete_space_after_link = false
953962
954963
; Home
955964
welcome = 欢迎
956965
projects = 项目
957966
latest_news = 最新新闻
958-
meet_team = 遇见我们的蜜蜂团队
959-
keynoting = 正在成为主题!
960-
speaking = 正在演讲!
961-
tutorial = 正在给出一份教程!
967+
; meet our bee team at the following events
968+
meet_team = 在以下事件见到我们的蜜蜂团队
969+
keynoting = 将发表主题演讲!
970+
speaking = 将演讲!
971+
tutorial = 将讲授一个教程!
962972
come_see_us = 欢迎光临我们的展位!
963-
sprinting = 我们要竞赛了
973+
sprinting = 我们将要冲刺了
964974
ad_hoc_sponsor = 特设赞助商
965975
966976
; Projects
@@ -971,63 +981,72 @@ pun_before = 所以,为什么它被称为
971981
pun_after = ?
972982
attic_before = 该项目被分类为
973983
attic_link = 在阁楼里
974-
attic_after = . 它已不再被积极维护
975-
cookie_before = 本项目是
976-
cookie_after = 存根项目的模板。
977-
source_code = Source Code
978-
documentation = 源代码
984+
attic_after = 。它已不再被积极维护
985+
; lit. This project is a template project that can be used for Cookiecutter.
986+
; actual usage is <cookie_before> Cookiecutter <cookie_after>
987+
cookie_before = 本项目是可用于
988+
cookie_after = 的模板项目。
989+
source_code = 源代码
990+
documentation = 文档
979991
project_type = 项目类型
980992
maturity = 成熟度
981-
language = 语言
993+
; lit. programming language
994+
language = 编程语言
982995
platform = 平台
983996
984997
; Resources
985998
click_here_full_article = 点击此处阅读全文
986999
click_here_listen = 点击此处收听
9871000
9881001
; Resources
989-
by = 使用
990-
published = 已发布的
991-
as_seen_at = 如图所示
1002+
by = 作者:
1003+
space_after_by = false
1004+
published = 发布于
1005+
; lit. recorded at, since it's only videos AFAIK
1006+
as_seen_at = 录于
9921007
unknown_resource = 未知资源类型
9931008

9941009
; Members
995-
superpower = 超级成员
1010+
superpower = 超能力
9961011
member = 成员
9971012
thanks_before_name = 非常感谢
998-
thanks_after_name = 他们的贡献
1013+
thanks_after_name = 所做的贡献
9991014

10001015
; Blog
10011016
posted_by = 由
1002-
on = 发布在
1017+
on = 在
1018+
; chinese-specific
1019+
post_posted_date = 发布
10031020
next_entry = 下一个条目
1004-
previous_entry = 当前条目
1021+
previous_entry = 上一个条目
10051022

10061023
; News
10071024
more_articles = ... 更多文章
10081025

10091026
; Events
10101027
past_events = 过去的活动
10111028
upcoming_events = 即将到来的活动
1012-
running_sprint = BeeWare 将会举行一场竞赛
1013-
what_is_a_sprint = 什么是竞赛
1014-
sprint_description = 代码竞赛是通常在会议结束后举行的活动,与会者可以使用会议场地分组处理各种项目。了解更多关于竞赛如何与
1015-
sprint_pycon_video = PyCon US 什么是竞赛 视频
1029+
running_sprint = BeeWare 将会举行一场冲刺
1030+
what_is_a_sprint = 什么是冲刺
1031+
sprint_description = 代码冲刺是通常在会议结束后举行的活动,与会者可以使用会议场地分组处理各种项目。用
1032+
sprint_pycon_video = PyCon US 什么是冲刺视频
1033+
; chinese-specific
1034+
post_sprint_pycon_video = 了解更多关于冲刺是如何工作的。
10161035
challenge_coin = 挑战币
10171036
date = 日期
10181037
speakers = 演讲者
1019-
sprinters = 竞赛者
1038+
sprinters = 冲刺者
10201039
and = 和
10211040
event_more_info = 有关更多信息,请查看
10221041
website = 网站
1023-
speaking_before_title = 将发表演讲在
1024-
speaking_after_title = ,发表题为
1025-
keynoting_before_title = 将成为主题
1026-
keynoting_after_title = ,发表题为
1027-
tutorial_before_title = 将提供一份教程
1028-
tutorial_ater_title = 题为
1029-
sprint_helping = 将处于竞赛阶段,并将非常愿意帮助首次贡献者获得自己的辉煌
1030-
sprint_helping_plural = 将处于竞赛阶段,并将非常愿意帮助首次贡献者获得自己的辉煌
1042+
speaking_before_title = 将在
1043+
speaking_after_title = 发表演讲,题为
1044+
keynoting_before_title = 将在
1045+
keynoting_after_title = 发表主题演讲,题为
1046+
tutorial_before_title = 将在
1047+
tutorial_after_title = 讲授一个教程,题为
1048+
sprint_helping = 将在冲刺,并将非常愿意帮助首次贡献者获得自己的辉煌
1049+
sprint_helping_plural = 将在冲刺,并将非常愿意帮助首次贡献者获得自己的辉煌
10311050

10321051
; Keep in touch
10331052
required = 指明必填项

i18n/contents.pot

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,8 +1293,8 @@ msgstr ""
12931293
#: (content/community/behavior/code-of-conduct/contents+en.lr:page.gutter)
12941294
msgid ""
12951295
"This Code of Conduct is adapted from the [Contributor Covenant, version\n"
1296-
"1.3.0](https://www.contributor-covenant.org/version/1/3/0/code-of-conduct."
1297-
"html)"
1296+
"1.3.0](https://www.contributor-covenant.org/version/1/3/0/code-of-"
1297+
"conduct.html)"
12981298
msgstr ""
12991299

13001300
#: https://beeware.org/community/behavior/code-of-conduct/
@@ -3761,8 +3761,8 @@ msgid ""
37613761
" tutorial](https://github.com/search?"
37623762
"q=repo%3Abeeware%2Fbeeware+label%3A%22good+first+issue%22+is%3Aissue+is%3Aopen&type=issues)\n"
37633763
"- [The BeeWare\n"
3764-
" website](https://github.com/search?q=repo%3Abeeware%2Fbeeware.github."
3765-
"io+label%3A%22good+first+issue%22+is%3Aissue+is%3Aopen&type=issues)"
3764+
" website](https://github.com/search?"
3765+
"q=repo%3Abeeware%2Fbeeware.github.io+label%3A%22good+first+issue%22+is%3Aissue+is%3Aopen&type=issues)"
37663766
msgstr ""
37673767

37683768
#: https://beeware.org/contributing/first-time/what/
@@ -4240,8 +4240,8 @@ msgid ""
42404240
"can be found on Read the Docs. For example, [Briefcase's\n"
42414241
"documentation](https://briefcase.readthedocs.io) contains contribution\n"
42424242
"guides for both\n"
4243-
"[code](https://briefcase.readthedocs.io/en/stable/how-to/contribute-code."
4244-
"html)\n"
4243+
"[code](https://briefcase.readthedocs.io/en/stable/how-to/contribute-"
4244+
"code.html)\n"
42454245
"and\n"
42464246
"[documentation](https://briefcase.readthedocs.io/en/stable/how-to/contribute-"
42474247
"docs.html)."
@@ -4430,8 +4430,8 @@ msgstr ""
44304430
msgid ""
44314431
"- [Briefcase](https://briefcase.readthedocs.io/en/latest/how-to/contribute/"
44324432
"index.html)\n"
4433-
"- [Toga](https://toga.readthedocs.io/en/latest/how-to/contribute/index."
4434-
"html)\n"
4433+
"- [Toga](https://toga.readthedocs.io/en/latest/how-to/contribute/"
4434+
"index.html)\n"
44354435
"- [Rubicon\n"
44364436
" ObjC](https://rubicon-objc.readthedocs.io/en/latest/how-to/contribute/"
44374437
"index.html)"
@@ -5781,8 +5781,8 @@ msgstr ""
57815781
msgid ""
57825782
"So you want to contribute to an Open Source project? Batavia is a great\n"
57835783
"place to start. [Here are instructions on contributing to\n"
5784-
"Batavia.](http://batavia.readthedocs.io/en/latest/how-to/contribute-code."
5785-
"html)"
5784+
"Batavia.](http://batavia.readthedocs.io/en/latest/how-to/contribute-"
5785+
"code.html)"
57865786
msgstr ""
57875787

57885788
#: https://beeware.org/project/attic/batavia/
@@ -6314,8 +6314,8 @@ msgstr ""
63146314
msgid ""
63156315
"If you'd like to contribute to VOC development, we have a [guide for\n"
63166316
"first time\n"
6317-
"contributors](https://voc.readthedocs.io/en/latest/how-to/contribute-code."
6318-
"html)."
6317+
"contributors](https://voc.readthedocs.io/en/latest/how-to/contribute-"
6318+
"code.html)."
63196319
msgstr ""
63206320

63216321
#: https://beeware.org/project/attic/voc/

templates/event.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{% set t_challenge_coin = transbag('translate', this.alt, 'challenge_coin') %}
88
{% set t_sprint_description = transbag('translate', this.alt, 'sprint_description') %}
99
{% set t_sprint_video = transbag('translate', this.alt, 'sprint_pycon_video') %}
10+
{% set t_post_sprint_pycon_video = transbag('translate', this.alt, 'post_sprint_pycon_video') %}
1011
{% set t_date = transbag('translate', this.alt, 'date') %}
1112
{% set t_speakers = transbag('translate', this.alt, 'speakers') %}
1213
{% set t_sprinters = transbag('translate', this.alt, 'sprinters') %}
@@ -44,7 +45,7 @@ <h1>{{ this.title }} ({{ this.event_type|title }})</h1>
4445
<p>{{ this.speaker|join(t_and) }} {% if this.speaker|length > 1 %}{{ t_sprint_helping_plural }}{% else %}{{ t_sprint_helping }}{% endif %} <a href="{{ '/contributing/challenge-coins/'|url(alt=this.alt) }}">{{ t_challenge_coin }}</a>.
4546
<p>{{ t_event_more_info }}<a href="{{ this.url }}">{{ this.title }} {{ t_website }}</a></p>
4647
<h3>{{ t_what_is_a_sprint }}</h3>
47-
<p>{{ t_sprint_description }} <a href="https://www.youtube.com/watch?v=hOtKgFaFcz0">{{ t_sprint_video }}</a> </p>
48+
<p>{{ t_sprint_description }} <a href="https://www.youtube.com/watch?v=hOtKgFaFcz0">{{ t_sprint_video }}</a> {{ t_post_sprint_pycon_video }} </p>
4849
{% endif %}
4950
<p><em>{{ this.description }}</em></p>
5051
{% endblock %}

templates/macros/article.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22

33
{% macro render_article_index(article) %}
44
{% set t_click_here_article = transbag('translate', article.alt, 'click_here_full_article') %}
5-
{% set t_by = transbag('translate', article.alt, 'by') %}
6-
{% set t_by = transbag('translate', article.alt, 'published') %}
5+
{% set t_by = transbag('translate', article.alt, 'by').strip() %}
6+
{% set t_published = transbag('translate', article.alt, 'published') %}
7+
{% set t_space_after_by = transbag('translate', article.alt, 'space_after_by').strip() %}
78

89
<h2><a href="{{ article.url }}"><i class="fa fa-file-text" aria-hidden="true"></i> {{ article.title }}</a></h2>
9-
<p>{{ t_by }} {{ article.author }}; {{ t_published }} {{ article.pub_date.strftime('%-d %B %Y') }}</p>
10+
<p>
11+
{{ t_by }}{% if t_space_after_by != 'false' %} {% endif %}{{ article.author }};
12+
{{ t_published }} {{ article.pub_date.strftime('%-d %B %Y') }}
13+
</p>
1014
<p>{{ article.description }}</p>
11-
<h6><a href="{{ article.url }}">{{ t_click_here_article }}</a></h6>
15+
<h6><a href="{{ article.url }}">{{ t_click_here_article }}</a></h6>
1216
{% endmacro %}
1317

1418
{% macro render_article(article) %}
19+
{% set t_click_here_article = transbag('translate', article.alt, 'click_here_full_article') %}
1520
{{ article.description }}
1621

17-
<h6><a href="{{ article.url }}"></a>{{ t_click_here_article }}</h6>
22+
<h6><a href="{{ article.url }}">{{ t_click_here_article }}</a></h6>
1823
{% endmacro %}

templates/macros/blog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
{% set t_posted_by = transbag('translate', post.alt, 'posted_by') %}
66
{% set t_on = transbag('translate', post.alt, 'on') %}
7+
{% set t_post_posted_date = transbag('translate', post.alt, 'post_posted_date') %}
78

89
{% if from_index %}
910
<h2><a href="{{ post|url(alt=post.alt) }}">{{ post.title }}</a></h2>
@@ -16,7 +17,7 @@ <h2><a href="{{ post|url(alt=post.alt) }}">{{ post.title }}</a></h2>
1617
{% else %}
1718
{{ post.author }}
1819
{% endif %}
19-
{{ t_on }} {{ post.pub_date.strftime('%-d %B %Y') }}
20+
{{ t_on }} {{ post.pub_date.strftime('%-d %B %Y') }} {{ t_post_posted_date }}
2021
</p>
2122
{% endif %}
2223
{{ post.body }}

templates/macros/podcast.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
{% macro render_podcast_index(episode) %}
44
{% set t_click_here_listen = transbag('translate', episode.alt, 'click_here_listen') %}
5+
{% set t_by = transbag('translate', episode.alt, 'by').strip() %}
6+
{% set t_published = transbag('translate', episode.alt, 'published') %}
7+
{% set t_space_after_by = transbag('translate', episode.alt, 'space_after_by').strip() %}
58

69
<h2><a href="{{ episode.url }}"><i class="fa fa-headphones" aria-hidden="true"></i> {{ episode.title }}</a></h2>
7-
<p>by {{ episode.author }}; published {{ episode.pub_date.strftime('%-d %B %Y') }}</p>
10+
<p>
11+
{{ t_by }}{% if t_space_after_by != 'false' %} {% endif %}{{ episode.author }};
12+
{{ t_published }} {{ episode.pub_date.strftime('%-d %B %Y') }}
13+
</p>
814
<p>{{ episode.description }}</p>
915
<h6><a href="{{ episode.url }}">{{ t_click_here_listen }}</a></h6>
1016
{% endmacro %}

templates/macros/video.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
{% macro render_video_index(video) %}
44
{% set t_as_seen_at = transbag('translate', video.alt, 'as_seen_at') %}
5-
{% set t_by = transbag('translate', video.alt, 'by') %}
5+
{% set t_by = transbag('translate', video.alt, 'by').strip() %}
66
{% set t_published = transbag('translate', video.alt, 'published') %}
7+
{% set t_space_after_by = transbag('translate', video.alt, 'space_after_by').strip() %}
78

89
<h2><i class="fa fa-video-camera" aria-hidden="true"></i> {{ video.title }}</h2>
9-
<p>{{ t_by }} {{ video.author }}; {{ t_published }} {{ video.pub_date.strftime('%-d %B %Y') }}</p>
10+
<p>
11+
{{ t_by }}{% if t_space_after_by != 'false' %} {% endif %}{{ video.author }};
12+
{{ t_published }} {{ video.pub_date.strftime('%-d %B %Y') }}
13+
</p>
1014
<iframe class="video" src="{{ video.url }}" frameborder="0" allowfullscreen></iframe>
1115
<p>{{ video.description }}</p>
1216
{% if video.event_url %}

templates/news.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{% set t_more_articles = transbag('translate', this.alt, 'more_articles') %}
55
{% set t_on = transbag('translate', this.alt, 'on') %}
66
{% set t_posted_by = transbag('translate', this.alt, 'posted_by') %}
7+
{% set t_post_posted_date = transbag('translate', this.alt, 'post_posted_date') %}
78

89
{% block title %}{{ this.title }}{% endblock %}
910

@@ -45,7 +46,7 @@ <h3><a href="{{ child|url(alt=this.alt) }}">{{ child.title }}</a></h3>
4546
{% else %}
4647
{{ child.author }}
4748
{% endif %}
48-
{{ t_on }} {{ child.pub_date }}
49+
{{ t_on }} {{ child.pub_date }} {{ t_post_posted_date }}
4950
</p>
5051
{% endfor %}
5152
<a href="{{ '/news/buzz/'|url(alt=this.alt) }}">{{ t_more_articles }}</a>

0 commit comments

Comments
 (0)