Documentation
¶
Overview ¶
Package uilang is the language magpie speaks in: the one the user picked in Settings (settings.Lang), or with "system" the system's. The GUI's page picks its own the same way (i18n.js setLocale and sysLocale); the tray, notices and the TUI ask Pick.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Env ¶
Env is the language the environment names: the first of LC_ALL, LC_MESSAGES, LANG and LANGUAGE set to one.
func Pick ¶
Pick is the language for the setting pref: pref itself when it names one, else, with "system" (or none), the system's: Traditional Chinese for Taiwan, Hong Kong, Macau and any zh-Hant (zh_TW.UTF-8, zh-Hant-TW), Simplified for any other zh, Japanese for any ja, German for any de, English for the rest.
Types ¶
This section is empty.