Welcome Guest, Not a member yet? Register   Sign In
Multi-Language Site - URI_Language_Identifier query
#1

[eluser]LynxCoder[/eluser]
Hi guys,
I'm just starting to write a new multi-langauge site for a client. I've implemented http://codeigniter.com/wiki/URI_Language_Identifier which on CI2.1.0 is working fine.

However, the client wants the language to remain in the URI ... for example abc.com/fr/another_page so that if a user bookmarks the page, he/she will always return in the correct language.

At the moment the above code is taking the language out of the URI and storing it in a Cookie. The cookie is fine, don't have a problem with that, but I need to stop it re-writing the URI so that the language code gets left in - can anyone point me in the right direction, as i just can't see which part of the code needs changing!

Thanks
Rich
#2

[eluser]LynxCoder[/eluser]
CRACKED IT!

The method in the madness is always read through ALL the code! For anyone else coming up against the same problem - there is a config variable ($config['lang_ignore']) that states whether to hide the language or not! Set to FALSE to keep it visible, or TRUE to hide it!

Rich




Theme © iAndrew 2016 - Forum software by © MyBB