Switching Languages on Monsoon (Mandarin)¶
Below you will find instructions for what is needed for each student to perform to enable Mandarin support in SSH sessions and OnDemand.
Note
This localization support depends on what has been provided through each individual piece of software. The changes performed from the instructions below will add partial support for Mandarin.
Changing Terminal Language¶
Enabling Mandarin for the Terminal¶
To enable Mandarin in a terminal on Monsoon, all you need to do is copy the file /common/conf/mandarin_ssh to your home directory under the name .i18n. To do this, open a terminal connected to Monsoon and run the following command:
Once you have run this command, re-login to Monsoon to see the changes.
Verify that Mandarin is Enabled¶
Once you have started a new terminal session on Monsoon, you can use the locale command to see your current language.
[abc123@wind]:~$ locale
LANG=zh_CN.utf8
LC_CTYPE="zh_CN.utf8"
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE="zh_CN.utf8"
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES=zh_CN.utf8
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=
If you see zh_CN, then Mandarin support is enabled.
Disabling Mandarin for the Terminal¶
To disable Mandarin in a terminal on Monsoon, you can remove the .i18n file by opening a terminal connected to Monsoon and running the following command:
Once you have run this command, re-login to Monsoon to see the changes.
Changing OnDemand Language¶
Mandarin on OnDemand is triggered when the file ~/.config/ondemand/chinese exists. The contents of the file do not matter, but as long as the exact file and exact parent directories exist, OnDemand will change the display language to Chinese.
Enabling Chinese for OnDemand¶
To create the necessary file that enables Chinese for OnDemand, follow these steps:
- Open a terminal and connect to Monsoon.
- Run the following commands:
Once you have run this command, re-login to Monsoon to see the changes.
Disabling Chinese for OnDemand¶
To remove the file that enables Chinese for OnDemand, open a terminal connected to Monsoon and run the following command:
Once you have run this command, re-login to Monsoon to see the changes.