Skip to content

Commit 2e6edc6

Browse files
Update examples for language command (#145)
* Update examples for language command * Update README --------- Co-authored-by: Daniel Bachhuber <[email protected]>
1 parent c5e70ee commit 2e6edc6

File tree

2 files changed

+54
-16
lines changed

2 files changed

+54
-16
lines changed

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,37 @@ wp language
2323

2424
# Install the Dutch core language pack.
2525
$ wp language core install nl_NL
26-
Success: Language installed.
26+
Downloading translation from https://downloads.wordpress.org/translation/core/6.4.3/nl_NL.zip...
27+
Unpacking the update...
28+
Installing the latest version...
29+
Removing the old version of the translation...
30+
Translation updated successfully.
31+
Language 'nl_NL' installed.
32+
Success: Installed 1 of 1 languages.
2733

2834
# Activate the Dutch core language pack.
29-
$ wp language core activate nl_NL
35+
$ wp site switch-language nl_NL
3036
Success: Language activated.
3137

32-
# Install the Dutch language pack for Twenty Seventeen.
33-
$ wp language theme install twentyseventeen nl_NL
34-
Success: Language installed.
38+
# Install the Dutch theme language pack for Twenty Ten.
39+
$ wp language theme install twentyten nl_NL
40+
Downloading translation from https://downloads.wordpress.org/translation/theme/twentyten/4.0/nl_NL.zip...
41+
Unpacking the update...
42+
Installing the latest version...
43+
Removing the old version of the translation...
44+
Translation updated successfully.
45+
Language 'nl_NL' installed.
46+
Success: Installed 1 of 1 languages.
3547

36-
# Install the Dutch language pack for Akismet.
37-
$ wp language plugin install akismet nl_NL
38-
Success: Language installed.
48+
# Install the Dutch plugin language pack for Hello Dolly.
49+
$ wp language plugin install hello-dolly nl_NL
50+
Downloading translation from https://downloads.wordpress.org/translation/plugin/hello-dolly/1.7.2/nl_NL.zip...
51+
Unpacking the update...
52+
Installing the latest version...
53+
Removing the old version of the translation...
54+
Translation updated successfully.
55+
Language 'nl_NL' installed.
56+
Success: Installed 1 of 1 languages.
3957

4058

4159

src/Language_Namespace.php

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,39 @@
99
*
1010
* # Install the Dutch core language pack.
1111
* $ wp language core install nl_NL
12-
* Success: Language installed.
12+
* Downloading translation from https://downloads.wordpress.org/translation/core/6.4.3/nl_NL.zip...
13+
* Unpacking the update...
14+
* Installing the latest version...
15+
* Removing the old version of the translation...
16+
* Translation updated successfully.
17+
* Language 'nl_NL' installed.
18+
* Success: Installed 1 of 1 languages.
1319
*
1420
* # Activate the Dutch core language pack.
15-
* $ wp language core activate nl_NL
21+
* $ wp site switch-language nl_NL
1622
* Success: Language activated.
1723
*
18-
* # Install the Dutch language pack for Twenty Seventeen.
19-
* $ wp language theme install twentyseventeen nl_NL
20-
* Success: Language installed.
24+
* # Install the Dutch theme language pack for Twenty Ten.
25+
* $ wp language theme install twentyten nl_NL
26+
* Downloading translation from https://downloads.wordpress.org/translation/theme/twentyten/4.0/nl_NL.zip...
27+
* Unpacking the update...
28+
* Installing the latest version...
29+
* Removing the old version of the translation...
30+
* Translation updated successfully.
31+
* Language 'nl_NL' installed.
32+
* Success: Installed 1 of 1 languages.
2133
*
22-
* # Install the Dutch language pack for Akismet.
23-
* $ wp language plugin install akismet nl_NL
24-
* Success: Language installed.
34+
* # Install the Dutch plugin language pack for Hello Dolly.
35+
* $ wp language plugin install hello-dolly nl_NL
36+
* Downloading translation from https://downloads.wordpress.org/translation/plugin/hello-dolly/1.7.2/nl_NL.zip...
37+
* Unpacking the update...
38+
* Installing the latest version...
39+
* Removing the old version of the translation...
40+
* Translation updated successfully.
41+
* Language 'nl_NL' installed.
42+
* Success: Installed 1 of 1 languages.
43+
*
44+
* @package wp-cli
2545
*/
2646
class Language_Namespace extends CommandNamespace {
2747

0 commit comments

Comments
 (0)