Hello all

Continuing my testing of ZF2 beta4, I have come across the requirement
to translate the segments of a Zend\Navigation\Page\Uri.

I am trying to route the following URIs:

/en_US/products/cameras/  <-- translated segments
/de_DE/produkte/kameras/
/fr_FR/produits/cameras/

/zh_CN/products/cameras/  <-- default locale
/de_DE/produkte/kameras/
/ko_KR/produkte/kameras/

Using a Zend\Mvc\Router\Http\Segment with:

route => '/[:locale/][:controller/[:action/]]'

I can access the locale, and in en_US, ProductsController and
camerasAction() are called.

How do I go about routing /de_DE/produkte/kameras/ to the same
controller and action?

Currently, the documentation at http://j.mp/LyK8Kp describes the
"translation of labels and titles", but not of URI segments, hence my
question.

(note, the locale is required in the URI, as there is no segment
translation in some non-Western languages)

Thank you in advance.

Jonathan Maron

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to