python-docs-zh-tw
python-docs-zh-tw copied to clipboard
feat: Add aider translation support
This pull request introduces a new script for handling .po files and updates the Makefile to include a new translation target using the aider-chat tool. The most important changes are detailed below:
New Script for .po File Handling:
-
.scripts/intercept.py: Added a new script to handle.pofiles, which includes functionality to parse the file and retrieve specific entries based on their occurrences.
Makefile Enhancements:
-
Makefile: Added a new target to install theaider-chattool in the virtual environment. -
Makefile: Introduced a newtranslatetarget that uses theaider-chattool to translate Python documentation into Traditional Chinese. This target requiresFILEandLINEarguments to specify the.pofile and the line number to translate.
Example