Skip to content

Commit bb8238e

Browse files
committed
docs: Provide CN translation for two docs
1 parent d264866 commit bb8238e

File tree

4 files changed

+258
-82
lines changed

4 files changed

+258
-82
lines changed

docs/en/buildproject.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
Build the Project
2-
===============================
1+
Build Your Project
2+
==================
3+
4+
:link_to_translation:`zh_CN:[中文]`
35

46
.. |build_icon| image:: ../../media/icons/build.png
57
:height: 16px
68
:align: middle
79

10+
Once you have created a project and configured the ESP target and serial port, you can build the project by clicking on |build_icon| in the toolbar.
811

9-
Once you have created a project and configured the esp target and serial port, you can build the project by clicking on |build_icon| in the toolbar.
10-
11-
However, below steps will guide you through the process of building the project if you are new to the IDE:
12+
However, the following steps will guide you through the process of building the project if you are new to the IDE:
1213

1314
1. Select a project from the ``Project Explorer``.
14-
2. Select ``Run`` from the first dropdown, which is called `Launch Mode`.
15-
3. Select your application from the second dropdown, which is called `Launch Configuration` (Auto-detected).
16-
4. Select a target from the third dropdown, for example, ``esp32``, which is called `Launch Target`.
15+
2. Select ``Run`` from the first dropdown, which is called **Launch Mode**.
16+
3. Select your application from the second dropdown, which is called **Launch Configuration** (Auto-detected).
17+
4. Select a target from the third dropdown, which is called **Launch Target**. For example, ``esp32``.
1718
5. Now click on the ``Build`` button |build_icon| to start the build process.
1819

19-
20-
.. image:: ../../media/9_cmake_build.png
20+
.. image:: ../../media/9_cmake_build.png
2121

2222
Custom Build Directory
2323
----------------------
@@ -30,16 +30,17 @@ The IDE allows configuring a custom build directory for the project:
3030
4. Click on ``Ok`` and build the project.
3131

3232
.. note::
33-
This configuration changes where all the project build artifacts will be generated.
33+
34+
This configuration specifies the location where all the project build artifacts will be generated.
3435

3536
.. image:: ../../media/custombuilddir.png
3637
:alt: Custom Build Directory Configuration
3738

3839
References
3940
----------
41+
4042
.. toctree::
4143
:maxdepth: 1
4244

4345
Configure CDT Build Environment Variables <additionalfeatures/configureenvvariables>
4446
Add a Preview or Custom ESP-IDF Target <additionalfeatures/configuretoolchain>
45-

docs/en/marketplaceupdate.rst

Lines changed: 63 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,41 @@
11
.. _marketplaceupdate:
22

33
Update Site Installation Guide
4-
======================================
4+
==============================
55

6-
The Espressif-IDE Eclipse Plugin can be installed using the update site URL, Eclipse Marketplace, or a local archive. This guide provides instructions for each method.
6+
:link_to_translation:`zh_CN:[中文]`
7+
8+
The Espressif-IDE Eclipse Plugin can be installed using the following three methods:
79

810
- :ref:`installUpdateSiteURL`
911
- :ref:`install_idf_eclipse_plugin_marketplace`
1012
- :ref:`install_idf_eclipse_plugin_local_archive`
11-
- :ref:`upgradePlugins`
12-
- :ref:`upgradeEspressifIdeDependencies`
13-
- :ref:`troubleshooting_missing_items`
1413

1514
.. _installUpdateSiteURL:
1615

17-
Installing IDF Plugin using update site URL
18-
--------------------------------------------
16+
Installing IDF Plugin the Using Update Site URL
17+
-----------------------------------------------
18+
1919
You can install the IDF Eclipse plugin into an existing Eclipse CDT/Espressif-IDE using the update site URL. First, add the release repository URL as follows:
2020

21-
1. Go to ``Help`` > ``Install New Software``.
22-
2. Click `Add…`, and in the pop-up window:
23-
* Enter `Name` as `Espressif IDF Plugin for Eclipse`.
24-
* Enter `Location` of the repository
25-
* For the stable release: `<https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/>`_.
26-
* Click `Add`.
27-
3. Select all from the list and proceed with the installation.
21+
1. Go to ``Help`` > ``Install New Software``.
22+
2. Click ``Add``, and in the pop-up window:
23+
24+
* Enter ``Espressif IDF Plugin for Eclipse`` as the ``Name``.
25+
* Enter ``Location`` of the repository. (`Stable release <https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/>`_)
26+
27+
* Click ``Add``.
28+
29+
3. Select all items from the list and proceed with the installation.
2830

2931
For adding beta and nightly builds, you can use the following update site URLs:
30-
* For Beta version: `<https://dl.espressif.com/dl/idf-eclipse-plugin/updates/beta/>`_.
31-
* For Nightly build: `<https://dl.espressif.com/dl/idf-eclipse-plugin/updates/nightly/>`_.
32+
33+
* `Beta version <https://dl.espressif.com/dl/idf-eclipse-plugin/updates/beta/>`_
34+
* `Nightly build <https://dl.espressif.com/dl/idf-eclipse-plugin/updates/nightly/>`_
3235

3336
.. note::
34-
While the screenshots are captured on macOS, the installation instructions are applicable to Windows, Linux, and macOS.
37+
38+
Although the following screenshots are captured on macOS, the installation steps are the same for Windows and Linux.
3539

3640
.. image:: ../../media/idf_update_site_install.png
3741

@@ -43,100 +47,91 @@ Installing IDF Eclipse Plugin from Eclipse Marketplace
4347

4448
To install the ESP-IDF Eclipse Plugin from the Eclipse Marketplace, follow these steps:
4549

46-
1. Open Eclipse and go to `Help` > `Eclipse Marketplace...`.
47-
50+
1. Open Eclipse and go to ``Help`` > ``Eclipse Marketplace...``.
4851
2. In the search box, enter **ESP-IDF Eclipse Plugin** to locate the plugin.
49-
50-
3. Click **Install** and follow the on-screen instructions to complete the installation.
51-
52+
3. Click ``Install`` and follow the on-screen instructions to complete the installation.
5253
4. After installation, restart Eclipse to activate the plugin.
5354

5455

5556
.. _install_idf_eclipse_plugin_local_archive:
5657

5758
Installing IDF Eclipse Plugin from Local Archive
58-
------------------------------------------------------
59+
------------------------------------------------
5960

6061
To install the ESP-IDF Eclipse Plugin from a local archive, follow these steps:
6162

62-
1. Download the latest update site archive for the IDF Eclipse Plugin from [here](https://github.com/espressif/idf-eclipse-plugin/releases).
63-
64-
2. In Eclipse, go to `Help` > `Install New Software`.
65-
66-
3. Click the `Add…` button.
67-
68-
4. In the **Add Repository** dialog, select **Archive** and choose the file `com.espressif.idf.update-vxxxxxxx.zip`.
69-
70-
5. Click **Add**.
71-
72-
6. Select **Espressif IDF** from the list and proceed with the installation.
73-
74-
7. Restart Eclipse after the installation is complete.
75-
63+
1. Download the latest update site archive for the IDF Eclipse Plugin from `here <https://github.com/espressif/idf-eclipse-plugin/releases>`_.
64+
2. In Eclipse, go to ``Help`` > ``Install New Software``.
65+
3. Click the ``Add`` button.
66+
4. In the ``Add Repository`` dialog, select ``Archive`` and choose the file ``com.espressif.idf.update-vxxxxxxx.zip``.
67+
5. Click ``Add``.
68+
6. Select ``Espressif IDF`` from the list and continue with the installation.
69+
7. After the installation is complete, restart Eclipse.
7670

7771
.. _upgradePlugins:
7872

79-
How do I upgrade my existing IDF Eclipse Plugin?
80-
------------------------------------------------------
73+
How to Upgrade Existing IDF Eclipse Plugin
74+
------------------------------------------
75+
8176
If you are installing the IDF Eclipse Plugin for the first time, follow these steps to add the repository for the new release:
8277

83-
1. Go to `Window` > `Preferences` > `Install/Update` > `Available Software Sites`.
84-
2. Click `Add`.
85-
3. Enter the URL of the new repository: `https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/`.
86-
4. Click `Ok`.
78+
1. Go to ``Window`` > ``Preferences`` > ``Install/Update`` > ``Available Software Sites``.
79+
2. Click ``Add``.
80+
3. Enter the `URL <https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/>`_ of the new repository: .
81+
4. Click ``Ok``.
8782

8883
If you have already installed the IDF Eclipse Plugin using the update site URL, you can upgrade to the latest version with the following steps:
8984

90-
1. Go to `Help` > `Check for Updates`.
91-
2. If updates are found, select `Espressif IDF Plugins for Eclipse` and deselect all other items.
92-
3. Click `Next` to proceed with the installation.
85+
1. Go to ``Help`` > ``Check for Updates``.
86+
2. If updates are found, select ``Espressif IDF Plugins for Eclipse`` and deselect all other items.
87+
3. Click ``Next`` to proceed with the installation.
9388

9489
.. image:: ../../media/Update_plugins.png
95-
90+
9691

9792
.. _upgradeEspressifIdeDependencies:
98-
93+
9994
Upgrading from Espressif-IDE 3.3.0 to 3.4.0
100-
------------------------------------------------------
95+
-------------------------------------------
96+
10197
If the next version of the plugin requires updated dependencies (e.g., the minimum CDT version has changed from 11.6 to 12), make sure these dependencies are updated during installation from the update site.
10298

10399
.. image:: ../../media/Update_dependencies.png
104-
100+
105101
If the required dependencies are not updated, the installer will display the following error:
106-
`The installation cannot be completed as requested.`
102+
103+
``The installation cannot be completed as requested.``
107104

108105
To resolve this:
109106

110-
1. Click **Show original error and build my own solution**.
111-
2. Then select both:
107+
1. Click ``Show original error and build my own solution``.
108+
2. Then select both:
112109

113-
- **Update items already installed**
114-
- **Remove items already installed**
110+
- ``Update items already installed``
111+
- ``Remove items already installed``
115112

116113
.. image:: ../../media/Resolve_update_error.png
117114

118-
This will allow the installer to update or replace any conflicting components and continue the installation successfully.
119-
120-
115+
This ensures that the installer can update or replace any conflicting components, allowing the installation to complete successfully.
121116

122117
.. _troubleshooting_missing_items:
123118

124-
Troubleshooting: "Cannot complete the install because one or more required items could not be found"
125-
-----------------------------------------------------------------------------------------------------
119+
Troubleshooting
120+
---------------
126121

122+
If you encounter the error ``Cannot complete the install because one or more required items could not be found.`` during installation, it usually means that the Eclipse Platform update site is not enabled.
127123

128-
This usually happens when the Eclipse Platform update site is not enabled.
129124
To resolve this issue:
130125

131-
1. Go to ``Help`` > ``Install New Software``.
132-
2. Click **Manage**.
133-
3. Make sure the option for the **Eclipse Platform - Latest Release Update Site** is enabled.
126+
1. Go to ``Help`` > ``Install New Software``.
127+
2. Click ``Manage``.
128+
3. Make sure the option for the ``Eclipse Platform - Latest Release Update Site`` is enabled.
134129

135-
.. image:: ../../media/Resolve_update_error_2.png
130+
.. image:: ../../media/Resolve_update_error_2.png
136131

137-
4. Apply the changes and close the dialog.
138-
5. Then go to ``Help`` > ``Check for Updates`` and proceed with updating the IDE and its dependencies.
132+
4. Apply the changes and close the dialog.
133+
5. Then go to ``Help`` > ``Check for Updates`` and proceed with updating the IDE and its dependencies.
139134

140135
.. note::
141-
Enabling the Eclipse Platform update site ensures that all required dependencies can be resolved during installation or upgrade.
142136

137+
Enabling the Eclipse Platform update site ensures that all required dependencies are properly resolved during installation or upgrade.

docs/zh_CN/buildproject.rst

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,46 @@
1-
.. include:: ../en/buildproject.rst
1+
构建项目
2+
========
3+
4+
:link_to_translation:`en:[English]`
5+
6+
.. |build_icon| image:: ../../media/icons/build.png
7+
:height: 16px
8+
:align: middle
9+
10+
创建项目并配置好乐鑫目标设备及串口后,可在工具栏中点击 |build_icon| 图标来构建项目。
11+
12+
如果你是初次使用 IDE,请参照下列步骤,完成项目的构建流程:
13+
14+
1. 在 ``Project Explorer`` 中选择一个项目。
15+
2. 在第一个下拉菜单中选择 ``Run``,该菜单被称为 **启动模式**。
16+
3. 在第二个下拉菜单中选择自动检测到的应用,该菜单被称为 **启动配置**。
17+
4. 在第三个下拉菜单中选择目标芯片,比如 ``esp32``,该菜单被称为 **启动目标**。
18+
5. 点击 ``Build`` 按钮 |build_icon|,开始构建流程。
19+
20+
.. image:: ../../media/9_cmake_build.png
21+
22+
自定义构建目录
23+
--------------
24+
25+
IDE 允许为项目配置自定义构建目录:
26+
27+
1. 选择一个项目,在顶部工具栏中点击启动配置的 ``Edit`` 按钮,打开 ``Edit Configuration`` 窗口。
28+
2. 前往 ``Build Settings`` 选项卡。
29+
3. 在 ``Build folder location`` 部分填写自定义的构建目录。该自定义目录路径可以位于项目内,也可以位于文件系统中的任意位置。
30+
4. 点击 ``Ok`` 并构建项目。
31+
32+
.. note::
33+
34+
此配置会更改项目生成的所有构建产物的存放位置。
35+
36+
.. image:: ../../media/custombuilddir.png
37+
:alt: 自定义构建目录配置
38+
39+
参考文档
40+
--------
41+
42+
.. toctree::
43+
:maxdepth: 1
44+
45+
配置 CDT 构建环境变量 <additionalfeatures/configureenvvariables>
46+
添加预览或自定义 ESP-IDF 目标 <additionalfeatures/configuretoolchain>

0 commit comments

Comments
 (0)