Welcome Guest, Not a member yet? Register   Sign In
How to manage Multi language in portal?
#1

[eluser]web_developer[/eluser]
Hello

I have several question regards Multi-language which is mentioned below:

Q1) I want to set default language "English" and for that I don't want to use "en" parameter in URL.
Home page should be clean like "http://www.xyz.com" Currently it's working fine.
But now below syntax won't working in home page.

Code:
echo anchor($this->lang->switch_uri('fr'),'French');

Because while changing language it is simply replacing "en" with "fr" and "fr" with "en".
Is there any alternative way to append "fr" in URL?

Q2) How to manage all hyperlinks with language? i.e: news, product, blogs, etc..
in each link i have to add "en" and "fr" like anchor("en/blogs")? Each time I have to check what is current language and have to set 1st segment in link? Is there any way to auto detect current language? and append "language" parameter automatic?

Q3) I want to escape "en" and "fr" from uri segment.
That means if URL is like http://www.xyz.com/en/page/1 and if I print uri->segment(1) then it should be print "page" (instead of "en|fr")






Messages In This Thread
How to manage Multi language in portal? - by El Forum - 07-16-2013, 10:25 AM
How to manage Multi language in portal? - by El Forum - 07-24-2013, 06:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB