hi i must change my app for support multi language how can i do it? (fuelphp 1.9) i need language show in uri like : http\\sitename\en\module\controller\action and load language file by this uri prefix? but no idea how to set uri prefix language and get it without change in my old uri address
It isn't the best solution, as it makes it difficult to generate links in the application (which now are language dependent). Using a separate language cookie is a better solution, as you can manage the language selection completely different from the code of the app.
We have the 'supported languages' actually in a lang file, since we use that to create a dropdown in the app page header so the user can select another language. The controller action that is called will then also set the cookie. We use this action: http://bin.fuelphp.com/snippet/view/NG