• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How use translated database

I'm translating my website, and would like to know the best way to use the translated database.
I need to know how can I identify when the user accesses the url in en or pt, for example:

localhost / pt / home
localhost / en / home

Have a site that is set in the lang helper or I'll have to pick up via URL and if it is picked up via URL as the language?

for multilingual site you could use Multilingual CI package.

please post your questions to the post above!

How I use this to translate the database data ?

Is there any tutorial to this package ?

well this package has nothing to do with databases. it just sets the multilingual enviroment.

you can use $ci->lang->mci_current() to get the language segment.

How I can translate the database together, have one method easy?

And the Multilingual package have a tutorial to use then?

no tutorial. just copy the files to you CI installation.

BE CAREFUL: do not overvrite autoload.php and routes.php in config folders. just make the changes

btw what is this database translation anyway? lol. you want to have a site with more than one language and each language has it's own content? like cms?

Yes it this like CMS.

I have other question, in my application when I click home (home is a route to main_controller) must keep the prefix language like gr, en, pt.


$ route ['home'] = 'main_controller';

Address when I click home


I get the error:

404 Page Not Found

The page you requested was not found.

You can help me?

have you installed the multilingual ci package?

as i said, first you must set up the multilingual inviroment for your cms.

check how the uri re-mapping is done:


we followed all the steps but I'm sorry to say its still not working Sad
like i will explain the steps :
downloaded the mci package ..put all the files at respective locations... then changed the name of the other files which already existed ...
we made a language file with mci_lang.php, put in english folder and then when I attempt to access http://localhost/en/main_controller/ this I get blank screen ....

Please help..

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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