Reputation: 127
Zend languages is by default routing urls that way:
/en_US/mypage
/fr_FR/mypage
How can I change the route from 'en_US' to 'en' and 'fr_FR' to 'fr', example:
/en/mypage
/fr/mypage
Upvotes: 0
Views: 66
Reputation: 5
You could simply process the url by cutting it up as a string. If its . Here is simplistic suedocode:
my_url = "http://whatever/en_US/mypage";
first_half = "http://whatever/en";
second_half = "/mypage";
my_url = first_half + second_half;
Upvotes: 0