Once you have developed your site to accommodate multiple languages, you'll obviously want to allow people to switch between them. For example, to switch from English to French, or French to German, or whatever region or language you're developing for. This can be handled in several ways, but in this example, we're going to use the CodeIgniter
Session class to swap from one language to another.
We're going to use the
Session class to store the user's language preference, which means, we'll need to use CodeIgniter sessions. This will require some configuration.
We'll be editing the following files: