Skip to content

Commit 86cd6d3

Browse files
finish cn doc pipeline
1 parent 74173fe commit 86cd6d3

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dataset
66
develop
77
.coverage*
88
tutorials.po
9+
whitepaper.po
910
*.result
1011
.vscode/
1112
.pytest_cache/

check_all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ pylint tensorcircuit tests examples/*.py
99
echo "pytest check"
1010
pytest -n 4 --cov=tensorcircuit -vv -W ignore::DeprecationWarning
1111
echo "sphinx check"
12-
cd docs && sphinx-build source build/html && sphinx-build source -D language="cn" -D master_doc=index_cn build/html_cn
12+
cd docs && sphinx-build source build/html && sphinx-build source -D language="zh" -D master_doc=index_cn build/html_cn
1313
echo "all checks passed, congratulation! 💐"

docs/source/contribution.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ To update the po file from updated English rst files, using
167167
168168
cd docs
169169
make gettext
170-
sphinx-intl update -p build/gettext -l cn
170+
sphinx-intl update -p build/gettext -l zh
171171
172172
173-
Edit these .po files to add translations (`poedit <https://poedit.net/>`__ recommended). These files are in docs/source/locale/cn/LC_MESSAGES.
173+
Edit these .po files to add translations (`poedit <https://poedit.net/>`__ recommended). These files are in docs/source/locale/zh/LC_MESSAGES.
174174

175-
To generate the Chinese version of the documentation: ``sphinx-build source -D language="cn" -D master_doc=index_cn build/html_cn`` which is in the separate directory ``.../build/html_cn/index_cn.html``, whereas English version is in the directory ``.../build/html/index.html``.
175+
To generate the Chinese version of the documentation: ``sphinx-build source -D language="zh" -D master_doc=index_cn build/html_cn`` which is in the separate directory ``.../build/html_cn/index_cn.html``, whereas English version is in the directory ``.../build/html/index.html``.
176176

177177

178178
Releases

docs/source/locale/zh/LC_MESSAGES/contribution.po

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: TensorCircuit\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2022-05-16 15:04+0800\n"
11+
"POT-Creation-Date: 2022-05-16 19:39+0800\n"
1212
"PO-Revision-Date: 2022-04-12 09:18+0800\n"
1313
"Last-Translator: Xinghan Yang\n"
1414
"Language: zh\n"
@@ -316,18 +316,20 @@ msgid "To update the po file from updated English rst files, using"
316316
msgstr "为从更新的英文 rst 文件中更新 .po 文件,使用"
317317

318318
#: ../../source/contribution.rst:173
319+
#, fuzzy
319320
msgid ""
320321
"Edit these .po files to add translations (`poedit "
321322
"<https://poedit.net/>`__ recommended). These files are in "
322-
"docs/source/locale/cn/LC_MESSAGES."
323+
"docs/source/locale/zh/LC_MESSAGES."
323324
msgstr ""
324325
"通过编辑这些 .po 文件来翻译文档,推荐使用 (`poedit <https://poedit.net/>`__ )。 这些文件在 "
325326
"``docs/source/locale/cn/LC_MESSAGES`` 中。"
326327

327328
#: ../../source/contribution.rst:175
329+
#, fuzzy
328330
msgid ""
329331
"To generate the Chinese version of the documentation: ``sphinx-build "
330-
"source -D language=\"cn\" -D master_doc=index_cn build/html_cn`` which is"
332+
"source -D language=\"zh\" -D master_doc=index_cn build/html_cn`` which is"
331333
" in the separate directory ``.../build/html_cn/index_cn.html``, whereas "
332334
"English version is in the directory ``.../build/html/index.html``."
333335
msgstr ""

0 commit comments

Comments
 (0)