Skip to content

Commit 60850fb

Browse files
author
apg
committed
修改: .github/workflows/sphinx.yml
1 parent adbfc86 commit 60850fb

File tree

8 files changed

+78
-42
lines changed

8 files changed

+78
-42
lines changed

.github/workflows/sphinx.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343
run: |
4444
pip install --upgrade pip
4545
pip install -r doc/requirements.txt
46-
pip install gitdb
46+
pip install GitPython
47+
git submodule update --init --recursive
4748
4849
- name: 🔧 Build HTML
4950
run: |

doc/locales/zh_CN/LC_MESSAGES/changes.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) Copyright (C) 2008, 2009 Michael Trier and contributors,
33
# 2010-2015 Sebastian Thiel
44
# This file is distributed under the same license as the GitPython package.
5-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
5+
# xinetzone <735613050@qq.com>, 2021.
66
#
77
#, fuzzy
88
msgid ""
@@ -11,7 +11,7 @@ msgstr ""
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2021-12-16 13:24+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Last-Translator: xinetzone <735613050@qq.com>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=utf-8\n"

doc/locales/zh_CN/LC_MESSAGES/index.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) Copyright (C) 2008, 2009 Michael Trier and contributors,
33
# 2010-2015 Sebastian Thiel
44
# This file is distributed under the same license as the GitPython package.
5-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
5+
# xinetzone <735613050@qq.com>, 2021.
66
#
77
#, fuzzy
88
msgid ""
@@ -11,7 +11,7 @@ msgstr ""
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2021-12-16 13:24+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Last-Translator: xinetzone <735613050@qq.com>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=utf-8\n"

doc/locales/zh_CN/LC_MESSAGES/intro.po

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) Copyright (C) 2008, 2009 Michael Trier and contributors,
33
# 2010-2015 Sebastian Thiel
44
# This file is distributed under the same license as the GitPython package.
5-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
5+
# xinetzone <735613050@qq.com>, 2021.
66
#
77
#, fuzzy
88
msgid ""
@@ -11,7 +11,7 @@ msgstr ""
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2021-12-16 13:24+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Last-Translator: xinetzone <735613050@qq.com>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=utf-8\n"
@@ -20,13 +20,15 @@ msgstr ""
2020

2121
#: ../../source/intro.rst:5
2222
msgid "Overview / Install"
23-
msgstr ""
23+
msgstr "概述/安装"
2424

2525
#: ../../source/intro.rst:7
2626
msgid ""
2727
"GitPython is a python library used to interact with git repositories, "
2828
"high-level like git-porcelain, or low-level like git-plumbing."
2929
msgstr ""
30+
"GitPython 是一个用于与 Git 存储库交互的 Python 库,"
31+
"高级别的类似于 Git porcelain,低级别的类似于 Git plumbing。"
3032

3133
#: ../../source/intro.rst:9
3234
msgid ""
@@ -35,49 +37,55 @@ msgid ""
3537
"directly using either a pure python implementation, or the faster, but "
3638
"more resource intensive git command implementation."
3739
msgstr ""
40+
"它提供了 Git 对象的抽象,以便于访问存储库数据,并且还允许您使用纯 Python 实现,"
41+
"或更快但资源更密集的 Git 命令实现更直接地访问 Git 存储库。"
3842

3943
#: ../../source/intro.rst:11
4044
msgid ""
4145
"The object database implementation is optimized for handling large "
4246
"quantities of objects and large datasets, which is achieved by using low-"
4347
"level structures and data streaming."
4448
msgstr ""
49+
"对象数据库实现针对处理大量对象和大型数据集进行了优化,这是通过使用低级结构和数据流实现的。"
4550

4651
#: ../../source/intro.rst:14
4752
msgid "Requirements"
48-
msgstr ""
53+
msgstr "需求"
4954

5055
#: ../../source/intro.rst:16
5156
msgid "`Python`_ >= 3.7"
5257
msgstr ""
5358

5459
#: ../../source/intro.rst:18
5560
msgid "`Git`_ 1.7.0 or newer"
56-
msgstr ""
61+
msgstr "`Git`_ 1.7.0 或更新版本"
5762

5863
#: ../../source/intro.rst:18
5964
msgid ""
6065
"It should also work with older versions, but it may be that some "
6166
"operations involving remotes will not work as expected."
6267
msgstr ""
68+
"它也应该能与旧版本一起工作,但可能一些涉及 remote 的操作将不能像预期那样工作。"
6369

6470
#: ../../source/intro.rst:20
6571
msgid "`GitDB`_ - a pure python git database implementation"
66-
msgstr ""
72+
msgstr "`GitDB`_ - 纯 python git 数据库实现"
6773

6874
#: ../../source/intro.rst:21
6975
msgid "`typing_extensions`_ >= 3.7.3.4 (if python < 3.10)"
70-
msgstr ""
76+
msgstr "`typing_extensions`_ >= 3.7.3.4(如果 python < 3.10)"
7177

7278
#: ../../source/intro.rst:29
7379
msgid "Installing GitPython"
74-
msgstr ""
80+
msgstr "安装 GitPython"
7581

7682
#: ../../source/intro.rst:31
7783
msgid ""
7884
"Installing GitPython is easily done using `pip`_. Assuming it is "
7985
"installed, just run the following from the command-line:"
8086
msgstr ""
87+
"使用 `pip`_ 可以很容易地安装 GitPython。"
88+
"假设 pip 已经安装好了,只需在命令行中运行以下内容:"
8189

8290
#: ../../source/intro.rst:39
8391
msgid ""
@@ -86,10 +94,13 @@ msgid ""
8694
"install it to your system. More information about ``pip`` and pypi can be"
8795
" found here:"
8896
msgstr ""
97+
"该命令将从 `Python Package Index <http://pypi.python.org/pypi/GitPython>`_ "
98+
"下载最新版本的 GitPython,并将其安装到你的系统。"
99+
"关于 ``pip`` 和 pypi 的更多信息可以在这里找到:"
89100

90101
#: ../../source/intro.rst:44
91102
msgid "`install pip <https://pip.pypa.io/en/latest/installing.html>`_"
92-
msgstr ""
103+
msgstr "`安装 pip <https://pip.pypa.io/en/latest/installing.html>`_"
93104

94105
#: ../../source/intro.rst:45
95106
msgid "`pypi <https://pypi.python.org/pypi/GitPython>`_"
@@ -100,21 +111,24 @@ msgid ""
100111
"Alternatively, you can install from the distribution using the "
101112
"``setup.py`` script:"
102113
msgstr ""
114+
"或者,您可以使用 ``setup.py`` 脚本:"
103115

104116
#: ../../source/intro.rst:56
105117
msgid ""
106118
"In this case, you have to manually install `GitDB`_ as well. It would be "
107119
"recommended to use the :ref:`git source repository <source-code-label>` "
108120
"in that case."
109121
msgstr ""
122+
"在这种情况下,你也必须手动安装 `GitDB`_。"
123+
"在这种情况下,建议使用 :ref:`git 源码库 <source-code-label>`。"
110124

111125
#: ../../source/intro.rst:59
112126
msgid "Limitations"
113-
msgstr ""
127+
msgstr "局限性"
114128

115129
#: ../../source/intro.rst:62
116130
msgid "Leakage of System Resources"
117-
msgstr ""
131+
msgstr "系统资源泄漏"
118132

119133
#: ../../source/intro.rst:64
120134
msgid ""
@@ -123,23 +137,27 @@ msgid ""
123137
"destructors (as implemented in the `__del__` method) still ran "
124138
"deterministically."
125139
msgstr ""
140+
"GitPython 不适合长时间运行的进程(如守护进程),因为它容易泄漏系统资源。"
141+
"它是在一个解构器(如在 ``__del__`` 方法中实现的)仍然确定性地运行的时代写的。"
126142

127143
#: ../../source/intro.rst:68
128144
msgid ""
129145
"In case you still want to use it in such a context, you will want to "
130146
"search the codebase for `__del__` implementations and call these yourself"
131147
" when you see fit."
132148
msgstr ""
149+
"如果你仍然想在这样的情况下使用它,你要在代码库中搜索 ``__del__`` 的实现,并在你认为合适的时候自己调用这些。"
133150

134151
#: ../../source/intro.rst:71
135152
msgid ""
136153
"Another way assure proper cleanup of resources is to factor out GitPython"
137154
" into a separate process which can be dropped periodically."
138155
msgstr ""
156+
"另一种确保正确清理资源的方法是将 GitPython 分解成一个单独的进程,该进程可以定期删除。"
139157

140158
#: ../../source/intro.rst:75
141159
msgid "Getting Started"
142-
msgstr ""
160+
msgstr "入门"
143161

144162
#: ../../source/intro.rst:77
145163
msgid ""
@@ -148,75 +166,79 @@ msgid ""
148166
"not exhaustive so you are encouraged to spend some time in the "
149167
":ref:`api_reference_toplevel`."
150168
msgstr ""
169+
":ref:`tutorial-label` - 本教程对 GitPython 的一些基本功能和概念进行了介绍。"
170+
"然而,它并不详尽,所以我们鼓励你在 :ref:`api_reference_toplevel` 中花费一些时间。"
151171

152172
#: ../../source/intro.rst:83
153173
msgid "API Reference"
154-
msgstr ""
174+
msgstr "API 参考"
155175

156176
#: ../../source/intro.rst:85
157177
msgid ""
158178
"An organized section of the GitPython API is at "
159179
":ref:`api_reference_toplevel`."
160180
msgstr ""
181+
"GitPython API 的一个有组织的部分位于 :ref:`api_reference_toplevel`。"
161182

162183
#: ../../source/intro.rst:90
163184
msgid "Source Code"
164-
msgstr ""
185+
msgstr "源代码"
165186

166187
#: ../../source/intro.rst:92
167188
msgid "GitPython's git repo is available on GitHub, which can be browsed at:"
168-
msgstr ""
189+
msgstr "Gitpython 的 Git 仓库可在 GitHub 上获得,可在以下网址浏览:"
169190

170191
#: ../../source/intro.rst:94
171192
msgid "https://github.com/gitpython-developers/GitPython"
172193
msgstr ""
173194

174195
#: ../../source/intro.rst:96
175196
msgid "and cloned using::"
176-
msgstr ""
197+
msgstr "并且克隆使用 ::"
177198

178199
#: ../../source/intro.rst:100
179200
msgid "Initialize all submodules to obtain the required dependencies with::"
180-
msgstr ""
201+
msgstr "初始化所有子模块以获取所需的依赖项 ::"
181202

182203
#: ../../source/intro.rst:105
183204
msgid "Finally verify the installation by running unit tests::"
184-
msgstr ""
205+
msgstr "最后通过运行单元测试来验证安装:"
185206

186207
#: ../../source/intro.rst:110
187208
msgid "Questions and Answers"
188-
msgstr ""
209+
msgstr "问题和答案"
189210

190211
#: ../../source/intro.rst:111
191212
msgid ""
192213
"Please use stackoverflow for questions, and don't forget to tag it with "
193214
"`gitpython` to assure the right people see the question in a timely "
194215
"manner."
195216
msgstr ""
217+
"请使用 stackoverflow 提问,不要忘记用 `gitpython` 确保合适的人及时看到问题。"
196218

197219
#: ../../source/intro.rst:113
198220
msgid "http://stackoverflow.com/questions/tagged/gitpython"
199221
msgstr ""
200222

201223
#: ../../source/intro.rst:116
202224
msgid "Issue Tracker"
203-
msgstr ""
225+
msgstr "问题跟踪器"
204226

205227
#: ../../source/intro.rst:117
206228
msgid "The issue tracker is hosted by GitHub:"
207-
msgstr ""
229+
msgstr "问题跟踪程序由 Github 托管:"
208230

209231
#: ../../source/intro.rst:119
210232
msgid "https://github.com/gitpython-developers/GitPython/issues"
211233
msgstr ""
212234

213235
#: ../../source/intro.rst:122
214236
msgid "License Information"
215-
msgstr ""
237+
msgstr "许可证信息"
216238

217239
#: ../../source/intro.rst:123
218240
msgid ""
219241
"GitPython is licensed under the New BSD License. See the LICENSE file "
220242
"for more information."
221243
msgstr ""
222-
244+
"GitPython 是根据新的 BSD 许可证获得许可的。有关详细信息,请参阅许可证文件。"

doc/locales/zh_CN/LC_MESSAGES/reference.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) Copyright (C) 2008, 2009 Michael Trier and contributors,
33
# 2010-2015 Sebastian Thiel
44
# This file is distributed under the same license as the GitPython package.
5-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
5+
# xinetzone <735613050@qq.com>, 2021.
66
#
77
#, fuzzy
88
msgid ""
@@ -11,7 +11,7 @@ msgstr ""
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2021-12-16 13:24+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Last-Translator: xinetzone <735613050@qq.com>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=utf-8\n"
@@ -20,15 +20,15 @@ msgstr ""
2020

2121
#: ../../source/reference.rst:4
2222
msgid "API Reference"
23-
msgstr ""
23+
msgstr "API 参考"
2424

2525
#: ../../source/reference.rst:7
2626
msgid "Version"
27-
msgstr ""
27+
msgstr "版本"
2828

2929
#: ../../source/reference.rst:11
3030
msgid "Current GitPython version."
31-
msgstr ""
31+
msgstr "当前 GitPython 版本。"
3232

3333
#: ../../source/reference.rst:14
3434
msgid "Objects.Base"

doc/locales/zh_CN/LC_MESSAGES/roadmap.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) Copyright (C) 2008, 2009 Michael Trier and contributors,
33
# 2010-2015 Sebastian Thiel
44
# This file is distributed under the same license as the GitPython package.
5-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
5+
# xinetzone <735613050@qq.com>, 2021.
66
#
77
#, fuzzy
88
msgid ""
@@ -11,7 +11,7 @@ msgstr ""
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2021-12-16 13:24+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Last-Translator: xinetzone <735613050@qq.com>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=utf-8\n"
@@ -20,15 +20,17 @@ msgstr ""
2020

2121
#: ../../source/roadmap.rst:4
2222
msgid "Roadmap"
23-
msgstr ""
23+
msgstr "路线图"
2424

2525
#: ../../source/roadmap.rst:5
2626
msgid ""
2727
"The full list of milestones including associated tasks can be found on "
2828
"GitHub: https://github.com/gitpython-developers/GitPython/issues"
2929
msgstr ""
30+
"包含相关任务的完整里程碑列表可以在 Github 上找到:"
31+
"https://github.com/gitpython-developers/GitPython/issues"
3032

3133
#: ../../source/roadmap.rst:8
3234
msgid "Select the respective milestone to filter the list of issues accordingly."
33-
msgstr ""
35+
msgstr "选择相应的里程碑以相应地筛选问题列表。"
3436

0 commit comments

Comments
 (0)