Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translate the first half of howto/descriptor#1120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge6 commits into3.13
base:3.13
Choose a base branch
Loading
fromcopilot/fix-450

Conversation

Copilot
Copy link
Contributor

@CopilotCopilotAI commentedJul 15, 2025
edited
Loading

This PR completes the translation of the first half of the Python descriptor guide (howto/descriptor.po) from English to Traditional Chinese (Taiwan).

What was translated

The first half includes:

1.Introduction & Contents Section

  • Guide overview explaining the four major sections
  • Clear navigation guidance for readers new to descriptors

2.Primer Section (Complete)

  • Simple example: Basic descriptor that returns a constant
  • Dynamic lookups: Descriptors that run computations
  • Managed attributes: Using descriptors to control access to instance data
  • Customized names: Leveraging__set_name__ for automatic field naming
  • Closing thoughts: Core descriptor concepts and their usage throughout Python

Translation Quality

  • Build tested: No syntax errors or warnings
  • Terminology consistency: Established standard Chinese translations for key technical terms
  • reST formatting preserved: All Sphinx markup and cross-references maintained
  • Code examples preserved: Programming examples left in English as per project conventions

Key Technical Terms Established

English繁體中文
descriptor描述器
attribute lookup屬性查找
class variable類別變數
instance實例
dynamic lookup動態查找
managed attributes受管理的屬性
dot operator點運算子
callback回呼

The translation makes descriptor concepts accessible to Chinese-speaking Python developers, covering all fundamental examples and explanations needed to understand how descriptors work.

Fixes#450.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command:curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Clickhere to start the survey.

CopilotAIand others added2 commitsJuly 15, 2025 10:35
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
@CopilotCopilotAI changed the title[WIP] Translate the first half of howto/descriptorTranslate the first half of howto/descriptorJul 15, 2025
@CopilotCopilotAI requested a review frommattwang44July 15, 2025 10:43
Copilot finished work on behalf ofmattwang44July 15, 2025 10:43
@mattwang44
Copy link
Collaborator

@copilot

  • for the existing translation, observe how other po files do these:
    • add the line break as appropriate
    • you need to translate the docstrings and code comments in the code black
  • continue translating next section

Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
@CopilotCopilot SWE Agent
Copy link
ContributorAuthor

@copilot

  • for the existing translation, observe how other po files do these:
    • add the line break as appropriate
      ...

Fixed line breaks and translated code comments in existing sections. Continued translation with "Complete Practical Example" section including validator classes and practical applications. All code comments now properly translated to Chinese following established patterns from other po files. (58f99a2)

CopilotAIand others added2 commitsJuly 16, 2025 04:01
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
…lationCo-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Copilot finished work on behalf ofmattwang44July 16, 2025 04:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mattwang44mattwang44Awaiting requested review from mattwang44

At least 1 approving review is required to merge this pull request.

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Translate the first half of howto/descriptor
2 participants
@Copilot@mattwang44

[8]ページ先頭

©2009-2025 Movatter.jp