opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.
https://opencurve.io
Apache License 2.0
2.33k stars 522 forks source link

translate ch-comments to en-comments #2927

Open koko2pp opened 11 months ago

koko2pp commented 11 months ago

What problem does this PR solve? Issue Number: https://github.com/opencurve/curve/issues/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

koko2pp commented 11 months ago

cicheck

caoxianfei1 commented 10 months ago

repeated with #2754 and ensure it.