multilang

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 本地已经添加了的语言列表
	LocalLangs = make(map[int]TLangItem, 0)

	// 默认应用的节点名称
	AppNodeName string

	// 当前语言
	CurrentLang string
)

Functions

func ChangeLang

func ChangeLang(lang string)

改变语言

func InitComponentLang

func InitComponentLang(aOwner vcl.IComponent)

初始一个Form的语言

func InitDefaultLang

func InitDefaultLang()

func RegsiterVar

func RegsiterVar(value *string)

RegsiterVarString 注册需要翻译的字符

func RegsiterVarString

func RegsiterVarString(name string, value *string)

RegsiterVarString 注册需要翻译的字符

Types

type TLangItem

type TLangItem struct {
	Language struct {
		Id          int    // 2052
		Name        string // zh-CN
		Description string // 简体中文
		Author      string // ying32
		AuthorEmail string // 1444386932@qq.com

	} `json:"!language"`
}

TLangItem 本地已经存在语言列表的项目定义

Jump to

Keyboard shortcuts

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