Documentation ¶
Index ¶
- func GetContextType(c string) statictl.TranslationType
- func GetContextTypes(contexts []string) map[statictl.TranslationType][]string
- func Init()
- func IsActor(c string) bool
- func IsArmor(c string) bool
- func IsChoice(c string) bool
- func IsClass(c string) bool
- func IsDescription(c string) bool
- func IsDialogue(c string) bool
- func IsEnemy(c string) bool
- func IsInlineScript(c string) bool
- func IsItem(c string) bool
- func IsMessage(c string) bool
- func IsName(c string) bool
- func IsScript(c string) bool
- func IsSkill(c string) bool
- func IsState(c string) bool
- func IsSystem(c string) bool
- func IsTroop(c string) bool
- func IsVocab(c string) bool
- func IsWeapon(c string) bool
- func ShouldBreakLines(contexts []string) bool
- type PatchBlock
- type TranslationBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContextType ¶
func GetContextType(c string) statictl.TranslationType
func GetContextTypes ¶
func GetContextTypes(contexts []string) map[statictl.TranslationType][]string
func IsDescription ¶
func IsDialogue ¶
func IsInlineScript ¶
func ShouldBreakLines ¶
Types ¶
type PatchBlock ¶
type PatchBlock struct { Original string Translations []TranslationBlock }
func ParseBlock ¶
func ParseBlock(block PatchBlock) PatchBlock
func ParseBlockLocalTL ¶
func ParseBlockLocalTL(block PatchBlock, sourceText string) PatchBlock
func ParseBlockRemoteTL ¶
func ParseBlockRemoteTL(block PatchBlock, sourceText string) PatchBlock
type TranslationBlock ¶
func TranslateBlockStatic ¶
func TranslateBlockStatic(b TranslationBlock, originalText string) ([]TranslationBlock, []string, error)
Click to show internal directories.
Click to hide internal directories.