Skip to content

Commit 72aa077

Browse files
committed
Improve the translation of docs/index
1 parent 94e00d6 commit 72aa077

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ An example of one such file, from docs/.../index.po, is given below.
9191
```po
9292
#: ../../index.rst:4
9393
msgid "Welcome to Flask"
94-
msgstr "欢迎来到 Flask"
94+
msgstr "欢迎来到 Flask 的世界"
9595
```
9696

9797
Another case, msgid is multi-line text and contains reStructuredText syntax:

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ProjectLink("网站", "https://palletsprojects.com/p/flask/"),
4747
ProjectLink("Twitter", "https://twitter.com/PalletsTeam"),
4848
ProjectLink("聊天", "https://discord.gg/pallets"),
49-
ProjectLink("文档翻译源码", "https://github.com/greyli/flask-docs-zh"),
49+
ProjectLink("参与翻译", "https://github.com/greyli/flask-docs-zh"),
5050
]
5151
}
5252
html_sidebars = {
@@ -101,7 +101,7 @@ def setup(app):
101101

102102
# Translation ----------------------------------------------------------
103103

104-
locale_dirs = ['locales']
104+
locale_dirs = ["locales"]
105105
gettext_compact = False
106-
language = 'zh_CN'
107-
html_search_language = 'zh'
106+
language = "zh_CN"
107+
html_search_language = "zh"

docs/locales/zh_CN/LC_MESSAGES/index.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ msgstr ""
1919

2020
#: ../../index.rst:4
2121
msgid "Welcome to Flask"
22-
msgstr "Welcome to Flask"
22+
msgstr "欢迎来到 Flask 的世界"
2323

2424
msgid "Flask: web development, one drop at a time"
2525
msgstr "Flask:Web 开发,一次一滴"

0 commit comments

Comments
 (0)