开发者

mvc with multilanguage

开发者 https://www.devze.com 2023-03-16 18:11 出处:网络
mvc with multilanguage the development in MVC, where he is responsible for the translation? in the controller, in the view, or it can be both?

mvc with multilanguage

the development in MVC, where he is responsible for the translation? in the controller, in the view, or it can be both?

in controller: $view-> translate = array (...)

in view: t开发者_StackOverflow社区ranslate ('word')


language affects functionality or flow of program? no, then in the view.


Unless you want to apply different process based on the language tt could be in Views only. In my programs its in the view only.

hth

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号