Welcome Guest, Not a member yet? Register   Sign In
issue with language and config for internationalization
#6

[eluser]TheFuzzy0ne[/eluser]
CodeIgniter has some basic language files, which are for things such as validation messages, database error messages, profiler messages and several other things, however, you can load your own language files whenever you want, and they will be available to you. If I recall correctly, you can even switch between languages, as loading a new language overwrites any identical entries in the $lang array.

So basically, as long as you figure out what file you need to load before you load it, you shouldn't have any problems. You just need to figure out how how you are going to get CodeIgniter to do what you want it to.

I would suggest extending the CI_Controller class, and adding a method called _set_lang(),(the underscore make the function inaccessible via the URI), or similar, which will set the default language. Then you are free to load specific language files from within your controller as you need them.

Hope this helps. Smile


Messages In This Thread
issue with language and config for internationalization - by El Forum - 02-07-2009, 01:16 PM
issue with language and config for internationalization - by El Forum - 02-14-2009, 02:05 AM
issue with language and config for internationalization - by El Forum - 02-14-2009, 02:28 AM
issue with language and config for internationalization - by El Forum - 02-14-2009, 05:06 AM
issue with language and config for internationalization - by El Forum - 02-14-2009, 12:01 PM
issue with language and config for internationalization - by El Forum - 02-14-2009, 12:33 PM
issue with language and config for internationalization - by El Forum - 02-14-2009, 12:36 PM
issue with language and config for internationalization - by El Forum - 02-14-2009, 01:57 PM
issue with language and config for internationalization - by El Forum - 02-14-2009, 04:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB