-
Notifications
You must be signed in to change notification settings - Fork 182
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
翻译 get-started/_common/components/_organizing_identifying.md #164
Merged
y2-Whyto
merged 4 commits into
FuchsiaOS:2022
from
tabidachinokaze:_organizing_identifying
Jul 30, 2022
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,21 +1,31 @@ | ||||||
## Identifying components | ||||||
<!-- ## Identifying components --> | ||||||
## 标识组件 | ||||||
|
||||||
<!-- | ||||||
Components are identified by a URL. The framework resolves component URLs to | ||||||
component declarations with the help of a **component resolver**. Resolvers are | ||||||
components themselves that are capable of handling a particular URL scheme and | ||||||
fetching the component manifest, program, and assets. | ||||||
--> | ||||||
组件由 URL 标识。框架借助**组件解析器**将组件 URL 解析为组件声明。解析器本身就是能够处理特定 URL scheme 并获取组件清单、程序和资源的组件。 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
scheme应该要翻译的。 |
||||||
|
||||||
<!-- | ||||||
Most components are published inside a Fuchsia package, so the component URL is | ||||||
a reference to the component manifest inside that package. See the following | ||||||
example: | ||||||
--> | ||||||
大多数组件都发布在 Fuchsia 包内,因此组件 URL 是对该包内组件清单的引用。请查看下面的示例: | ||||||
|
||||||
|
||||||
```none | ||||||
fuchsia-pkg://fuchsia.com/{{ '<var>' }}foo-package{{ '</var>' }}#meta/{{ '<var>' }}foo-component.cm{{ '</var>' }} | ||||||
``` | ||||||
|
||||||
<!-- | ||||||
Component instances are identified by a topological path reference known as a | ||||||
**moniker**. A component's moniker indicates its location within the component | ||||||
instance tree as an absolute or relative path. For example, the moniker path | ||||||
`/core/system-updater` refers to the instance of `system-updater` that exists | ||||||
in the `core` realm. | ||||||
--> | ||||||
组件实例由称为 **moniker** 的拓扑路径引用来标识。组件的 moniker 将其在组件实例树中的位置指示为绝对或相对路径。例如,moniker 路径 `/core/system-updater` 指的是存在于 `core` 领域中的 `system-updater` 的实例。 | ||||||
tabidachinokaze marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
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.
标识组件感觉有点像这个组件的作用是标识。感觉组件的标记会不会好一点。