translation

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromFlows

func ExtractFromFlows(initialComment string, translationsLanguage envs.Language, excludeProperties []string, sources ...flows.Flow) (*i18n.PO, error)

ExtractFromFlows extracts a PO file from a set of flows

func ImportIntoFlows

func ImportIntoFlows(po *i18n.PO, translationsLanguage envs.Language, targets ...flows.Flow) error

ImportIntoFlows imports translations from the given PO into the given flows

Types

type TranslationUpdate

type TranslationUpdate struct {
	Base string
	Old  string
	New  string
	// contains filtered or unexported fields
}

TranslationUpdate describs a change to be made to a flow translation

func CalculateFlowUpdates

func CalculateFlowUpdates(po *i18n.PO, translationsLanguage envs.Language, targets ...flows.Flow) []*TranslationUpdate

CalculateFlowUpdates calculates what updates should be made to translations in the given flows

func (*TranslationUpdate) MsgContext

func (l *TranslationUpdate) MsgContext() string

func (*TranslationUpdate) String

func (u *TranslationUpdate) String() string

Jump to

Keyboard shortcuts

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