In the configuration environment, each configuration requires a specified environment. I performed operations based on ubuntu12.04 server to ensure the feasibility. For other versions, you need to experiment with the locale command format.
/Usr/bin/Locale [Options]
Parameter Details
-A, -- all-locales write the name of the available region-M, -- charmaps write the name of the available character ing
Application Instance (1) retrieve names and values of all environment variables in the current language environment (2) List names of all available public Language Environments install and uninstall two scripts in a language variable call, for specific implementation, see the script source code locale-Gen to generate the local file command format
/Usr/bin/locale-gen [Options]
Parameter Details
-- Purge deletes all existing locale configurations before running (this command is most useful when locale fails) -- archive stores compiled language environment data in an archive file
Application Instance (1) Delete the previous error configuration file and regenerate the locale file (2) Add Chinese utf8 support
Modify the current locale
View the currently available language environment. Import locale variables using export.
Export lang = "the language environment variable you need"