OSDN Git Service

add --locale parameter to 'wp core config'. fixes #607
authorscribu <mail@scribu.net>
Tue, 23 Jul 2013 00:23:58 +0000 (03:23 +0300)
committerscribu <mail@scribu.net>
Tue, 23 Jul 2013 00:23:58 +0000 (03:23 +0300)
man-src/core-config.txt
php/commands/core.php

index 2f59209..9945a05 100644 (file)
 
        Set the database table prefix. Default: 'wp_'
 
+* `--locale`=<locale>:
+
+       Set the WPLANG constant. Defaults to $wp_local_package variable.
+
 * `--extra-php`:
 
        If set, the command reads additional PHP code from STDIN.
@@ -27,7 +31,7 @@
 ## EXAMPLES
 
        # Standard wp-config.php file
-       wp core config --dbname=testing --dbuser=wp --dbpass=securepswd
+       wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --locale=ro_RO
 
        # Enable WP_DEBUG and WP_DEBUG_LOG
        wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP
index 1458a88..cc4eaf8 100644 (file)
@@ -75,7 +75,7 @@ class Core_Command extends WP_CLI_Command {
        /**
         * Set up a wp-config.php file.
         *
-        * @synopsis --dbname=<name> --dbuser=<user> [--dbpass=<password>] [--dbhost=<host>] [--dbprefix=<prefix>] [--extra-php]
+        * @synopsis --dbname=<name> --dbuser=<user> [--dbpass=<password>] [--dbhost=<host>] [--dbprefix=<prefix>] [--locale=<locale>] [--extra-php]
         */
        public function config( $_, $assoc_args ) {
                if ( Utils\locate_wp_config() ) {