curve
curve copied to clipboard
translate Chinese annotations to English annotations
What problem does this PR solve?
Issue Number: #2576
Problem Summary: translate Chinese annotations to English annotations
What is changed and how it works?
What's Changed: The Chinese comments in the code files have been converted into English comments.
How it Works: Write a GO script. For various programming languages, extract all comments from code files using different regular expressions, then determine whether the comments contain Chinese characters. If there are Chinese characters, use the Baidu Translate API to translate the Chinese comments into English comments, and then write them back to the file.
Side effects(Breaking backward compatibility? Performance regression?): None
Check List
- [1] Relevant documentation/comments is changed or added
- [1] I acknowledge that all my contributions will be made under the project's license
cicheck
good job, I'll review it, but it's too many files changed, so may be a long time will be needed.
My review content:
- Checked all file changes to see if they were all changes in comments content.
- Randomly checked whether the translation of some comments is accurate. There is a small problem, which can be modified or not.
TODO for Contributor @koko2pp :
- Ensure that CI passes. It may involve some cpplint, pylint and other static code format check failures. You can modify it as needed, or if it cannot be modified or is not suitable for modification, you can add // NOLINT comment.
- If possible, it is best to open up the translation tool you wrote and give us a link to the code base. This is voluntary.
Thank you very much for your contribution. Great work~
Tips: Please do not use force push with an all in one commit. You can add a new commit so we can get what you changed based on last commit. Otherwise, the changes between the two pushes cannot be confirmed. There are too many change files involved and it is impossible to review them one by one.
cicheck
cicheck
cicheck
cicheck
cicheck
cicheck
Maybe you can retry ci after rebase.
cicheck
cicheck