|
5 | 5 | * |
6 | 6 | * ## EXAMPLES |
7 | 7 | * |
8 | | - * # Install the Dutch theme language pack. |
| 8 | + * # Install the Dutch theme language pack for Twenty Ten. |
9 | 9 | * $ wp language theme install twentyten nl_NL |
10 | | - * Success: Language installed. |
| 10 | + * Downloading translation from https://downloads.wordpress.org/translation/theme/twentyten/4.0/nl_NL.zip... |
| 11 | + * Unpacking the update... |
| 12 | + * Installing the latest version... |
| 13 | + * Removing the old version of the translation... |
| 14 | + * Translation updated successfully. |
| 15 | + * Language 'nl_NL' installed. |
| 16 | + * Success: Installed 1 of 1 languages. |
11 | 17 | * |
12 | | - * # Uninstall the Dutch theme language pack. |
| 18 | + * # Uninstall the Dutch theme language pack for Twenty Ten. |
13 | 19 | * $ wp language theme uninstall twentyten nl_NL |
14 | | - * Success: Language uninstalled. |
| 20 | + * Language 'nl_NL' for 'twentyten' uninstalled. |
| 21 | + * +-----------+--------+-------------+ |
| 22 | + * | name | locale | status | |
| 23 | + * +-----------+--------+-------------+ |
| 24 | + * | twentyten | nl_NL | uninstalled | |
| 25 | + * +-----------+--------+-------------+ |
| 26 | + * Success: Uninstalled 1 of 1 languages. |
15 | 27 | * |
16 | | - * # List installed theme language packages. |
17 | | - * $ wp language theme list --status=installed |
18 | | - * +----------+--------------+-------------+-----------+-----------+---------------------+ |
19 | | - * | language | english_name | native_name | status | update | updated | |
20 | | - * +----------+--------------+-------------+-----------+-----------+---------------------+ |
21 | | - * | nl_NL | Dutch | Nederlands | installed | available | 2016-05-13 08:12:50 | |
22 | | - * +----------+--------------+-------------+-----------+-----------+---------------------+ |
| 28 | + * # List installed theme language packs for Twenty Ten. |
| 29 | + * $ wp language theme list twentyten --status=installed |
| 30 | + * +-----------+----------+--------------+-------------+-----------+--------+---------------------+ |
| 31 | + * | theme | language | english_name | native_name | status | update | updated | |
| 32 | + * +-----------+----------+--------------+-------------+-----------+--------+---------------------+ |
| 33 | + * | twentyten | nl_NL | Dutch | Nederlands | installed | none | 2023-12-29 21:21:39 | |
| 34 | + * +-----------+----------+--------------+-------------+-----------+--------+---------------------+ |
| 35 | + * |
| 36 | + * @package wp-cli |
23 | 37 | */ |
24 | 38 | class Theme_Language_Command extends WP_CLI\CommandWithTranslation { |
25 | 39 | protected $obj_type = 'themes'; |
@@ -78,8 +92,8 @@ class Theme_Language_Command extends WP_CLI\CommandWithTranslation { |
78 | 92 | * |
79 | 93 | * ## EXAMPLES |
80 | 94 | * |
81 | | - * # List language,english_name,status fields of available languages. |
82 | | - * $ wp language theme list --fields=language,english_name,status |
| 95 | + * # List available language packs for the theme. |
| 96 | + * $ wp language theme list twentyten --fields=language,english_name,status |
83 | 97 | * +----------------+-------------------------+-------------+ |
84 | 98 | * | language | english_name | status | |
85 | 99 | * +----------------+-------------------------+-------------+ |
@@ -397,8 +411,15 @@ private function install_many( $args, $assoc_args ) { |
397 | 411 | * |
398 | 412 | * ## EXAMPLES |
399 | 413 | * |
| 414 | + * # Uninstall the Japanese theme language pack for Twenty Ten. |
400 | 415 | * $ wp language theme uninstall twentyten ja |
401 | | - * Success: Language uninstalled. |
| 416 | + * Language 'ja' for 'twentyten' uninstalled. |
| 417 | + * +-----------+--------+-------------+ |
| 418 | + * | name | locale | status | |
| 419 | + * +-----------+--------+-------------+ |
| 420 | + * | twentyten | ja | uninstalled | |
| 421 | + * +-----------+--------+-------------+ |
| 422 | + * Success: Uninstalled 1 of 1 languages. |
402 | 423 | * |
403 | 424 | * @subcommand uninstall |
404 | 425 | */ |
@@ -564,6 +585,7 @@ public function uninstall( $args, $assoc_args ) { |
564 | 585 | * |
565 | 586 | * ## EXAMPLES |
566 | 587 | * |
| 588 | + * # Update all installed language packs for all themes. |
567 | 589 | * $ wp language theme update --all |
568 | 590 | * Updating 'Japanese' translation for Twenty Fifteen 1.5... |
569 | 591 | * Downloading translation from https://downloads.wordpress.org/translation/theme/twentyfifteen/1.5/ja.zip... |
|
0 commit comments