From fc30b2865464a512b2fe9a2b08ff290d9dc1c925 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Sat, 24 Jun 2023 17:10:13 +0800 Subject: [PATCH 1/2] feat: translate library/tk.po --- library/tk.po | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/library/tk.po b/library/tk.po index 2b2ba5e33ef..b2c7610560d 100644 --- a/library/tk.po +++ b/library/tk.po @@ -1,16 +1,16 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2023, Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: # Leon H., 2017 +# Matt Wang , 2023 msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-09 00:15+0000\n" -"PO-Revision-Date: 2017-09-22 18:27+0000\n" -"Last-Translator: Leon H.\n" +"PO-Revision-Date: 2023-06-24 17:09+0800\n" +"Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -18,10 +18,11 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.3.1\n" #: ../../library/tk.rst:5 msgid "Graphical User Interfaces with Tk" -msgstr "以 Tk 打造 GUI" +msgstr "以 Tk 打造圖形使用者介面 (Graphical User Interfaces)" #: ../../library/tk.rst:13 msgid "" @@ -30,6 +31,9 @@ msgid "" "programmers using the :mod:`tkinter` package, and its extension, the :mod:" "`tkinter.tix` and the :mod:`tkinter.ttk` modules." msgstr "" +"Tk/Tcl 長期以來一直是 Python 不可或缺的一部分。它提供了一個強大且獨立於平台的" +"視窗工具包,可供使用 :mod:`tkinter` 套件及其擴充套件 :mod:`tkinter.tix` 和 :" +"mod:`tkinter.ttk` 模組的 Python 開發者使用。" #: ../../library/tk.rst:18 msgid "" @@ -39,6 +43,9 @@ msgid "" "mod:`tkinter` is a set of wrappers that implement the Tk widgets as Python " "classes." msgstr "" +":mod:`tkinter` 套件是 Tcl/Tk 之上的一個輕薄物件導向層。要使用 :mod:" +"`tkinter`,你不需要編寫 Tcl 程式,但會需要查閱 Tk 文件和部份 Tcl 文件。:mod:" +"`tkinter` 是一組將 Tk 小工具 (widget) 實作為 Python 類別的包裝器。" #: ../../library/tk.rst:24 msgid "" @@ -51,6 +58,11 @@ msgid "" "alternative `GUI frameworks and tools `_." msgstr "" +":mod:`tkinter` 的主要優點是速度快,而且通常與 Python 捆綁 (bundle) 在一起。儘" +"管其標准文件不是很完整,但還是有些不錯的材料,包括:參考資料、教學、書籍等。:" +"mod:`tkinter` 曾因其過時的外觀而眾所皆知,但這在 Tk 8.5 中得到了極大的改進。" +"此外,還有許多其他你可能會感興趣的 GUI 函式庫。Python wiki 列出了幾個替代的 " +"`GUI 框架和工具 `_。" #: ../../library/tk.rst:7 msgid "GUI" @@ -58,7 +70,7 @@ msgstr "GUI" #: ../../library/tk.rst:7 msgid "Graphical User Interface" -msgstr "圖形使用者介面" +msgstr "Graphical User Interface(圖形使用者介面)" #: ../../library/tk.rst:7 msgid "Tkinter" From 63e8855fe9c6a9f70bbcda54849b1b1f7c617cfc Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Sat, 24 Jun 2023 17:11:15 +0800 Subject: [PATCH 2/2] chore(scripts): update poetry lock --- .scripts/poetry.lock | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/.scripts/poetry.lock b/.scripts/poetry.lock index df74c1b8311..188366127e5 100644 --- a/.scripts/poetry.lock +++ b/.scripts/poetry.lock @@ -1,22 +1,20 @@ -# This file is automatically @generated by Poetry and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.0 and should not be changed by hand. [[package]] name = "certifi" -version = "2022.12.7" +version = "2023.5.7" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2022.12.7-py3-none-any.whl", hash = "sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"}, - {file = "certifi-2022.12.7.tar.gz", hash = "sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"}, + {file = "certifi-2023.5.7-py3-none-any.whl", hash = "sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716"}, + {file = "certifi-2023.5.7.tar.gz", hash = "sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7"}, ] [[package]] name = "chardet" version = "3.0.4" description = "Universal encoding detector for Python 2 and 3" -category = "main" optional = false python-versions = "*" files = [ @@ -28,7 +26,6 @@ files = [ name = "googletrans" version = "3.1.0a0" description = "Free Google Translate API for Python. Translates totally free of charge." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -42,7 +39,6 @@ httpx = "0.13.3" name = "h11" version = "0.9.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" -category = "main" optional = false python-versions = "*" files = [ @@ -54,7 +50,6 @@ files = [ name = "h2" version = "3.2.0" description = "HTTP/2 State-Machine based protocol implementation" -category = "main" optional = false python-versions = "*" files = [ @@ -70,7 +65,6 @@ hyperframe = ">=5.2.0,<6" name = "hpack" version = "3.0.0" description = "Pure-Python HPACK header compression" -category = "main" optional = false python-versions = "*" files = [ @@ -82,7 +76,6 @@ files = [ name = "hstspreload" version = "2023.1.1" description = "Chromium HSTS Preload list as a Python package" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -94,7 +87,6 @@ files = [ name = "httpcore" version = "0.9.1" description = "A minimal low-level HTTP client." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -104,14 +96,13 @@ files = [ [package.dependencies] h11 = ">=0.8,<0.10" -h2 = ">=3.0.0,<4.0.0" -sniffio = ">=1.0.0,<2.0.0" +h2 = "==3.*" +sniffio = "==1.*" [[package]] name = "httpx" version = "0.13.3" description = "The next generation HTTP client." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -121,10 +112,10 @@ files = [ [package.dependencies] certifi = "*" -chardet = ">=3.0.0,<4.0.0" +chardet = "==3.*" hstspreload = "*" -httpcore = ">=0.9.0,<0.10.0" -idna = ">=2.0.0,<3.0.0" +httpcore = "==0.9.*" +idna = "==2.*" rfc3986 = ">=1.3,<2" sniffio = "*" @@ -132,7 +123,6 @@ sniffio = "*" name = "hyperframe" version = "5.2.0" description = "HTTP/2 framing layer for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -144,7 +134,6 @@ files = [ name = "idna" version = "2.10" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -156,7 +145,6 @@ files = [ name = "lxml" version = "4.9.2" description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" files = [ @@ -249,7 +237,6 @@ source = ["Cython (>=0.29.7)"] name = "polib" version = "1.1.1" description = "A library to manipulate gettext files (po and mo files)." -category = "main" optional = false python-versions = "*" files = [ @@ -261,7 +248,6 @@ files = [ name = "rfc3986" version = "1.5.0" description = "Validating URI References per RFC 3986" -category = "main" optional = false python-versions = "*" files = [ @@ -276,7 +262,6 @@ idna2008 = ["idna"] name = "sniffio" version = "1.3.0" description = "Sniff out which async library your code is running under" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -288,7 +273,6 @@ files = [ name = "translate-toolkit" version = "3.8.1" description = "Tools and API for translation and localization engineering." -category = "main" optional = false python-versions = ">=3.7" files = [