Language switcher - Joomla! Forum - community, help and support
hi,
requirement:
1) show "english / japanese" language options on site.
2) when user clicks on english (or japanese), menus changes english menu (or japanese menu).
i've looked possible solution , found api, jdocument::setlanguage() change language.
now questions are:
1) should call jdocument::setlanguage()? should create new component call method?
2) how can reflect language change in menu? (should modify com_content , add "if ($this->getlanguage() == 'en')..." )
3) there better way of doing this?
i'd appreciate expert advise.
requirement:
1) show "english / japanese" language options on site.
2) when user clicks on english (or japanese), menus changes english menu (or japanese menu).
i've looked possible solution , found api, jdocument::setlanguage() change language.
now questions are:
1) should call jdocument::setlanguage()? should create new component call method?
2) how can reflect language change in menu? (should modify com_content , add "if ($this->getlanguage() == 'en')..." )
3) there better way of doing this?
i'd appreciate expert advise.
i'm kind of doing same, , seems joom!fish job. i'll give go, think it'll solve situation well. have tutorials on site should easy set up.
Comments
Post a Comment