• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a multilingual website

#1
[eluser]Unknown[/eluser]
Hi,

I am creating a multilingual website for english, spanish and catalan.
I am trying to achieve following url pattern.

default /catalan
http://www.domain.com/controller/function/other/params

spanish
http://www.domain.com/es/controller/func...her/params

english
http://www.domain.com/en/controller/func...her/params

What is the best way to achieve this? Please help.

#2
[eluser]xeroblast[/eluser]
here's how do it...

it uses a cookie and a config file where you put all your translation...

#3
[eluser]ravi_kachh[/eluser]
in CI there is the facility of languages, with the help of which you can develope the website in various languages. In application folder there is a sub folder called languages where you can put a folder of you language like english, greek, spanish etc and load that languagae where you need or you can set default language by specifying in config file.

Please read the CI user guide this is the best way to come to know about the developement.

#4
[eluser]eoinmcg[/eluser]
http://codeigniter.com/wiki/i18n_Multi-l...ry_Helper/

#5
[eluser]Unknown[/eluser]
Just type your query in Google and i am sure that you can got your answer.

#6
[eluser]Jondolar[/eluser]
I recommend against storing the language in a cookie and then switching back to a url without the language identifier. If you do that, you won't get your alternate languages spidered by search engines. Once a visitor chooses a language, you need to make sure all urls have the language identifier for all pages unless they specifically switch to your default language or another language.

Good luck with your project.

#7
[eluser]Unknown[/eluser]
Hello,
I want to build a multilingual website. Which supports International languages as well as regional language. The site will be dynamic. The data comes from the database. I want to insert data only once in English. It will translate into the language chosed by the user and render it in the browser. I don't want to use google translator. Can Someone tell me that what is the database structure and How can i translate my website. Please help me. If sample code is being posted then it will be very helpful.

Thanks & Regards
Data recovery software.com
Software Developer

#8
[eluser]Altazar[/eluser]
[quote author="Data recovery software" date="1268660345"]I want to build a multilingual website. Which supports International languages as well as regional language. The site will be dynamic. The data comes from the database.[/quote]

I asked a similar question here. I think you should first make it work with i18n library. Installation is explained here. Than you should create a model which communicates with database. I haven't made it yet (lack of time).


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.