Skip to content

Commit 1219767

Browse files
authored
Merge pull request #83 from wp-cli/update-readme-220
Update README.md file
2 parents 431a116 + 2f2e650 commit 1219767

File tree

1 file changed

+50
-7
lines changed

1 file changed

+50
-7
lines changed

README.md

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ Downloads the language pack from WordPress.org.
137137

138138
# Install the Japanese language.
139139
$ wp language core install ja
140-
Success: Language installed.
140+
Downloading translation from https://downloads.wordpress.org/translation/core/4.9.8/ja.zip...
141+
Unpacking the update...
142+
Installing the latest version...
143+
Translation updated successfully.
144+
Language 'ja' installed.
145+
Success: Installed 1 of 1 languages.
141146

142147

143148

@@ -297,24 +302,43 @@ Returns exit code 0 when installed, 1 when uninstalled.
297302
Installs a given language for a plugin.
298303

299304
~~~
300-
wp language plugin install <plugin> <language>...
305+
wp language plugin install [<plugin>] [--all] <language>... [--format=<format>]
301306
~~~
302307

303308
Downloads the language pack from WordPress.org.
304309

305310
**OPTIONS**
306311

307-
<plugin>
312+
[<plugin>]
308313
Plugin to install language for.
309314

315+
[--all]
316+
If set, languages for all plugins will be installed.
317+
310318
<language>...
311319
Language code to install.
312320

321+
[--format=<format>]
322+
Render output in a particular format. Used when installing languages for all plugins.
323+
---
324+
default: table
325+
options:
326+
- table
327+
- csv
328+
- json
329+
- summary
330+
---
331+
313332
**EXAMPLES**
314333

315334
# Install the Japanese language for Akismet.
316335
$ wp language plugin install akismet ja
317-
Success: Language installed.
336+
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet/4.0.3/ja.zip...
337+
Unpacking the update...
338+
Installing the latest version...
339+
Translation updated successfully.
340+
Language 'ja' installed.
341+
Success: Installed 1 of 1 languages.
318342

319343

320344

@@ -490,24 +514,43 @@ Returns exit code 0 when installed, 1 when uninstalled.
490514
Installs a given language for a theme.
491515

492516
~~~
493-
wp language theme install <theme> <language>...
517+
wp language theme install [<theme>] [--all] <language>... [--format=<format>]
494518
~~~
495519

496520
Downloads the language pack from WordPress.org.
497521

498522
**OPTIONS**
499523

500-
<theme>
524+
[<theme>]
501525
Theme to install language for.
502526

527+
[--all]
528+
If set, languages for all themes will be installed.
529+
503530
<language>...
504531
Language code to install.
505532

533+
[--format=<format>]
534+
Render output in a particular format. Used when installing languages for all themes.
535+
---
536+
default: table
537+
options:
538+
- table
539+
- csv
540+
- json
541+
- summary
542+
---
543+
506544
**EXAMPLES**
507545

508546
# Install the Japanese language for Twenty Seventeen.
509547
$ wp language theme install twentyseventeen ja
510-
Success: Language installed.
548+
Downloading translation from https://downloads.wordpress.org/translation/theme/twentyseventeen/1.3/ja.zip...
549+
Unpacking the update...
550+
Installing the latest version...
551+
Translation updated successfully.
552+
Language 'ja' installed.
553+
Success: Installed 1 of 1 languages.
511554

512555

513556

0 commit comments

Comments
 (0)