Revision [15311]
This is an old revision of MultiLanguageMenus made by WigAnt on 2006-09-14 03:36:43.
Multi Language Menus
See also:
Note: this text is unfinished. I just started typing it up. -- WigAnt
MultiLanguageMenus is an extension of the menu solution described in WikkaMenus. The extension needs a larger database table for the menus, two new actions and some changes in the wikka.php code. It will also install a cookie for storing the user language. Installation of this extension, requires prior installation of WikkaMenus.
Description and Use
This extension has been designed for three languages, but it can easily be changed into a version for more languages.
Database Table
The database table 'wikka_menus' needs to be extended. Here's the description:
CREATE TABLE `wikka_menus` ( `name` varchar(20) NOT NULL default '', `lng1` char(2) NOT NULL default '', `lng2` char(2) NOT NULL default '', `lng3` char(2) NOT NULL default '', `content` varchar(255) NOT NULL default '', `content2` varchar(255) NOT NULL default '', `content3` varchar(255) NOT NULL default '', `css_class` varchar(20) NOT NULL default '', UNIQUE KEY `name` (`name`) ) TYPE=MyISAM;
Note that the 'content' is not renamed with respect to WikkaMenu, it ensures that 'menu' action can still be used to change the menu in the default language.
New Actions
language
multilangmenu
Changes in wikka.php
Language Cookie
two functions to deal with the language cookie
Menu Functions
changes in the menufunctions
Notes
To Do
- Add some Categories to this page
-- WigAnt