Skip to content

Commit

Permalink
分拆翻译文件到单独分支,合并原PR中的审核信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric X committed Aug 7, 2022
1 parent f28d39b commit 4ece224
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 51 deletions.
29 changes: 11 additions & 18 deletions get-started/_common/components/_overview.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
<!-- A component is a program that runs on Fuchsia in its own sandbox.
A component is a program that runs on Fuchsia in its own sandbox.
Each component is a composable module that interacts with other components
through their capabilities. All software on Fuchsia is defined as a component
except for the kernel image, bootstrapping processes, and the Component Manager. -->
一个组件是一个运行在 Fuchsia 沙盒中的程序。每个组件都是一个可组合的模块,依据各自功能与其它组件交互。Fuchsia 中所有软件都被定义为组件,除了内核、引导进程以及组件管理器。
except for the kernel image, bootstrapping processes, and the Component Manager.

<!-- Fuchsia's component framework is responsible for running nearly all user space
Fuchsia's component framework is responsible for running nearly all user space
software in the system. The Component Manager is a system process that coordinates
the execution and lifecycle of all component instances, maintains the component
topology, provides components with their capabilities, and keeps them isolated
from one another. -->
Fuchsia 的组件框架致力于让系统可以运行几乎所有的用户空间软件。组件管理器是一个系统进程,负责协调各个组件实例的执行和生命周期、维护组件拓扑、给组件提供相应功能,并使它们彼此隔离。
from one another.

<!-- Components obtain privileges to access various parts of the wider system through
Components obtain privileges to access various parts of the wider system through
capabilities. Each component can declare new capabilities that they offer to the
system and capabilities provided by other components (or the framework) that
they require to function. Component Manager resolves and validates all capability
requests between components to ensure they match capabilities that the component
has been properly granted. -->
组件通过功能获得访问更广泛系统的各个部分的特权。每个组件都可以声明它们提供给系统的新功能以及需要其他组件(或框架)提供的功能。组件管理器解析并验证组件间的所有功能请求,以确保它们与组件已被正确授予的功能相匹配。
has been properly granted.

<aside class="key-point">
<!-- <b>Legacy components</b> -->
<b>旧版组件</b>
<b>Legacy components</b>

<!-- <p>This section focuses on modern components whose manifest declarations are
<p>This section focuses on modern components whose manifest declarations are
written in component manifest language (CML). The legacy framework based on
<code>appmgr</code> and declared using CMX manifests is not covered here. -->
<p>本节重点介绍使用组件清单语言 (CML) 编写清单声明的现代组件。此处未介绍基于 <code>appmgr</code> 并使用 CMX 清单声明的旧框架。
<code>appmgr</code> and declared using CMX manifests is not covered here.

<!-- <p>For more details on the legacy component framework, see
<a href="/concepts/components/v1">legacy components</a>. -->
<p>要获取关于会话框架的更多细节,请参阅
<a href="/concepts/components/v1">旧版组件</a>。
<p>For more details on the legacy component framework, see
<a href="/concepts/components/v1">legacy components</a>.
</aside>
109 changes: 76 additions & 33 deletions get-started/explore_fuchsia.md
Original file line number Diff line number Diff line change
@@ -1,90 +1,133 @@
# Explore Fuchsia {#explore-fuchsia}
<!-- # Explore Fuchsia {#explore-fuchsia} -->
# 探索 Fuchsia {#explore-fuchsia}

Once you have Fuchsia up and running on a device or emulator,
check out the following resources:
<!-- Once you have Fuchsia up and running on a device or emulator,
check out the following resources: -->
在设备或模拟器上启动并运行 Fuchsia 后,请查看以下资源:

* [Run ffx commands](#run-ffx-commands).
<!-- * [Run ffx commands](#run-ffx-commands).
* [Run examples](#run-examples).
* [Create Fuchsia components](#create-fuchsia-components).
* [Contribute changes](#contribute-changes).
* [Contribute changes](#contribute-changes). -->
* [运行 ffx 命令](#run-ffx-commands).
* [运行示例程序](#run-examples).
* [创建 Fuchsia 组件](#create-fuchsia-components).
* [贡献修订](#contribute-changes).

## Run ffx commands {#run-ffx-commands}
<!-- ## Run ffx commands {#run-ffx-commands} -->
## 运行 ffx 命令 {#run-ffx-commands}

[`ffx`][ffx-overview] is a host tool for Fuchsia target workflows that
<!-- [`ffx`][ffx-overview] is a host tool for Fuchsia target workflows that
provides the consistent development experience across all Fuchsia environments
and host platforms.
and host platforms. -->
[`ffx`][ffx-overview] 是 Fuchsia 目标工作流的主机工具,为所有 Fuchsia 环境和主机平台上提供一致的开发体验。

The following are some of `ffx` command examples:
<!-- The following are some of `ffx` command examples: -->
以下是一些 `ffx` 命令示例:

* Display the list of devices:
<!-- * Display the list of devices: -->
* 显示设备列表:

```posix-terminal
ffx target list
```
* Display the device information:
<!-- * Display the device information: -->
* 显示设备信息:
```posix-terminal
ffx target show
```
* Print the device logs:
<!-- * Print the device logs: -->
* 输出设备日志:
```posix-terminal
ffx log
```
* Reboot the device:
<!-- * Reboot the device: -->
* 重启设备:
```posix-terminal
ffx target reboot
```
## Run examples {#run-examples}
<!-- ## Run examples {#run-examples} -->
## 运行示例
To try out Fuchsia's sample software, check out the guides below:
<!-- To try out Fuchsia's sample software, check out the guides below: -->
要试用 Fuchsia 的样例程序,请参考如下指南:
* [Run an example component](/development/run/run-examples.md)
<!-- * [Run an example component](/development/run/run-examples.md)
* [Run a test component](/development/run/run-test-component.md)
* [Run an end-to-end test](/development/testing/run_an_end_to_end_test.md)
* [Run an end-to-end test](/development/testing/run_an_end_to_end_test.md) -->
* [运行样例组件](/development/run/run-examples.md)
* [运行测试组件](/development/run/run-test-component.md)
* [运行端到端测试](/development/testing/run_an_end_to_end_test.md)
## Create Fuchsia components {#create-fuchsia-components}
<!-- ## Create Fuchsia components {#create-fuchsia-components} -->
## 创建 Fuchsia 组件 {#create-fuchsia-components}
The basic executable units of software in Fuchsia are
<!-- The basic executable units of software in Fuchsia are
[components](/concepts/components/v2), and these components interact
with each other using [FIDL](/concepts/fidl/overview.md)
(Fuchsia Interface Definition Language) protocols.
(Fuchsia Interface Definition Language) protocols. -->
Fuchsia 中最小可运行软件单元是[组件](/concepts/components/v2),这些组件通过
[FIDL](/concepts/fidl/overview.md)(Fuchsia 接口定义语言)协议彼此交互。
To learn more about Fuchsia components and FIDL, check out the guides below:
<!-- To learn more about Fuchsia components and FIDL, check out the guides below: -->
要想了解更多有关 Fuchsia 组件和 FIDL 的信息,参考如下指南:
* [Build components](/development/components/build.md)
<!-- * [Build components](/development/components/build.md)
* [FIDL overview](/development/languages/fidl/README.md)
* [FIDL tutorials](/development/languages/fidl/tutorials/overview.md)
* [FIDL tutorials](/development/languages/fidl/tutorials/overview.md) -->
* [构建组件](/development/components/build.md)
* [FIDL 概览](/development/languages/fidl/README.md)
* [FIDL 教程](/development/languages/fidl/tutorials/overview.md)
## Contribute changes {#contribute-changes}
<!-- ## Contribute changes {#contribute-changes} -->
## 贡献更改 {#contribute-changes}
When you're ready to contribute to the Fuchsia project,
see [Contribute changes][contribute-changes].
<!-- When you're ready to contribute to the Fuchsia project,
see [Contribute changes][contribute-changes]. -->
当您准备好为 Fuchsia 项目做出贡献时,请参阅[贡献更改][contribute-changes]。
## See also
<!-- ## See also -->
## 参阅
For more information on Fuchsia's development workflows,
check out the following resources:
<!-- For more information on Fuchsia's development workflows,
check out the following resources: -->
要获取关于 Fuchsia 开发流程的更多信息,请参阅下列资源:
* [fx workflows](/development/build/fx.md)
<!-- * [fx workflows](/development/build/fx.md)
* [Workflow tips and questions](/development/source_code/workflow_tips_and_faq.md)
* [Configure editors](/development/editors/)
* [Source code layout](/development/source_code/layout.md)
* [Build system](/development/build/build_system/index.md)
* [Build system](/development/build/build_system/index.md) -->
* [fx 工作流程](/development/build/fx.md)
* [工作流程技巧和问题](/development/source_code/workflow_tips_and_faq.md)
* [配置编辑器](/development/editors/)
* [源码规划](/development/source_code/layout.md)
* [构建系统](/development/build/build_system/index.md)
<!-- Reference links -->
[components]: /concepts/components/v2
<!-- [components]: /concepts/components/v2
[run-examples]: /development/run/run-examples.md
[ffx-overview]: /development/tools/ffx/overview.md
[fidl]: /development/languages/fidl
[fidl-tutorials]: /development/languages/fidl/tutorials/overview.md
[fidl-concepts]: /concepts/fidl/overview.md
[run-fuchsia-tests]: /development/testing/run_fuchsia_tests.md
[scenic]: /concepts/ui/scenic/index.md
[contribute-changes]: /development/source_code/contribute_changes.md
[contribute-changes]: /development/source_code/contribute_changes.md -->
[组件]: /concepts/components/v2
[运行示例程序]: /development/run/run-examples.md
[ffx 命令概览]: /development/tools/ffx/overview.md
[fidl]: /development/languages/fidl
[fidl 指南]: /development/languages/fidl/tutorials/overview.md
[fidl 概念]: /concepts/fidl/overview.md
[运行 fuchsia 测试]: /development/testing/run_fuchsia_tests.md
[scenic]: /concepts/ui/scenic/index.md
[贡献更改]: /development/source_code/contribute_changes.md

0 comments on commit 4ece224

Please sign in to comment.