예제 #1
0
파일: dict-ex.go 프로젝트: hiank/translate
// 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
파일: dict-xml.go 프로젝트: hiank/translate
// 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)

}