浏览代码

Docs: Corrected the localization guide. [skip ci]

Anna Tomanek 5 年之前
父节点
当前提交
5e8be97638

+ 3 - 3
docs/features/ui-language.md

@@ -18,7 +18,7 @@ See the demo of the editor in Spanish:
 {@snippet features/ui-language}
 
 <info-box>
-	If you are interested in creating localizable features check out {@link framework/guides/deep-dive/localization the localization guide}.
+	If you are interested in creating features that can be localized, check out the {@link framework/guides/deep-dive/localization localization guide}.
 </info-box>
 
 ## Right–to–left (RTL) languages support
@@ -106,7 +106,7 @@ If you build CKEditor 5 from scratch or integrate it directly into your applicat
 
 1. Install the [`@ckeditor/ckeditor5-dev-webpack-plugin`](https://www.npmjs.com/package/@ckeditor/ckeditor5-dev-webpack-plugin) package:
 
-	```bash
+	```
 	npm install --save @ckeditor/ckeditor5-dev-webpack-plugin
 	```
 
@@ -146,7 +146,7 @@ If you build CKEditor 5 from scratch or integrate it directly into your applicat
 	// ...
 	```
 
-3. Run webpack. The CKEditor 5 plugin for webpack will emit additional files for each language specified in the `additionalLanguages` option with translations for messages from {@link module:utils/locale~Locale#t the `t()` function} calls to the `'translations'` directory (or different, if the `outputDirectory` option is specified). Translations from the language specified in the `language` option will be automatically included in the build.
+3. Run webpack. The CKEditor 5 plugin for webpack will emit additional files for each language specified in the `additionalLanguages` option. They will contain translations for messages from the {@link module:utils/locale~Locale#t `t()` function} calls. The files will be created in the `'translations'` directory (or another one if the `outputDirectory` option is specified). Translations from the language specified in the `language` option will be automatically included in the build.
 
 4. If you want to change the language after the build ends, you will need to edit the `index.html` file, add the translation file, and set the UI language to the target one.
 

+ 1 - 1
docs/framework/guides/architecture/ui-library.md

@@ -12,7 +12,7 @@ The standard UI library of CKEditor 5 is [`@ckeditor/ckeditor5-ui`](https://www.
 Views use [templates](#templates) to build the UI. They also provide observable interfaces that other features (e.g. {@link framework/guides/architecture/core-editor-architecture#plugins plugins}, {@link framework/guides/architecture/core-editor-architecture#commands commands}, etc.) can use to change the DOM without any actual interaction with the native API.
 
 <info-box>
-	All views can be localizable using the `locale` instance on which they are created. Check {@link framework/guides/deep-dive/localization the localization guide} to see how the `t()` function coming from the `locale` instance should be used.
+	All views can be localized using the `locale` instance on which they are created. Check the {@link framework/guides/deep-dive/localization localization guide} to see how to use the `t()` function coming from the `locale` instance.
 </info-box>
 
 ### Definition

+ 2 - 2
docs/framework/guides/creating-simple-plugin.md

@@ -20,7 +20,7 @@ The plugin that you will write will use a part of the {@link features/image imag
 </info-box>
 
 <info-box hint>
-	For simplicity reasons this guide does not describe how to localize the created plugin. To see how plugins should be localized check {@link framework/guides/deep-dive/localization the localization guide}.
+	For simplicity reasons this guide does not describe how to localize the created plugin. To see how to localize plugins, refer to the {@link framework/guides/deep-dive/localization localization guide}.
 </info-box>
 
 ## Step 1. Installing dependencies
@@ -31,7 +31,7 @@ Start from installing the necessary dependencies:
 * The [`@ckeditor/ckeditor5-core`](https://www.npmjs.com/package/@ckeditor/ckeditor5-core) package which contains the {@link module:core/plugin~Plugin} and {@link module:core/command~Command} classes.
 * The [`@ckeditor/ckeditor5-ui`](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui) package which contains the UI library and framework.
 
-```bash
+```
 npm install --save @ckeditor/ckeditor5-image \
 	@ckeditor/ckeditor5-core \
 	@ckeditor/ckeditor5-ui

文件差异内容过多而无法显示
+ 73 - 45
docs/framework/guides/deep-dive/localization.md