scripts

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateFunc

func UpdateFunc(messages translations.MessageMap, lang, path, moduleName string) translations.MessageMap

UpdateFunc is the function that extracts strings to translate from XML and JS files.

Types

type LangCustomMaps

type LangCustomMaps map[string]moduleCustomMessageList

A LangCustomMaps holds custom translations for all modules for a given language

func ListModuleTranslations

func ListModuleTranslations(lang string) LangCustomMaps

ListModuleTranslations returns a map containing all custom translations of a module for the given language

type Node

type Node struct {
	XMLName xml.Name
	Content []byte     `xml:",innerxml"`
	Nodes   []Node     `xml:",any"`
	Attrs   []xml.Attr `xml:",attr"`
}

A Node is an XML Node used for walking down the tree.

Jump to

Keyboard shortcuts

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