1 Installing FCITX
sudo apt-get install fcitx-table-py here py is the meaning of pinyin, the installation of the dependent Library and the framework will be automatically installed2 Change the Ubuntu system environment to Chinese
Install English version Ubuntu , when you open the file containing Chinese characters will be garbled, there is a need to Ubuntu Server Install Chinese environment
1. Install Chinese Language Packs
Apt-get Install Language-pack-zh
2. Configure language environment variables with VI
Vi/etc/environment
Add the following two lines below
Lang= "ZH_CN. UTF-8 "
Language= "Zh_CN:zh:en_US:en"
If you want to use the English environment, change to these two lines
Lang= "en_US. UTF-8 "
Language= "En_us:en"
3. restart Ubuntu Server
Reboot
4, you can use the locale to view the environment variables
Locale
My/etc/environment can be displayed in Chinese
path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"LANG= "En_US. UTF-8"language=" En_us:en "
If the execution locale has the following error
[email protected]:/etc# locale
\locale:cannot set Lc_ctype to default locale:no such file or directory
Locale:cannot set Lc_messages to default locale:no such file or directory
Locale:cannot set Lc_all to default locale:no such file or directory
Lang=en_us. UTF-8
Language=en_us:en
lc_ctype= "en_US. UTF-8 "
lc_numeric= "en_US. UTF-8 "
lc_time= "en_US. UTF-8 "
lc_collate= "en_US. UTF-8 "
lc_monetary= "en_US. UTF-8 "
lc_messages= "en_US. UTF-8 "
lc_paper= "en_US. UTF-8 "
lc_name= "en_US. UTF-8 "
lc_address= "en_US. UTF-8 "
lc_telephone= "en_US. UTF-8 "
lc_measurement= "en_US. UTF-8 "
lc_identification= "en_US. UTF-8 "
lc_all=
You can perform Locale-gen en_US. UTF-8 Repair
[Email protected]:/etc# locale-gen en_US. UTF-8
Generating locales ...
en_US. UTF-8 ... done
Generation complete.
Normal output after the locale
[email protected]:/etc# locale
Lang=en_us. UTF-8
Language=en_us:en
lc_ctype= "en_US. UTF-8 "
lc_numeric= "en_US. UTF-8 "
lc_time= "en_US. UTF-8 "
lc_collate= "en_US. UTF-8 "
lc_monetary= "en_US. UTF-8 "
lc_messages= "en_US. UTF-8 "
lc_paper= "en_US. UTF-8 "
lc_name= "en_US. UTF-8 "
lc_address= "en_US. UTF-8 "
lc_telephone= "en_US. UTF-8 "
lc_measurement= "en_US. UTF-8 "
lc_identification= "en_US. UTF-8 "
lc_all=
Chinese display is normal in wp-config.php
[Email protected]:/etc# vi/var/www/wordpress/wp-config.php
< PHP
/** Enable W3 Total Cache **/
Define (' Wp_cache ', true); Added by W3 Total Cache
/**
* WordPress Basic configuration file.
*
* This file contains the following configuration options: MySQL settings, database table name prefixes,
* Key, WordPress language Settings and Abspath. For more information, please visit
* {@link http://codex.wordpress.org/Editing_wp-config.php edit
* wp-config.php} Codex. Please consult your space provider for details on MySQL settings.
*
* This file is used in the Setup program to automatically generate the wp-config.php configuration file.
* You can manually copy this file, rename it to wp-config.php, and enter the relevant information.
From for notes (Wiz)
Ubuntu14.04 installation Chinese Input method