i18n routing problem |
[eluser]Bartolo![/eluser]
Hi all, for my website i'm using the i18n library for multi-language support. i 'installed' everything according to the manual in: http://maestric.com/doc/php/codeigniter_i18n but the first redirect from website/ to website/language doesn't work. the links with site_url(); also don't work. when i add /language by hand everything is working again and the links contains /en and /nl. background information: i use htacces mod_rewrite (so without the index.php) my website uses a subfolder (http://intranet/websites/website/home/index) i hope someone recognizes the problem... if you need some more information, off course i will bring you that ;-) Thanks in advance!!!
[eluser]Bartolo![/eluser]
Hi, me again... i found some strange behavior in the code, i was placing some errors to see where the code was stop working. down here you find a piece of the 18n library: (the show_error() tags shown are only for illustration, watch these...) Code: function MY_Language() i really don't get it... edit: ...i just found the problem: the error was shown in the else if($this->is_special($segment)) part. The configuration was like: Code: // languages because the $special var was empty, at opening the page you always have the special var in the URI because it's empty too... To the creator of the code: please notice in the manual that you HAVE to fill in the special URI, even when you haven't got one. |
Welcome Guest, Not a member yet? Register Sign In |