Welcome Guest, Not a member yet? Register   Sign In
Internationalization and Routing: adding the language code (en,de,fr) inside URLs
#4

[eluser]easymind[/eluser]
I am using version 1.5.4, not from SVN. There is still a big routing bug there which I solved with a bugfix from somebody else. This was my threat:
http://ellislab.com/forums/viewthread/64013/

But for my language routing (even in 1 subfolder deep, and it works with or without language in url) I use:

Code:
$route["[a-zA-Z]{2}/(:any)"] = "$1";

This is the only routing I need to have things like this work:

Code:
http://xxx.xx/en/folder/controller/function/vars/../..
http://xxx.xx/folder/controller/function/vars
http://xxx.xx/nl/controller/function/vars
http://xxx.xx/controller/function/vars

They all work fine (but I needed to fix Router.php and Codeigniter.php like you can see on my threat or the original bug fix)

Original bug fix.: http://codeigniter.com/bug_tracker/bug/2849/


Messages In This Thread
Internationalization and Routing: adding the language code (en,de,fr) inside URLs - by El Forum - 10-31-2007, 07:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB