curve icon indicating copy to clipboard operation
curve copied to clipboard

translate ch-comments to en-comments

Open koko2pp opened this issue 1 year ago • 2 comments

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 avatar Nov 27 '23 15:11 koko2pp

cicheck

koko2pp avatar Nov 28 '23 05:11 koko2pp

repeated with #2754 and ensure it.

caoxianfei1 avatar Dec 25 '23 10:12 caoxianfei1