Hi,
I've trying to use language files, but it is not working for me. For instance I've translated the blog module and added a 'swedish' language folder in blog/language/. Also changed fuel/application/config/config.php to:
$config['language'] = 'swedish';
Everywhere (I think) where there is a language folder, I've created a 'swedish' instance with a copy of the english *_lang.php files. (except of course in blog where the translated blog_lang.php resides)
What am I missing here?
Comments
Thanks!
Thanks again!
https://github.com/daylightstudio/FUEL-CMS/tree/1.0
No need to hurry with an answer about this.
Thanks for your time!
$config['languages'] = array('english' => 'English');
If you add additional languages, there will be language dropdowns that appear in the CMS in appropriate areas (e.g. pages, navigation, blocks). For pages, you can save multiple language versions at the same location (e.g. about/location). Then on the front end, you can use the Fuel_language class to get and set the language value. I'd review the methods on the Fuel_language class for a little more info.
The documentation is still lacking a bit on the subject but I plan on adding some more.