Merge pull request #655 from Jimmy99/patch-46

Update 14.5.md
This commit is contained in:
astaxie
2016-04-07 09:51:17 +08:00

View File

@@ -92,7 +92,7 @@ In order to facilitate multi-language calls in the template package directly, we
3. Using language packages 3. Using language packages
We can call the controller to get the translated response in the desired language, like so:: We can call the controller to get the translated response in the desired language, like so:
func (this *MainController) Get() { func (this *MainController) Get() {
this.Data["create"] = beego.Translation.Translate("create") this.Data["create"] = beego.Translation.Translate("create")