From d2a9453d40263ddd0fd95c523a94bf8fbc743ae5 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Tue, 20 Feb 2024 11:16:34 +0545 Subject: [PATCH 1/2] Update examples for language command --- src/Language_Namespace.php | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/src/Language_Namespace.php b/src/Language_Namespace.php index 970f39610..8dd70ee7a 100644 --- a/src/Language_Namespace.php +++ b/src/Language_Namespace.php @@ -9,19 +9,39 @@ * * # Install the Dutch core language pack. * $ wp language core install nl_NL - * Success: Language installed. + * Downloading translation from https://downloads.wordpress.org/translation/core/6.4.3/nl_NL.zip... + * Unpacking the update... + * Installing the latest version... + * Removing the old version of the translation... + * Translation updated successfully. + * Language 'nl_NL' installed. + * Success: Installed 1 of 1 languages. * * # Activate the Dutch core language pack. - * $ wp language core activate nl_NL + * $ wp site switch-language nl_NL * Success: Language activated. * - * # Install the Dutch language pack for Twenty Seventeen. - * $ wp language theme install twentyseventeen nl_NL - * Success: Language installed. + * # Install the Dutch theme language pack for Twenty Ten. + * $ wp language theme install twentyten nl_NL + * Downloading translation from https://downloads.wordpress.org/translation/theme/twentyten/4.0/nl_NL.zip... + * Unpacking the update... + * Installing the latest version... + * Removing the old version of the translation... + * Translation updated successfully. + * Language 'nl_NL' installed. + * Success: Installed 1 of 1 languages. * - * # Install the Dutch language pack for Akismet. - * $ wp language plugin install akismet nl_NL - * Success: Language installed. + * # Install the Dutch plugin language pack for Hello Dolly. + * $ wp language plugin install hello-dolly nl_NL + * Downloading translation from https://downloads.wordpress.org/translation/plugin/hello-dolly/1.7.2/nl_NL.zip... + * Unpacking the update... + * Installing the latest version... + * Removing the old version of the translation... + * Translation updated successfully. + * Language 'nl_NL' installed. + * Success: Installed 1 of 1 languages. + * + * @package wp-cli */ class Language_Namespace extends CommandNamespace { From 49f85264c28569f7d2c3ac0dd931d0cdc015bd84 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 20 Feb 2024 04:31:04 -0800 Subject: [PATCH 2/2] Update README --- README.md | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 92fa21f08..2895a6904 100644 --- a/README.md +++ b/README.md @@ -23,19 +23,37 @@ wp language # Install the Dutch core language pack. $ wp language core install nl_NL - Success: Language installed. + Downloading translation from https://downloads.wordpress.org/translation/core/6.4.3/nl_NL.zip... + Unpacking the update... + Installing the latest version... + Removing the old version of the translation... + Translation updated successfully. + Language 'nl_NL' installed. + Success: Installed 1 of 1 languages. # Activate the Dutch core language pack. - $ wp language core activate nl_NL + $ wp site switch-language nl_NL Success: Language activated. - # Install the Dutch language pack for Twenty Seventeen. - $ wp language theme install twentyseventeen nl_NL - Success: Language installed. + # Install the Dutch theme language pack for Twenty Ten. + $ wp language theme install twentyten nl_NL + Downloading translation from https://downloads.wordpress.org/translation/theme/twentyten/4.0/nl_NL.zip... + Unpacking the update... + Installing the latest version... + Removing the old version of the translation... + Translation updated successfully. + Language 'nl_NL' installed. + Success: Installed 1 of 1 languages. - # Install the Dutch language pack for Akismet. - $ wp language plugin install akismet nl_NL - Success: Language installed. + # Install the Dutch plugin language pack for Hello Dolly. + $ wp language plugin install hello-dolly nl_NL + Downloading translation from https://downloads.wordpress.org/translation/plugin/hello-dolly/1.7.2/nl_NL.zip... + Unpacking the update... + Installing the latest version... + Removing the old version of the translation... + Translation updated successfully. + Language 'nl_NL' installed. + Success: Installed 1 of 1 languages.