Skip to content

Fix machine translation issues in bugs.html, tutorial, library/functions, and library/stdtypes#2

Merged
Revisto merged 16 commits into
3.13from
fix-machine-translation
Feb 12, 2025
Merged

Fix machine translation issues in bugs.html, tutorial, library/functions, and library/stdtypes#2
Revisto merged 16 commits into
3.13from
fix-machine-translation

Conversation

@Revisto
Copy link
Copy Markdown
Owner

@Revisto Revisto commented Feb 12, 2025

This PR updates the Persian translations for several Python documentation files using Google Translate, along with manual fixes to resolve various warnings and inconsistent term references. The following improvements were made:

  • Translated and fixed formatting issues in bugs.html
  • Updated the tutorial translations, addressing inline directive issues
  • Corrected term references and formatting in library/functions and library/stdtypes

- Replace Virgules (،) with commas (,) in code patterns:
  - Function calls and parameters
  - List literals
  - Function definitions
  - Class definitions
  - Dictionary literals
- Preserve virgules in regular translated text
- Add script to detect and fix comma issues in .po files
- Add more specific patterns for code constructs
- Add is_complete_python_code() to preserve original code blocks
- Replace translated code with original when msgid is valid Python
- Add pattern to handle __import__ statements with virgules
- Improve is_complete_python_code to handle multi-line REPL examples with >>> and ... prompts
- Corrected inline interpreted text and phrase references in appendix.po
- Added missing reference to :mod:`site` in appendix.po
- Added missing reference to :func:`open` in inputoutput.po
- Corrected term references in stdtypes.po
- Corrected undefined substitution reference in functions.po
@Revisto Revisto merged commit d7dd495 into 3.13 Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant