我一直在使用zend translate来翻译网站内容,但是urls呢?我该怎么翻译呢?
示例:
localhost/app/contact (英语)
本地主机/应用程序/土豆(葡萄牙语)
发布于 2012-01-07 03:46:53
如果你确实在使用Zend Translate,你应该能够在你的路由器中使用这样的翻译:
routes.someroute.route = "/:langparam/@translateme"
routes.someroute.defaults.module = public
routes.someroute.defaults.controller = page
routes.someroute.defaults.action = show如果您的翻译源包含'translateme‘,它将被翻译,否则路由器将使用'translateme’作为值。
https://stackoverflow.com/questions/8514889
复制相似问题