zendframework/zf2 — pull request #5885 by djungbluth (2014-02-28 16:19:55+00:00)
Title: parametrized-locale-aware routing

For translation-aware routers, i.e. TranslatorAwareTreeRouteStack:

If parameter „locale“ is detected during routing (either matching or
assembling), the translator will use this locale instead of a default
one. By doing so, the following route is possible:

/:locale/{NEWS}/{TODAY}

Which would match/assemble with/to:

/en/news/today
/de/neues/heute

with translations (excerpt for locale ‚de‘: ‚NEWS‘ => ‚neues‘).