Revision [15310]

This is an old revision of MultiLanguageMenus made by WigAnt on 2006-09-14 03:34:02.

 

Multi Language Menus

Last edited by WigAnt
Thu, 14 Sep 2006 03:34 UTC [diff]

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.

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;


New Actions


language


multilangmenu


Changes in wikka.php



two functions to deal with the language cookie


Menu Functions

changes in the menufunctions





Notes



To Do


-- WigAnt
There are 2 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki