block

package
v0.0.0-...-7f2d481 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 Init

func Init()

Set the nasty global variables

func IsActor

func IsActor(c string) bool

func IsArmor

func IsArmor(c string) bool

func IsChoice

func IsChoice(c string) bool

func IsClass

func IsClass(c string) bool

func IsDescription

func IsDescription(c string) bool

func IsDialogue

func IsDialogue(c string) bool

func IsEnemy

func IsEnemy(c string) bool

func IsInlineScript

func IsInlineScript(c string) bool

func IsItem

func IsItem(c string) bool

func IsMessage

func IsMessage(c string) bool

func IsName

func IsName(c string) bool

func IsScript

func IsScript(c string) bool

func IsSkill

func IsSkill(c string) bool

func IsState

func IsState(c string) bool

func IsSystem

func IsSystem(c string) bool

func IsTroop

func IsTroop(c string) bool

func IsVocab

func IsVocab(c string) bool

func IsWeapon

func IsWeapon(c string) bool

func ShouldBreakLines

func ShouldBreakLines(contexts []string) bool

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

type TranslationBlock struct {
	Contexts   []string
	Text       string
	Touched    bool
	Translated bool
}

func TranslateBlockStatic

func TranslateBlockStatic(b TranslationBlock, originalText string) ([]TranslationBlock, []string, error)

Jump to

Keyboard shortcuts

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