translation

package
v0.221.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: AGPL-3.0, AGPL-3.0-or-later 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 i18n.Language, excludeProperties []string, sources ...flows.Flow) (*po.PO, error)

ExtractFromFlows extracts a PO file from a set of flows

func ImportIntoFlows

func ImportIntoFlows(p *po.PO, translationsLanguage i18n.Language, excludeProperties []string, 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(p *po.PO, translationsLanguage i18n.Language, excludeProperties []string, 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