示例#1
0
// LoadEx used to load two file type dictionary
func LoadEx(dict core.Dict, path string) {

	r := new(RoutEx)
	r.Dict = dict

	core.RoutineLoadDir(r, path)
}
示例#2
0
// LoadXML used to load dictionary from xml format file
func LoadXML(dict core.Dict, path string) {

	r := new(RoutXML)
	r.Dict = dict

	core.RoutineLoadDir(r, path)

}
示例#3
0
文件: trans.go 项目: hiank/translate
// Format used to
func Format(t core.Trans, d core.Dict, cfg *tool.Config) {

	rout := new(Rout)
	rout.Cfg = cfg
	rout.T = t
	rout.D = d

	core.RoutineLoadDir(rout, cfg.SrcDir)

}