Wp language core install (WP-CLI)

Uit De Vliegende Brigade
Versie door Jeroen Strompf (overleg | bijdragen) op 8 sep 2022 om 15:39
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen

wp language core install:

$ wp help language core install

NAME

  wp language core install

DESCRIPTION

  Installs a given language.

SYNOPSIS

  wp language core install <language>... [--activate]

  Downloads the language pack from WordPress.org.

OPTIONS

  <language>...
    Language code to install.

  [--activate]
    If set, the language will be activated immediately after install.

EXAMPLES

    # Install the Japanese language.
    $ wp language core install ja
    Downloading translation from https://downloads.wordpress.org/translation/core/4.9.8/ja.zip...
    Unpacking the update...
    Installing the latest version...
    Translation updated successfully.
    Language 'ja' installed.
    Success: Installed 1 of 1 languages.

Case sensitive

Dit voorbeeld laat zien, dat de taal_land-code écht case-sensitive is:

wp language core install fr_be

Warning: Language 'fr_be' not available.
Language 'fr_be' not installed.
Success: Installed 0 of 1 languages (1 skipped).


wp language core install fr_BE

Downloading translation from https://downloads.wordpress.org/translation/core/5.7.2/fr_BE.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the translation...
Translation updated successfully.
Language 'fr_BE' installed.
Success: Installed 1 of 1 languages.