Documentation
¶
Overview ¶
Package lang is the language of what the program itself says outside the web page: the tray menu, the messages of Windows and the notifications. The page has its own way (i18n.js); both follow the same choice of the person: Settings → Interface → Language, kept as settings.Language ("" as in the system, "ru", "en").
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Current ¶
func Current() string
Current is "ru" or "en": the choice of the person, or, when there is none, the language of the system.
func FromTags ¶
FromTags picks the language of a list of language tags of the system ("ru-RU", "en-US"), the first one counting: Russian if it begins with "ru", English otherwise. With no tags at all it is Russian, the language the program was written in.
func LimitDetail ¶
LimitDetail words the reason a torrent stopped seeding from the code and the arguments the engine gives ("limit.ratio" [2.00], "limit.time" [3, d]); detail is the Russian text, used in Russian and for a code not known here.
func SetPreference ¶
func SetPreference(f func() string)
SetPreference tells where the choice of the person is read from (the settings); it is asked each time, so a change in the settings is seen at once.
Types ¶
This section is empty.