Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Working with different locales fix proposal #25

Open
freeentr opened this issue Feb 9, 2017 · 1 comment
Open

Working with different locales fix proposal #25

freeentr opened this issue Feb 9, 2017 · 1 comment

Comments

@freeentr
Copy link

freeentr commented Feb 9, 2017

Hello! I work on translatable route segment with 3 locales ['en' => 'en_US', 'lv' => 'lv_LV', 'ru' => 'ru_RU']. However, I need to encode lv & ru translations with rawurlencode() in php array. That is because /Zend/Router/Http/Segment.php method, which performs match against the HTTP request, do not match given url path with generated regex within translation keys loop.

So my proposal is: Encode each translated string before generating regex.

proposal

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-router; a new issue has been opened at laminas/laminas-router#7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants