Comparing revisions for MultiLanguageMenus

Additions:
===Description and Use===
~- does not change the IU messages generated by ##wikka.php##.
""{{language nl MyDutchPage}}"" will change menu language to Dutch (##nl##) and will redirect to ""MyDutchPage"". It's typical use would be in a language link somewhere in the menus.
Grab the code and put it in ##wikka.php## above the code for the menus.
==To Do==
~-Move some code and descriptions on this page to: LanguageAction, LanguageActionInfo, MultiLanguageMenuAction and MultiLanguageMenuActionInfo
CategoryDevelopmentArchitecture
Deletions:
~- does not change the UI messages generated by ##wikka.php##. They will still be in English.
**Note:**
There is actually an easier solution to this, as was pointed out to me by EmeraldIsland in the notes to this page. Using the original version of WikkaMenus, it requires merely one action (similar to the ##language## action below), adding a small function to ##wikka.php## to deal with a language cookie, using suffixes in the menuname corresponding to the language, and some recoding of the ##header## action. Rather quick and easy, and doesn't require dealing with the database :)
The only reason to choose a more elaborate version as described in this document is for admin purposes. It provides a better overview of corresponding menus in different languages.
The new action ""{{multilangmenu}}"" (see below) provides an interface to edit all the fields. The interface is similar to the one in WikkaMenus, the content fields are next to each other, so you can easily see how menus if different languages correspond.
The action ""{{language nl MyDutchPage}}"" will change menu language to Dutch (##nl##) and will redirect to ""MyDutchPage"". It's typical use would be in a language link somewhere in the menus.
Grab the following code and put it in ##wikka.php## above the code for the menus. The cookie will be know as ##wikkalang##.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki