Skip to content

Commit

Permalink
重新提交翻译 get-started/_common/intro/_components_capabilities.md (#193)
Browse files Browse the repository at this point in the history
* translate components overview

* translate components overview

* modify session translate

* translate explore fuchsia

* first version

* first version of components organization

* first version of components manager

* 组件管理器翻译

* 翻译包简介

* 修改驱动框架翻译,合并原先PR提交中的反馈

* 回退无关文件到原始版本

* 回退无关文件到最新合并版本

* 合并原先PR审核意见

* 分拆翻译文件到单独分支

* 分拆翻译文件到单独分支,合并原PR中的审核信息

* 分拆翻译文件到单独分支,合并原PR中的审核信息

* 分拆翻译文件到单独分支,合并原PR中的审核信息

* 分拆到单独分支

* 分拆到单独分支

* 分拆到单独分支,合并原PR中修改意见

* 分拆到单独分支

* Update get-started/_common/intro/_components_capabilities.md

Co-authored-by: y2-Whyto <[email protected]>

* Update get-started/_common/intro/_components_capabilities.md

Co-authored-by: y2-Whyto <[email protected]>

* Update get-started/_common/intro/_components_capabilities.md

Co-authored-by: y2-Whyto <[email protected]>

* Update get-started/_common/intro/_components_capabilities.md

Co-authored-by: y2-Whyto <[email protected]>

* Update get-started/_common/intro/_components_capabilities.md

Co-authored-by: y2-Whyto <[email protected]>

Co-authored-by: Eric X <[email protected]>
Co-authored-by: y2-Whyto <[email protected]>
  • Loading branch information
3 people authored Aug 26, 2022
1 parent 20e045f commit 2220eb1
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions get-started/_common/intro/_components_capabilities.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
## Component capabilities
<!-- ## Component capabilities -->
## 组件能力

Components obtain privileges to access various parts of the wider system
<!-- 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.
(or the framework) that they require to function. -->
组件通过**能力**(capability)获得访问更广泛系统的各个部分的权限。每个组件都可以声明其提供给系统的新能力,以及其运行所需的由其他组件(或框架)提供的能力。

As you just saw, `runner` is an example of a capability declaring the runtime
<!-- As you just saw, `runner` is an example of a capability declaring the runtime
used by the component. Other examples of common capability types are
`directory` to access filesystem resources and `protocol` for communicating
with other components.
with other components. -->
如您所见,`runner` 是一个声明组件运行时所需能力的例子。其它常见能力类型的例子是访问文件系统资源的 `directory` 和与其它组件通信的 `protocol`

Developers declare the capability types required by the component using the
<!-- Developers declare the capability types required by the component using the
component manifest. Below is an example of a component manifest requesting
two capabilities: read access to an `example-data` directory and a service
described by the `fuchsia.example.Foo` FIDL protocol.
described by the `fuchsia.example.Foo` FIDL protocol. -->
开发者在组件清单声明组件所需要的能力类型。以下是请求两个能力的组件清单示例:对 `example-data` 目录的读权限和以 FIDL 协议 `fuchsia.example.Foo` 描述的服务。

```json5
use: [
Expand All @@ -28,6 +32,7 @@ use: [
]
```

Component manager uses the capability declarations to populate each component's
<!-- Component manager uses the capability declarations to populate each component's
namespace with the necessary directory handles. For this example, the component
would receive `/example/data` and `/svc/fuchsia.example.Foo` in their namespace.
would receive `/example/data` and `/svc/fuchsia.example.Foo` in their namespace. -->
组件管理器依据能力声明将必需的目录句柄填入各个组件的命名空间。对于本例而言,组件将在其命名空间中接收到 `/example/data``/svc/fuchsia.example.Foo`

0 comments on commit 2220eb1

Please sign in to comment.