Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02f2901

Browse files
committed
[po] auto sync bot
1 parent 68aaef1 commit 02f2901

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

library/gettext.po

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ msgid ""
4040
"messages in one natural language, and provide a catalog of translated "
4141
"messages for running under different natural languages."
4242
msgstr ""
43+
"模块 :mod:`gettext` 为你的 Python 模块和程序提供了国际化 (I18N) 和本地化 (L10N) 服务。它既支持 GNU "
44+
"``gettext`` 信息目录 API ,也支持更高层级的基于类的 API,这对于 Python "
45+
"文件来说可能更加合适。下面所描述的接口允许你使用某种自然语言编写模块及应用程序,并提供的翻译信息目录来以另一种自然语言运行它们。"
4346

4447
#: ../../library/gettext.rst:22
4548
msgid ""
4649
"Some hints on localizing your Python modules and applications are also "
4750
"given."
48-
msgstr ""
51+
msgstr "同时还给出一些本地化 Python 模块及应用程序的小技巧。"
4952

5053
#: ../../library/gettext.rst:26
5154
msgid "GNU :program:`gettext` API"
52-
msgstr ""
55+
msgstr "GNU :program:`gettext` API"
5356

5457
#: ../../library/gettext.rst:28
5558
msgid ""
@@ -61,6 +64,9 @@ msgid ""
6164
"module, or if your application needs to switch languages on the fly, you "
6265
"probably want to use the class-based API instead."
6366
msgstr ""
67+
"模块 :mod:`gettext` 定义了下列 API,这与 :program:`gettext` API 类似。如果你使用该 "
68+
"API,将会对整个应用程序产生全局的影响。如果你的应用程序支持多语种,而语言选择取决于用户的区域设置,这通常正是你所想要的。而如果你正在本地化某个 "
69+
"Python 模块,或者你的应用程序需要在运行时切换语言,相反你或许想用基于类的API。"
6470

6571
#: ../../library/gettext.rst:39
6672
msgid ""
@@ -71,12 +77,16 @@ msgid ""
7177
":envvar:`LANGUAGE`, :envvar:`LC_ALL`, :envvar:`LC_MESSAGES`, and "
7278
":envvar:`LANG` respectively."
7379
msgstr ""
80+
"将 *domain* 绑定到区域目录 *localedir*。 更具体地来说,模块 mod:`gettext` 将使用路径(在 Unix 系统中): "
81+
":file:`localedir/language/LC_MESSAGES/domain.mo` 查找二进制文科 :file:`.mo` "
82+
",此处对应地查找 *languages* 的位置是环境变量 :envvar:`LANGUAGE`、 :envvar:`LC_ALL`、 "
83+
":envvar:`LC_MESSAGES` 和 :envvar:`LANG` 中 。"
7484

7585
#: ../../library/gettext.rst:45
7686
msgid ""
7787
"If *localedir* is omitted or ``None``, then the current binding for *domain*"
7888
" is returned. [#]_"
79-
msgstr ""
89+
msgstr "如果遗漏了 *localedir* 或者设置为 ``None``,那么将返回当前 *domain* 所绑定的值 [#]_"
8090

8191
#: ../../library/gettext.rst:51
8292
msgid ""

0 commit comments

Comments
 (0)