{"id":3364,"date":"2024-03-19T12:59:19","date_gmt":"2024-03-19T19:59:19","guid":{"rendered":"https:\/\/in.nau.edu\/arc\/?page_id=3364"},"modified":"2025-01-03T15:13:04","modified_gmt":"2025-01-03T22:13:04","slug":"switching-languages-on-monsoon-mandarin","status":"publish","type":"page","link":"https:\/\/in.nau.edu\/arc\/switching-languages-on-monsoon-mandarin\/","title":{"rendered":"Switching Languages on Monsoon (Mandarin)"},"content":{"rendered":"<!-- shortcode-right-column -->\n<div class=\"shortcode-right-column\" >\n    <div class=\"shortcode-right-column__container\"><\/p>\n<p><!-- shortcode-contact -->\n<div class=\"shortcode-contact\">\n    <div class=\"contact-header\">\n        <h3>Contact Advanced Research Computing<\/h3>\n    <\/div>\n    <div class=\"contact-body\">\n                <a href=\"mailto:ask-arc@nau.edu\" aria-label=\"Contact Advanced Research Computing: Email Address\" title=\"Email Address\">\n            <div class=\"contact-icon-container\">\n                <i class=\"fas fa-envelope\" aria-hidden=\"true\"><\/i>\n                <span class=\"sr-only\">Email:<\/span>\n            <\/div>\n            <div class=\"contact-email\">ask-arc&#8203;@nau.edu<\/div>\n        <\/a>\n                    <\/div>\n<\/div>\n\n<\/p>\n<p><!-- shortcode-button -->\n<div class=\"shortcode-button shortcode-button--center\">\n      <a class=\"main-button\" href=\"https:\/\/in.nau.edu\/arc\/meeting-room\/\">View Microsoft Teams Meeting Information<\/a>\n  <\/div>\n<\/p>\n<hr \/>\n<h2>Quick Links<\/h2>\n<ul>\n<li><a href=\"https:\/\/in.nau.edu\/arc\/obtaining-an-account\/\">Request an Account<\/a><\/li>\n<li><a href=\"https:\/\/in.nau.edu\/arc\/documentation-page\/\">Monsoon Documentation<\/a><\/li>\n<li><a href=\"https:\/\/in.nau.edu\/arc\/workshops\">Workshops<\/a><\/li>\n<\/ul>\n<hr \/>\n<p><\/div>\n<\/div>\n\n<h1>Switching Languages on Monsoon (Mandarin)<\/h1>\n<p>Below you will find instructions for what is needed for each student to perform to enable Mandarin support in SSH sessions and OnDemand.<\/p>\n<p><em>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 <b>partial<\/b> support for Mandarin.<\/em><\/p>\n<h2>Changing Terminal Language<\/h2>\n<h3>Enabling Mandarin for the Terminal<\/h3>\n<p>To enable Mandarin in a terminal on Monsoon, all you need to do is copy the file <span style=\"font-size: 16px; font-family: monospace; border: 1px solid; border-radius: 4px; padding: 0px 4px 0px; border-color: #BBBBBB; background-color: white;\" data-darkreader-inline-border-top=\"\" data-darkreader-inline-border-right=\"\" data-darkreader-inline-border-bottom=\"\" data-darkreader-inline-border-left=\"\" data-darkreader-inline-bgcolor=\"\">\/common\/conf\/mandarin_ssh<\/span> to your home directory under the name <span style=\"font-size: 16px; font-family: monospace; border: 1px solid; border-radius: 4px; padding: 0px 4px 0px; border-color: #BBBBBB; background-color: white;\" data-darkreader-inline-border-top=\"\" data-darkreader-inline-border-right=\"\" data-darkreader-inline-border-bottom=\"\" data-darkreader-inline-border-left=\"\" data-darkreader-inline-bgcolor=\"\">.i18n<\/span>. To do this, open a terminal connected to Monsoon and run the following command:<\/p>\n<p><code>cp \/common\/conf\/mandarin_ssh ~\/.i18n<\/code><\/p>\n<p><em>Note: Once you have run this command, restart your terminal to see the changes.<\/em><\/p>\n<h3>Verify that Mandarin is Enabled<\/h3>\n<p>Once you have started a new terminal session on Monsoon, you can use the <span style=\"font-size: 16px; font-family: monospace; border: 1px solid; border-radius: 4px; padding: 0px 4px 0px; border-color: #BBBBBB; background-color: white;\" data-darkreader-inline-border-top=\"\" data-darkreader-inline-border-right=\"\" data-darkreader-inline-border-bottom=\"\" data-darkreader-inline-border-left=\"\" data-darkreader-inline-bgcolor=\"\">locale<\/span> command to see your current language.<\/p>\n<p><code>[abc123@wind]:~$ locale<br \/>\nLANG=zh_CN.utf8<br \/>\nLC_CTYPE=\"zh_CN.utf8\"<br \/>\nLC_NUMERIC=\"zh_CN.utf8\"<br \/>\nLC_TIME=\"zh_CN.utf8\"<br \/>\nLC_COLLATE=\"zh_CN.utf8\"<br \/>\nLC_MONETARY=\"zh_CN.utf8\"<br \/>\nLC_MESSAGES=zh_CN.utf8<br \/>\nLC_PAPER=\"zh_CN.utf8\"<br \/>\nLC_NAME=\"zh_CN.utf8\"<br \/>\nLC_ADDRESS=\"zh_CN.utf8\"<br \/>\nLC_TELEPHONE=\"zh_CN.utf8\"<br \/>\nLC_MEASUREMENT=\"zh_CN.utf8\"<br \/>\nLC_IDENTIFICATION=\"zh_CN.utf8\"<br \/>\nLC_ALL=<\/code><\/p>\n<p>If you see <span style=\"font-size: 16px; font-family: monospace; border: 1px solid; border-radius: 4px; padding: 0px 4px 0px; border-color: #BBBBBB; background-color: white;\" data-darkreader-inline-border-top=\"\" data-darkreader-inline-border-right=\"\" data-darkreader-inline-border-bottom=\"\" data-darkreader-inline-border-left=\"\" data-darkreader-inline-bgcolor=\"\">zh_CN<\/span>, then Mandarin support is enabled.<\/p>\n<h3>Disabling Mandarin for the Terminal<\/h3>\n<p>To disable Mandarin in a terminal on Monsoon, you can remove the <span style=\"font-size: 16px; font-family: monospace; border: 1px solid; border-radius: 4px; padding: 0px 4px 0px; border-color: #BBBBBB; background-color: white;\" data-darkreader-inline-border-top=\"\" data-darkreader-inline-border-right=\"\" data-darkreader-inline-border-bottom=\"\" data-darkreader-inline-border-left=\"\" data-darkreader-inline-bgcolor=\"\">.i18n<\/span> file by opening a terminal connected to Monsoon and running the following command:<\/p>\n<p><code>rm ~\/.18n<\/code><\/p>\n<p><em>Note: Once you have run this command, restart your terminal to see the changes.<\/em><\/p>\n<h2>Changing OnDemand Language<\/h2>\n<p>Mandarin on OnDemand is triggered when the file <span style=\"font-size: 16px; font-family: monospace; border: 1px solid; border-radius: 4px; padding: 0px 4px 0px; border-color: #BBBBBB; background-color: white;\" data-darkreader-inline-border-top=\"\" data-darkreader-inline-border-right=\"\" data-darkreader-inline-border-bottom=\"\" data-darkreader-inline-border-left=\"\" data-darkreader-inline-bgcolor=\"\">~\/.config\/ondemand\/chinese<\/span> 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.<\/p>\n<h3>Enabling Chinese for OnDemand<\/h3>\n<p>To create the necessary file that enables Chinese for OnDemand, follow these steps:<\/p>\n<ol>\n<li>Open a terminal and connect to Monsoon.<\/li>\n<li>Run the following commands:<\/li>\n<\/ol>\n<pre><code>mkdir -p ~\/.config\/ondemand\r\ntouch ~\/.config\/ondemand\/chinese<\/code><\/pre>\n<p><em>Note: Once you have run these commands, you must logout and re-login to OnDemand to see the changes.<\/em><\/p>\n<h3>Disabling Chinese for OnDemand<\/h3>\n<p>To remove the file that enables Chinese for OnDemand, open a terminal connected to Monsoon and run the following command:<\/p>\n<p><code>rm ~\/.config\/ondemand\/chinese<\/code><\/p>\n<p><em>Note: Once you have run this command, you must logout and re-login to OnDemand to see the changes.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":2758,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","ring_central_script_selection":"","footnotes":""},"class_list":["post-3364","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/3364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/users\/2758"}],"replies":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/comments?post=3364"}],"version-history":[{"count":12,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/3364\/revisions"}],"predecessor-version":[{"id":3744,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/3364\/revisions\/3744"}],"wp:attachment":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/media?parent=3364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}