Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseEntryDynamic ¶
Regex
type DatabaseEntryStatic ¶
Normal replace
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
func (*Db) GetTranslation ¶
func (t *Db) GetTranslation(str string, typ TranslationType) (string, error)
GetTranslation Replaces source if match is found and stops any further translation. Called after RunPreTranslation
func (*Db) RunPostTranslation ¶
RunPostTranslation Edits text returned from translation service, ignores static tl
type TranslationType ¶
type TranslationType int
const ( TransGeneric TranslationType = iota // Default group TransName // Every name TransDescription // Every description TransDialogue TransChoice TransVocab TransMessage // Skill and Status messages TransInlineScript // Inline scripts TransScript // Scripts TransSystem // System translations like main menu and title )
Click to show internal directories.
Click to hide internal directories.