我一直在使用 zend translate 来翻译网站内容,但是网址呢?我怎么翻译呢?
例如:
localhost/app/contact(英语)
localhost/app/contato(葡萄牙语)
我一直在使用 zend translate 来翻译网站内容,但是网址呢?我怎么翻译呢?
例如:
localhost/app/contact(英语)
localhost/app/contato(葡萄牙语)
如果您确实在使用 Zend Translate,您应该能够在路由器中使用翻译,例如:
routes.someroute.route = "/:langparam/@translateme"
routes.someroute.defaults.module = public
routes.someroute.defaults.controller = page
routes.someroute.defaults.action = show
如果您的翻译源包含“translateme”,它将被翻译,否则路由器将使用“translateme”作为值。