multilang

package
v1.2.6-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 8 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 IdRes added in v1.1.23

func IdRes(key string) string

IdRes 通过key查询当前资源中的,顺序为 当前app资源 -> 共享资源 -> lib资源

func InitComponentLang

func InitComponentLang(aOwner vcl.IComponent)

初始一个Form的语言

func InitDefaultLang

func InitDefaultLang()

func ReadSetLang added in v1.1.23

func ReadSetLang() string

读当前强制显示语言

func RegsiterVarString

func RegsiterVarString(name string, value *string)

RegsiterVarString 注册需要翻译的字符

func WriteSetLang added in v1.1.23

func WriteSetLang(lang string)

写入强显示制语言

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