Welcome Guest, Not a member yet? Register   Sign In
Making a page multilanguage. Need advice, please...
#1

[eluser]victorche[/eluser]
I know there are a lots of topics about this case, but none of them explains my problem.

I am developing an application (not site) and the application is accessed only after login. I want to add a field in the user's table for language choice. Every user already has a "profile" page, for changing password, adding avatar, etc. So I want to add there a language choice, with a select. This way the language prefs are stored in the database for every user. And then I will translate the lang files. My question is...

How can I do this? Is there a clean way for changing the lang folder in CI? For example, I will have 3 different folders, like "english", "german", "russian". And I need to load the lang files from one of those folders, depending on the user choice (database stored). The default will be English. So, no sessions, no lang in the url.

Any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB