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

Complete translation of library/struct.po to Traditional Chinese#1117

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

Merged
mattwang44 merged 12 commits into3.13fromcopilot/fix-704
Jul 14, 2025

Conversation

Copilot
Copy link
Contributor

@CopilotCopilotAI commentedJul 14, 2025
edited
Loading

This PR completes the translation oflibrary/struct.po from English to Traditional Chinese (zh_TW), bringing the file from 50.5% to 100% completion.

Translation Summary

  • Before: 99/196 entries translated (50.5%)
  • After: 196/196 entries translated (100.0%)
  • New translations: 97 additional entries

Major Sections Translated

Core Module Functions: Complete documentation forpack(),pack_into(),unpack(),unpack_from(),iter_unpack(), andcalcsize()

Format Strings: Comprehensive format character documentation including syntax and usage patterns

Byte Order & Alignment: Native vs standard formats, endianness concepts (big-endian/little-endian), and cross-platform considerations

Format Character Table: All data types, sizes, conversion codes, and technical specifications

Technical Documentation:

  • IEEE 754 floating-point standards
  • Pascal string format implementation
  • Padding and alignment rules
  • Platform-specific behavior

Code Examples: All code samples with detailed explanations in Chinese

Applications: Native and standard format use cases with practical guidance

Struct Class: Complete class documentation including all methods and attributes

Translation Quality Features

  • Consistent Terminology: Established standardized translations for technical terms

    • 位元組順序 (byte order), 大端序/小端序 (big/little-endian)
    • 原生/標準格式 (native/standard formats)
    • 對齊/填充 (alignment/padding)
    • 格式字串/字元 (format strings/characters)
    • 打包/解包 (packing/unpacking)
  • Technical Accuracy: Maintained precision in complex technical explanations including IEEE standards and cross-platform compatibility

  • Formatting Preservation: Preserved all reStructuredText markup, code blocks, and cross-references

  • Cultural Adaptation: Adapted explanations for Traditional Chinese readers while maintaining technical precision

This translation makes the Python struct module documentation fully accessible to Traditional Chinese speakers, covering essential topics for binary data handling, network programming, and system interoperability.

Fixes#704.

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)
  • esm.ubuntu.com
    • Triggering command:/usr/lib/apt/methods/https (dns block)

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn moreCopilot coding agent tips in the docs.

Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
CopilotAIand others added3 commitsJuly 14, 2025 07:58
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
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 library/struct.poComplete translation of library/struct.po to Traditional ChineseJul 14, 2025
@CopilotCopilotAI requested a review frommattwang44July 14, 2025 08:14
Copilot finished work on behalf ofmattwang44July 14, 2025 08:14
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Copilot finished work on behalf ofmattwang44July 14, 2025 08:18
@mattwang44
Copy link
Collaborator

mattwang44 commentedJul 14, 2025
edited
Loading

@copilot read how the existing translations in other po file cope with their syntax, and remove unwanted trailing\\ part

CopilotAIand others added5 commitsJuly 14, 2025 09:47
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com>
@CopilotCopilot SWE Agent
Copy link
ContributorAuthor

@copilot read how the existing translations in other po file cope with their syntax, and remove unwanted trailing\\ part

Fixed in69f56c3. I've systematically removed unnecessary trailing backslashes throughout the struct.po file by studying existing translation patterns in other .po files. Backslashes are now only used before reStructuredText directives (like:ref:,:func:,:class:) when preceded by Chinese text, following the project's established conventions.

Copilot finished work on behalf ofmattwang44July 14, 2025 09:57
@mattwang44mattwang44 marked this pull request as ready for reviewJuly 14, 2025 11:16
@mattwang44mattwang44 merged commit7a66339 into3.13Jul 14, 2025
1 check passed
@mattwang44mattwang44 deleted the copilot/fix-704 branchJuly 14, 2025 11:29
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mattwang44mattwang44Awaiting requested review from mattwang44

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Translate library/struct.po
2 participants
@Copilot@mattwang44

[8]ページ先頭

©2009-2025 Movatter.jp