I18n

package
v0.0.0-...-d1826b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LanguageEnglish           = "en_US"
	LanguageSimplifiedChinese = "zh_CN"
)
View Source
const (
	Special_Startup = iota
	Copyright_Notice_Headline
	Copyright_Notice_Line_1
	Copyright_Notice_Line_2
	Copyright_Notice_Line_3
	Copyright_Notice_Line_4 // Not used
	Crashed_Tip
	Crashed_StackDump_And_Error
	Crashed_OS_Windows
	EnterPasswordForFBUC
	FBUC_LoginFailed
	ServerCodeTrans
	ConnectionEstablished
	InvalidPosition
	PositionGot
	PositionGot_End
	Enter_FBUC_Username
	Enter_Rental_Server_Code
	Enter_Rental_Server_Password
	NotAnACMEFile
	UnsupportedACMEVersion
	ACME_FailedToSeek
	ACME_FailedToGetCommand
	ACME_StructureErrorNotice
	ACME_UnknownCommand
	SysError_NoTranslation // Do not add a translation for it!
	SysError_HasTranslation
	SysError_EACCES
	SysError_EBUSY
	SysError_EINVAL
	SysError_EISDIR
	SysError_ENOENT
	SysError_ETXTBSY
	BDump_EarlyEOFRightWhenOpening
	BDump_NotBDX_Invheader
	InvalidFileError
	BDump_SignedVerifying
	BDump_VerificationFailedFor
	ERRORStr
	IgnoredStr
	BDump_FileSigned
	BDump_FileNotSigned
	BDump_NotBDX_Invinnerheader
	BDump_FailedToReadAuthorInfo
	FileCorruptedError
	BDump_Author
	CommandNotFound
	Sch_FailedToResolve
	SimpleParser_Too_few_args
	SimpleParser_Invalid_decider
	SimpleParser_Int_ParsingFailed
	SimpleParser_InvEnum
	QuitCorrectly
	PositionSet
	PositionSet_End
	DelaySetUnavailableUnderNoneMode
	CurrentDefaultDelayMode
	DelaySet
	DelayModeSet
	DelayModeSet_DelayAuto
	DelayModeSet_ThresholdAuto
	DelayThreshold_OnlyDiscrete
	DelayThreshold_Set
	CurrentTasks
	TaskStateLine
	TaskTotalCount
	TaskNotFoundMessage
	TaskPausedNotice
	TaskResumedNotice
	TaskStoppedNotice
	Task_SetDelay_Unavailable
	Task_DelaySet
	TaskTTeIuKoto
	TaskTypeSwitchedTo
	TaskDisplayModeSet
	TaskCreated
	Menu_GetPos
	Menu_GetEndPos
	Menu_Quit
	Menu_Cancel
	Menu_ExcludeCommandsOption
	Menu_InvalidateCommandsOption
	Menu_StrictModeOption
	Menu_BackButton
	Menu_CurrentPath
	Parsing_UnterminatedQuotedString
	Parsing_UnterminatedEscape
	Get_Warning
	LanguageName
	TaskTypeUnknown
	TaskTypeRunning
	TaskTypePaused
	TaskTypeDied
	TaskTypeCalculating
	TaskTypeSpecialTaskBreaking
	TaskFailedToParseCommand
	Task_D_NothingGenerated
	Task_Summary_1
	Task_Summary_2
	Task_Summary_3
	Logout_Done
	FailedToRemoveToken
	SelectLanguageOnConsole
	LanguageUpdated
	Auth_ServerNotFound                 // 104
	Auth_FailedToRequestEntry           // 105
	Auth_InvalidHelperUsername          // 106
	Auth_BackendError                   //107
	Auth_UnauthorizedRentalServerNumber //108
	Auth_HelperNotCreated               //109
	Auth_InvalidUser                    //110
	Auth_InvalidToken                   //111
	Auth_UserCombined                   //112
	Auth_InvalidFBVersion               //113
	Notify_TurnOnCmdFeedBack
	Notify_NeedOp
)

Variables

View Source
var I18nDict map[uint16]string
View Source
var I18nDict_cn map[uint16]string = map[uint16]string{}/* 113 elements not displayed */
View Source
var I18nDict_en map[uint16]string = map[uint16]string{}/* 105 elements not displayed */
View Source
var SelectedLanguage = LanguageEnglish

Functions

func HasTranslationFor

func HasTranslationFor(transtype uint16) bool

func Init

func Init()

func ProcessSystemFileError

func ProcessSystemFileError(err error) error

func SelectLanguage

func SelectLanguage()

func ShouldDisplaySpecial

func ShouldDisplaySpecial() bool

func T

func T(code uint16) string

func UpdateLanguage

func UpdateLanguage()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL