Skip to content

Commit 10d1d34

Browse files
authored
[完成翻译] src/get-started/install/windows/mobile (#1413)
1 parent 69765ab commit 10d1d34

File tree

5 files changed

+96
-5
lines changed

5 files changed

+96
-5
lines changed

src/_includes/docs/install/flutter-sdk.md

+3
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ or download and install the Flutter bundle yourself.
4949
If you have installed all prerequisites and the Flutter SDK,
5050
you should be able to start developing Flutter on
5151
{{os}} for {{v-target}}.
52+
53+
如果你已经安装了所有必要条件和 Flutter SDK,
54+
你应该就可以在 {{os}} 上为 {{v-target}} 开发 Flutter。

src/_includes/docs/install/flutter/download.md

+40-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
### Download then install Flutter
44
{:.no_toc}
55

6+
### 下载并安装 Flutter
7+
{:.no_toc}
8+
69
{% assign os = include.os %}
710
{% assign osl = include.os | downcase %}
811
{% assign target = include.target %}
@@ -14,7 +17,7 @@
1417
{% assign terminal='PowerShell' %}
1518
{% assign prompt='C:>' %}
1619
{% assign prompt2=path | append: '>' %}
17-
{% assign diroptions='`%USERPROFILE%` (`C:\Users\{username}`) or `%LOCALAPPDATA%` (`C:\Users\{username}\AppData\Local`)' %}
20+
{% assign diroptions='`%USERPROFILE%` (`C:\Users\{username}`) 或者 `%LOCALAPPDATA%` (`C:\Users\{username}\AppData\Local`)' %}
1821
{% assign dirinstall='`%USERPROFILE%\dev\`' %}
1922
{% assign dirdl='%USERPROFILE%\Downloads' %}
2023
{% assign ps-dir-dl='$env:USERPROFILE\Downloads\' %}
@@ -68,47 +71,80 @@ download the Flutter SDK bundle from its archive,
6871
move the bundle to where you want it stored,
6972
then extract the SDK.
7073

74+
从归档列表中下载 Flutter SDK 压缩包,
75+
将压缩包移动到你想要的位置,
76+
然后解压 SDK,
77+
以此来安装 Flutter。
78+
7179
1. Download the following installation bundle to get the latest
7280
{{site.sdk.channel}} release of the Flutter SDK.
7381

82+
下载以下 Flutter SDK 最新 {{site.sdk.channel}} 版本的
83+
压缩包。
84+
7485
{% if os=='macOS' %}
7586

76-
| Intel Processor | | Apple Silicon |
87+
| <t>Intel Processor</t><t>Intel 处理器</t> | | <t>Apple Silicon</t><t>Apple Silicon 处理器</t> |
7788
|-----------------|-|---------------|
78-
| [(loading...)](#){:.download-latest-link-{{osl}}.btn.btn-primary} | | [(loading...)](#){:.download-latest-link-{{osl}}-arm64.apple-silicon.btn.btn-primary} |
89+
| [(获取中...)](#){:.download-latest-link-{{osl}}.btn.btn-primary} | | [(获取中...)](#){:.download-latest-link-{{osl}}-arm64.apple-silicon.btn.btn-primary} |
7990

8091
{% else %}
8192

82-
[(loading...)](#){:.download-latest-link-{{osl}}.btn.btn-primary}
93+
[(获取中...)](#){:.download-latest-link-{{osl}}.btn.btn-primary}
8394

8495
{% endif -%}
8596

8697
For other release channels, and older builds, check out the [SDK archive][].
8798

99+
关于其他发布渠道和旧版本,
100+
请查阅 [Flutter SDK 归档列表][SDK archive]
101+
88102
The Flutter SDK should download to the {{os}} default download directory:
89103
`{{dirdl}}`.
104+
105+
Flutter SDK 应该会下载至 {{os}} 默认下载目录:
106+
`{{dirdl}}`
107+
90108
{% if os=='Windows' %}
109+
91110
If you changed the location of the Downloads directory,
92111
replace this path with that path.
93112
To find your Downloads directory location,
94113
check out this [Microsoft Community post][move-dl].
114+
115+
如果你自行更改了下载目录的位置,
116+
那么请将之后步骤中解压指令 (Expand-Archive) 的
117+
路径 (-Path) 改为你更改后的路径。
118+
如果你需要查找当前计算机下载目录的位置,
119+
请查阅 [Microsoft Community post][move-dl]
120+
95121
{% endif %}
96122

97123
1. Create a folder where you can install Flutter.
98124

125+
创建一个文件夹,用于安装 Flutter。
126+
99127
Consider creating a directory at {{diroptions}}.
128+
129+
可以考虑在 {{diroptions}} 中创建一个目录。
130+
100131
{% if os == "Windows" -%}
101132
{% include docs/install/admonitions/install-paths.md %}
102133
{% endif %}
103134

104135
1. Extract the zip file into the directory you want to store the Flutter SDK.
105136

137+
将 Flutter SDK 压缩文件 (zip) 解压到你想要存储的目录中。
138+
可以使用以下指令进行解压。
139+
106140
```terminal
107141
{{uz}}
108142
```
109143

110144
When finished, the Flutter SDK should be in the `{{flutter-path}}` directory.
111145

146+
完成后,Flutter SDK 应该会位于 `{{flutter-path}}` 目录中。
147+
112148
[SDK archive]: {{site.url}}/release/archive
113149

114150
{% case os %}

src/_includes/docs/install/flutter/vscode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ you have installed [Visual Studio Code][]
8989
VS Code places you in your user profile to start.
9090
Choose a different location.
9191

92-
VS Code 会打开你默认的位置 (系统环境 %USERPROFILE% 的根目录)
92+
VS Code 会打开你默认的位置。
9393
你可以选择其他位置。
9494

9595
{% if os == "Windows" -%}
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
1. Press <kbd>Windows</kbd> + <kbd>Pause</kbd>.
22

3+
按下快捷键 <kbd>Windows</kbd> + <kbd>Pause</kbd>。
4+
35
If your keyboard lacks a <kbd>Pause</kbd> key,
46
try <kbd>Windows</kbd> + <kbd>Fn</kbd> + <kbd>B</kbd>.
57

8+
如果你的键盘上没有 <kbd>Pause</kbd> 键,
9+
请尝试 <kbd>Windows</kbd> + <kbd>Fn</kbd> + <kbd>B</kbd>。
10+
611
The **System > About** dialog displays.
712

13+
这将会显示 **系统 > 系统信息** 的窗口。
14+
815
1. Click **Advanced System Settings**
916
<span aria-label="and then">></span> **Advanced**
1017
<span aria-label="and then">></span> **Environment Variables...**
1118

19+
单击 **高级系统设置**
20+
<span aria-label="and then">></span> **高级**
21+
<span aria-label="and then">></span> **环境变量…**
22+
1223
The **Environment Variables** dialog displays.
24+
25+
这将会显示 **环境变量** 的窗口。

src/_includes/docs/install/reqs/windows/set-path.md

+39
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,85 @@
33
### Update your Windows PATH variable
44
{:.no_toc}
55

6+
### 更新 Windows PATH 环境变量
7+
{:.no_toc}
8+
69
{% include docs/help-link.md location='win-path' section='#unable-to-find-the-flutter-command' %}
710

811
To run Flutter commands in {{terminal}},
912
add Flutter to the `PATH` environment variable.
1013
This section presumes that you installed the Flutter SDK in
1114
`%USERPROFILE%\dev\flutter`.
1215

16+
将 Flutter 添加到 `PATH` 环境变量后,
17+
才能在 {{terminal}} 中运行 Flutter 指令。
18+
本节假定你在 `%USERPROFILE%\dev\flutter`
19+
安装了 Flutter SDK。
20+
1321
{% include docs/install/reqs/windows/open-envvars.md %}
1422

1523
1. In the **User variables for (username)** section,
1624
look for the **Path** entry.
1725

26+
**username 用户变量** 的部分中,
27+
找到 **Path** 条目。
28+
1829
{:type="a"}
1930
1. If the entry exists, double-click on it.
2031

32+
如果存在该条目,请双击它。
33+
2134
The **Edit Environment Variable** dialog displays.
2235

36+
这将会显示 **编辑环境变量** 的窗口。
37+
2338
{:type="i"}
2439

2540
1. Double-click in an empty row.
2641

42+
双击空白行。
43+
2744
1. Type `%USERPROFILE%\dev\flutter\bin`.
2845

46+
输入 `%USERPROFILE%\dev\flutter\bin`
47+
2948
1. Click the **%USERPROFILE%\dev\flutter\bin** entry.
3049

50+
单击选中 **%USERPROFILE%\dev\flutter\bin** 条目。
51+
3152
1. Click **Move Up** until the Flutter entry sits at the top of the list.
3253

54+
单击 **上移**,直到 Flutter 条目位于列表顶部。
55+
3356
1. Click **OK** three times.
3457

58+
顺着打开的窗口依次点击 **确认**(三次)。
59+
3560
1. If the entry doesn't exist, click **New...**.
3661

62+
如果条目不存在,请单击 **新建…**
63+
3764
The **Edit Environment Variable** dialog displays.
3865

66+
这将会显示 **新建用户变量** 的窗口。
67+
3968
{:type="i"}
4069
1. In the **Variable Name** box, type `Path`.
4170

71+
**变量名** 框中,输入 `Path`
72+
4273
1. In the **Variable Value** box,
4374
type `%USERPROFILE%\dev\flutter\bin`
4475

76+
**变量值** 框中,
77+
输入 `%USERPROFILE%\dev\flutter\bin`
78+
4579
1. Click **OK** three times.
4680

81+
顺着打开的窗口依次点击 **确认**(三次)。
82+
4783
1. To enable these changes,
4884
close and reopen any existing command prompts and {{terminal}} instances.
85+
86+
为了启用这些更改,
87+
请关闭并重新打开任何现有命令提示符和 {{terminal}} 实例。

0 commit comments

Comments
 (0)