Welcome to Centmin Mod Community
Become a Member

Wordpress how use option 22 for other language

Discussion in 'Blogs & CMS usage' started by hardousse, Feb 10, 2016.

  1. hardousse

    hardousse Active Member

    169
    35
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +57
    Local Time:
    12:15 PM
    1.11.*
    10.1*
    hi
    i use centmin for all my site just i have one question how i can use centminmod option 22 to install wordpress arabic language not english can someone help how do this .
    thank you

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    never done it before using another language but centmin.sh menu option 22 uses wp-cli command line and it has commands for installing and listing languages
    so change into wp install directory and I believe to list languages available run
    Code:
    cd /home/nginx/domains/domain.com/public
    wp core language list --allow-root
    to install language where LANGUAGE_NAME is language name you want to install
    Code:
    wp core language install LANGUAGE_NAME --allow-root
    or activate it after install
    Code:
    wp core language activate LANGUAGE_NAME --allow-root
    or to install + activate
    Code:
    wp core language install LANGUAGE_NAME --activate --allow-root
    I might update 123.09beta01 with an include file so folks can add their own wp-cli commands that run after centmin.sh menu option 22 initial commands so you can customise installs with stuff like above :)

    list of languages
    Code:
    wp core language list --allow-root
    +--------------+-------------------------+-------------------------+-------------+--------+---------------------+
    | language     | english_name            | native_name             | status      | update | updated             |
    +--------------+-------------------------+-------------------------+-------------+--------+---------------------+
    | ar           | Arabic                  | العربية                 | uninstalled | none   | 2016-02-07 13:09:53 |
    | ary          | Moroccan Arabic         | العربية المغربية        | uninstalled | none   | 2015-12-12 10:15:45 |
    | az           | Azerbaijani             | Azərbaycan dili         | uninstalled | none   | 2015-12-07 20:53:51 |
    | azb          | South Azerbaijani       | گؤنئی آذربایجان         | uninstalled | none   | 2015-12-11 22:42:10 |
    | bg_BG        | Bulgarian               | Български               | uninstalled | none   | 2015-12-08 08:50:29 |
    | bn_BD        | Bengali                 | বাংলা                   | uninstalled | none   | 2016-02-08 13:17:04 |
    | bs_BA        | Bosnian                 | Bosanski                | uninstalled | none   | 2016-02-04 09:40:25 |
    | ca           | Catalan                 | Català                  | uninstalled | none   | 2016-01-16 13:48:03 |
    | ceb          | Cebuano                 | Cebuano                 | uninstalled | none   | 2016-02-08 22:47:19 |
    | cy           | Welsh                   | Cymraeg                 | uninstalled | none   | 2016-01-26 16:01:40 |
    | da_DK        | Danish                  | Dansk                   | uninstalled | none   | 2015-12-08 22:48:20 |
    | de_CH        | German (Switzerland)    | Deutsch (Schweiz)       | uninstalled | none   | 2015-12-08 14:19:21 |
    | de_DE        | German                  | Deutsch                 | uninstalled | none   | 2016-01-26 10:48:10 |
    | de_DE_formal | German (Formal)         | Deutsch (Sie)           | uninstalled | none   | 2016-01-21 14:06:26 |
    | el           | Greek                   | Ελληνικά                | uninstalled | none   | 2016-02-01 20:22:48 |
    | en_AU        | English (Australia)     | English (Australia)     | uninstalled | none   | 2015-12-07 04:39:48 |
    | en_CA        | English (Canada)        | English (Canada)        | uninstalled | none   | 2015-12-06 23:10:59 |
    | en_GB        | English (UK)            | English (UK)            | uninstalled | none   | 2016-01-14 21:14:29 |
    | en_NZ        | English (New Zealand)   | English (New Zealand)   | uninstalled | none   | 2015-12-08 13:34:17 |
    | en_US        | English (United States) | English (United States) | active      | none   |                     |
    | en_ZA        | English (South Africa)  | English (South Africa)  | uninstalled | none   | 2015-12-15 11:52:35 |
    | eo           | Esperanto               | Esperanto               | uninstalled | none   | 2016-01-25 13:07:29 |
    | es_AR        | Spanish (Argentina)     | Español de Argentina    | uninstalled | none   | 2015-12-23 00:46:01 |
    | es_CL        | Spanish (Chile)         | Español de Chile        | uninstalled | none   | 2016-01-28 19:55:54 |
    | es_CO        | Spanish (Colombia)      | Español de Colombia     | uninstalled | none   | 2015-08-04 06:10:33 |
    | es_ES        | Spanish (Spain)         | Español                 | uninstalled | none   | 2016-01-24 19:37:59 |
    | es_MX        | Spanish (Mexico)        | Español de México       | uninstalled | none   | 2015-12-07 17:35:10 |
    | es_PE        | Spanish (Peru)          | Español de Perú         | uninstalled | none   | 2016-01-24 15:17:36 |
    | es_VE        | Spanish (Venezuela)     | Español de Venezuela    | uninstalled | none   | 2016-01-13 06:14:13 |
    | et           | Estonian                | Eesti                   | uninstalled | none   | 2016-01-24 20:58:31 |
    | eu           | Basque                  | Euskara                 | uninstalled | none   | 2015-12-07 21:19:15 |
    | fa_IR        | Persian                 | فارسی                   | uninstalled | none   | 2016-01-31 19:24:20 |
    | fi           | Finnish                 | Suomi                   | uninstalled | none   | 2015-12-23 06:49:15 |
    | fr_BE        | French (Belgium)        | Français de Belgique    | uninstalled | none   | 2015-12-08 13:47:35 |
    | fr_CA        | French (Canada)         | Français du Canada      | uninstalled | none   | 2015-12-09 02:16:19 |
    | fr_FR        | French (France)         | Français                | uninstalled | none   | 2016-01-28 16:37:34 |
    | gd           | Scottish Gaelic         | Gàidhlig                | uninstalled | none   | 2015-09-24 15:25:30 |
    | gl_ES        | Galician                | Galego                  | uninstalled | none   | 2016-01-13 16:48:03 |
    | haz          | Hazaragi                | هزاره گی                | uninstalled | none   | 2015-12-05 00:59:09 |
    | he_IL        | Hebrew                  | עִבְרִית                   | uninstalled | none   | 2016-02-07 13:33:42 |
    | hi_IN        | Hindi                   | हिन्दी                  | uninstalled | none   | 2016-02-06 14:16:56 |
    | hr           | Croatian                | Hrvatski                | uninstalled | none   | 2016-01-26 11:21:04 |
    | hu_HU        | Hungarian               | Magyar                  | uninstalled | none   | 2016-02-03 14:37:42 |
    | hy           | Armenian                | Հայերեն                 | uninstalled | none   | 2016-02-04 07:13:54 |
    | id_ID        | Indonesian              | Bahasa Indonesia        | uninstalled | none   | 2015-12-21 16:17:50 |
    | is_IS        | Icelandic               | Íslenska                | uninstalled | none   | 2015-12-08 00:20:24 |
    | it_IT        | Italian                 | Italiano                | uninstalled | none   | 2016-01-30 18:58:39 |
    | ja           | Japanese                | 日本語                  | uninstalled | none   | 2016-01-15 13:41:43 |
    | ka_GE        | Georgian                | ქართული                 | uninstalled | none   | 2016-02-08 07:31:53 |
    | ko_KR        | Korean                  | 한국어                  | uninstalled | none   | 2015-12-09 07:35:25 |
    | lt_LT        | Lithuanian              | Lietuvių kalba          | uninstalled | none   | 2015-12-08 20:07:24 |
    | ms_MY        | Malay                   | Bahasa Melayu           | uninstalled | none   | 2016-01-28 05:41:39 |
    | my_MM        | Myanmar (Burmese)       | ဗမာစာ                   | uninstalled | none   | 2015-03-26 15:57:42 |
    | nb_NO        | Norwegian (Bokmål)      | Norsk bokmål            | uninstalled | none   | 2015-12-07 10:01:09 |
    | nl_NL        | Dutch                   | Nederlands              | uninstalled | none   | 2016-02-07 10:12:04 |
    | nl_NL_formal | Dutch (Formal)          | Nederlands (Formeel)    | uninstalled | none   | 2016-01-20 13:35:50 |
    | nn_NO        | Norwegian (Nynorsk)     | Norsk nynorsk           | uninstalled | none   | 2015-12-14 12:19:44 |
    | oci          | Occitan                 | Occitan                 | uninstalled | none   | 2016-02-08 16:21:37 |
    | pl_PL        | Polish                  | Polski                  | uninstalled | none   | 2016-01-09 13:30:40 |
    | ps           | Pashto                  | پښتو                    | uninstalled | none   | 2015-03-29 22:19:48 |
    | pt_BR        | Portuguese (Brazil)     | Português do Brasil     | uninstalled | none   | 2015-12-10 18:05:56 |
    | pt_PT        | Portuguese (Portugal)   | Português               | uninstalled | none   | 2016-01-20 15:27:05 |
    | ro_RO        | Romanian                | Română                  | uninstalled | none   | 2016-01-29 12:45:24 |
    | ru_RU        | Russian                 | Русский                 | uninstalled | none   | 2016-01-02 00:04:31 |
    | sk_SK        | Slovak                  | Slovenčina              | uninstalled | none   | 2015-12-30 10:37:54 |
    | sl_SI        | Slovenian               | Slovenščina             | uninstalled | none   | 2015-11-26 00:00:18 |
    | sq           | Albanian                | Shqip                   | uninstalled | none   | 2015-12-07 09:13:24 |
    | sr_RS        | Serbian                 | Српски језик            | uninstalled | none   | 2015-12-09 09:09:51 |
    | sv_SE        | Swedish                 | Svenska                 | uninstalled | none   | 2015-12-08 23:28:56 |
    | th           | Thai                    | ไทย                     | uninstalled | none   | 2015-12-08 03:22:55 |
    | tl           | Tagalog                 | Tagalog                 | uninstalled | none   | 2015-11-27 15:51:36 |
    | tr_TR        | Turkish                 | Türkçe                  | uninstalled | none   | 2015-12-17 23:12:27 |
    | ug_CN        | Uighur                  | Uyƣurqə                 | uninstalled | none   | 2015-03-26 16:45:38 |
    | uk           | Ukrainian               | Українська              | uninstalled | none   | 2016-01-03 22:04:41 |
    | vi           | Vietnamese              | Tiếng Việt              | uninstalled | none   | 2015-12-09 01:01:25 |
    | zh_CN        | Chinese (China)         | 简体中文                | uninstalled | none   | 2015-12-12 22:55:08 |
    | zh_TW        | Chinese (Taiwan)        | 繁體中文                | uninstalled | none   | 2015-12-11 18:51:41 |
    +--------------+-------------------------+-------------------------+-------------+--------+---------------------+
     
    Last edited: Feb 10, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. hardousse

    hardousse Active Member

    169
    35
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +57
    Local Time:
    12:15 PM
    1.11.*
    10.1*
    thank you so much eva2000 for your fast answer and good work.
    Good Luck
     
  5. Kintaro

    Kintaro Member

    106
    11
    18
    Dec 2, 2016
    Italy
    Ratings:
    +30
    Local Time:
    11:15 AM
    1.15.x
    MariaDB 10
    Code (Text):
    Warning: This command is deprecated. use wp site switch-language instead
    

    Code (Text):
    wp site switch-language LANGUAGE_NAME --allow-root
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah thanks for the heads up