将 SDK/ 下所有代码注释翻译为中文#42
Merged
nevstop merged 4 commits intoDev_2026Q2from Apr 27, 2026
Merged
Conversation
Translated all code comments in 11 C SDK files from English to Chinese, preserving all code logic, variable names, function names, string literals, Doxygen tags (@param, @return, etc.) and technical proper names (TCP, CSM, WSA, POSIX, BSD, Win32, Winsock2, pthreads, CMake, NUL, DLL, etc.). Files translated: - SDK/c/include/csm_tcp_router_client.h - SDK/c/src/csm_tcp_router_client.c - SDK/c/examples/basic_usage.c - SDK/c/examples/subscribe_status.c - SDK/c/tests/test_harness.h - SDK/c/tests/mock_server.h - SDK/c/tests/mock_server.c - SDK/c/tests/test_main.c - SDK/c/tests/test_client.c - SDK/c/tests/test_protocol.c - SDK/c/tests/test_integration.c Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com>
…artial) Agent-Logs-Url: https://github.com/NEVSTOP-LAB/CSM-TCP-Router-App/sessions/097602f2-f319-49ea-84a2-3c8a30aa0915 Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
nevstop
April 27, 2026 14:33
View session
nevstop
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将
SDK/目录下三种语言 SDK 的所有代码注释从英文改为中文,每种语言使用独立 commit 提交。变更内容
C SDK (
SDK/c/) — 翻译完成include/csm_tcp_router_client.h、src/csm_tcp_router_client.cexamples/basic_usage.c、examples/subscribe_status.ctests/下全部测试及辅助文件C# SDK (
SDK/csharp/) — 翻译完成src/CsmTcpRouter/CsmTcpRouter.cs(含 XML doc<summary>/<param>/<returns>等标签内容)examples/BasicUsage/Program.cstests/CsmTcpRouter.Tests/下全部测试文件Python SDK (
SDK/python/) — 部分完成src/csm_tcp_router_client.py:协议层、异常类、数据模型、_Transport、TcpRouterClient/AsyncTcpRouterClient类文档主体已翻译examples/及tests/下各文件的注释尚未完成翻译原则
<summary>、@param等)保持原样,仅翻译描述文本