-
Notifications
You must be signed in to change notification settings - Fork 133
docs: Provide CN translation for clangd_cdt_support.rst #1358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/v4.0.0
Are you sure you want to change the base?
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @leeebo @April-Yjj PTAL, thx! |
leeebo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shen7436 LGTM!
1f736fd to
2332a36
Compare
April-Yjj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Shen7436 Thanks for translation! Overall LGTM
|
|
||
| :link_to_translation:`en:[English]` | ||
|
|
||
| Espressif-IDE 3.0.0 及更高版本现已内置 `Eclipse CDT-LSP <https://github.com/eclipse-cdt/cdt-lsp/>`_,支持最新的 C/C++ 标准并提供基于 LSP 的 C/C++ 编辑器。该编辑器由 `LLVM <https://clangd.llvm.org/>`_ clangd C/C++ 语言服务器驱动,为 ESP-IDF 开发者提供更强大的功能。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Espressif-IDE 3.0.0 及更高版本现已内置 `Eclipse CDT-LSP <https://github.com/eclipse-cdt/cdt-lsp/>`_,支持最新的 C/C++ 标准并提供基于 LSP 的 C/C++ 编辑器。该编辑器由 `LLVM <https://clangd.llvm.org/>`_ clangd C/C++ 语言服务器驱动,为 ESP-IDF 开发者提供更强大的功能。 | |
| Espressif-IDE 3.0.0 及更高版本现已内置 `Eclipse CDT-LSP <https://github.com/eclipse-cdt/cdt-lsp/>`_,支持最新的 C/C++ 标准并提供基于 LSP 的 C/C++ 编辑器。该编辑器由 `LLVM <https://clangd.llvm.org/>`_ clangd C/C++ 语言服务器提供支持,为 ESP-IDF 开发者提供更强大的功能。 |
|
|
||
| Espressif-IDE 3.0.0 及更高版本现已内置 `Eclipse CDT-LSP <https://github.com/eclipse-cdt/cdt-lsp/>`_,支持最新的 C/C++ 标准并提供基于 LSP 的 C/C++ 编辑器。该编辑器由 `LLVM <https://clangd.llvm.org/>`_ clangd C/C++ 语言服务器驱动,为 ESP-IDF 开发者提供更强大的功能。 | ||
|
|
||
| 为配合本次功能增强,我们已停止支持标准的 CDT 编辑器/索引器,因为其仅支持至 C++ 14。我们用全新的 LSP 编辑器取而代之,尤其考虑到 ESP-IDF 现已在 v5.0.x 中使用 C++ 20(配合 GCC 11.2),在 v5.1 过渡到 C++ 23(配合 GCC 12.1),并在 v5.2 使用 GCC 13.1 的 C++ 23。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 为配合本次功能增强,我们已停止支持标准的 CDT 编辑器/索引器,因为其仅支持至 C++ 14。我们用全新的 LSP 编辑器取而代之,尤其考虑到 ESP-IDF 现已在 v5.0.x 中使用 C++ 20(配合 GCC 11.2),在 v5.1 过渡到 C++ 23(配合 GCC 12.1),并在 v5.2 使用 GCC 13.1 的 C++ 23。 | |
| 为配合此功能提升,已停止对标准 CDT 编辑器/索引器的支持,因为其最多支持 C++ 14。此编辑器已由全新的 LSP 编辑器代替,以适应 ESP-IDF 的语言升级:ESP-IDF 现已在 v5.0.x 中使用 C++ 20 (GCC 11.2),在 v5.1 过渡到 C++ 23 (GCC 12.1),并在 v5.2 使用 C++ 23 (GCC 13.1)。 |
| In line with this enhancement, we've discontinued support for the standard CDT Editor/Indexer, as it only offers support for up to C++ 14. This has been replaced with a new LSP editor, especially considering that ESP-IDF now utilizes C++ 20 (with GCC 11.2) in v5.0.x, transitions to C++ 23 (with GCC 12.1) in v5.1, and to C++ 23 with GCC 13.1 in v5.2. | ||
| The Espressif-IDE 3.0.0 or later now includes the `Eclipse CDT-LSP <https://github.com/eclipse-cdt/cdt-lsp/>`_, enabling support for the latest C/C++ standards and providing an LSP-based C/C++ Editor. This editor, powered by the `LLVM <https://clangd.llvm.org/>`_ clangd C/C++ language server, offers advanced functionality for ESP-IDF developers. | ||
|
|
||
| In line with this enhancement, we have discontinued support for the standard CDT Editor/Indexer, as it only supports up to C++ 14. This has been replaced with a new LSP editor, especially considering that ESP-IDF now utilizes C++ 20 (with GCC 11.2) in v5.0.x, transitions to C++ 23 (with GCC 12.1) in v5.1, and to C++ 23 with GCC 13.1 in v5.2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In line with this enhancement, we have discontinued support for the standard CDT Editor/Indexer, as it only supports up to C++ 14. This has been replaced with a new LSP editor, especially considering that ESP-IDF now utilizes C++ 20 (with GCC 11.2) in v5.0.x, transitions to C++ 23 (with GCC 12.1) in v5.1, and to C++ 23 with GCC 13.1 in v5.2. | |
| In line with this enhancement, we have discontinued support for the standard CDT Editor/Indexer, as it only supports up to C++ 14. This has been replaced with a new LSP editor, especially considering that ESP-IDF now utilizes C++ 20 (with GCC 11.2) in v5.0.x, transitions to C++ 23 (with GCC 12.1) in v5.1, and to C++ 23 (with GCC 13.1) in v5.2. |
|
|
||
| 为配合本次功能增强,我们已停止支持标准的 CDT 编辑器/索引器,因为其仅支持至 C++ 14。我们用全新的 LSP 编辑器取而代之,尤其考虑到 ESP-IDF 现已在 v5.0.x 中使用 C++ 20(配合 GCC 11.2),在 v5.1 过渡到 C++ 23(配合 GCC 12.1),并在 v5.2 使用 GCC 13.1 的 C++ 23。 | ||
|
|
||
| 基于 LSP 的 C/C++ 编辑器与最新的语言标准和编译器版本保持一致,可极大提升 ESP-IDF 开发者的效率并改进代码质量。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 基于 LSP 的 C/C++ 编辑器与最新的语言标准和编译器版本保持一致,可极大提升 ESP-IDF 开发者的效率并改进代码质量。 | |
| 基于 LSP 的 C/C++ 编辑器与最新的语言标准和编译器版本保持一致,可极大提升 ESP-IDF 的开发效率,改进代码质量。 |
|
|
||
| 基于 LSP 的 C/C++ 编辑器与最新的语言标准和编译器版本保持一致,可极大提升 ESP-IDF 开发者的效率并改进代码质量。 | ||
|
|
||
| 关于基于 LSP 的 C/C++ 编辑器功能的更多信息,请参阅 `Eclipse CDT-LSP 文档 <https://github.com/eclipse-cdt/cdt-lsp/>`_。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 关于基于 LSP 的 C/C++ 编辑器功能的更多信息,请参阅 `Eclipse CDT-LSP 文档 <https://github.com/eclipse-cdt/cdt-lsp/>`_。 | |
| 关于基于 LSP 的 C/C++ 编辑器功能的更多信息,请参阅 `Eclipse cdt-lsp 仓库 <https://github.com/eclipse-cdt/cdt-lsp/>`_ 文档。 |
| The LSP powered C/C++ editor greatly benefits ESP-IDF developers by aligning with the latest language standards and compiler versions, enhancing productivity, and improving code quality. | ||
|
|
||
| You can find more details on the LSP based C/C++ Editor features in the `Eclipse CDT-LSP documentation <https://github.com/eclipse-cdt/cdt-lsp/>`_. | ||
| You can find more details on the LSP based C/C++ editor features in the `Eclipse CDT-LSP documentation <https://github.com/eclipse-cdt/cdt-lsp/>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| You can find more details on the LSP based C/C++ editor features in the `Eclipse CDT-LSP documentation <https://github.com/eclipse-cdt/cdt-lsp/>`_. | |
| You can find more details on the LSP based C/C++ editor features in the `Eclipse CDT-LSP repo <https://github.com/eclipse-cdt/cdt-lsp/>`_ documents. |
|
|
||
| .. image:: ../../../media/clangd/clangd_config.png | ||
|
|
||
| 创建新项目时,会默认生成一个 ``.clangd`` 配置文件,并带有如下参数。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如下参数指的是哪里?没找到
| Please follow the steps below to fix it: | ||
|
|
||
| 1. Download the script for `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_. | ||
| 1. Download the script for `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra “for” here?
| 1. Download the script for `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_. | |
| 1. Download the script `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_. |
| 请按以下步骤修复: | ||
|
|
||
| 1. 下载脚本 `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why extra space between number and the text?
| 1. 下载脚本 `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_。 | |
| 1. 下载脚本 `fix_compile_commands.py <https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/fix_compile_commands/fix_compile_commands.py>`_。 |
This PR:
clangd_cdt_support.rstin the docs/en/additionalfeatures folder based on Espressif Style Guide.clangd_cdt_support.rst.