Loading...
 
Skip to main content

History: Module switch_lang

Preview of version: 13

This page needs review

Module switch_lang

This Module allows visitors to change the language of the Tiki site interface (menus, module titles, and so on.). The switch_lang2 module also provides a way to change the interface language.

Parameters

Displays a language picker to change the language of the site.

Go to the source code
Preferences required: feature_multilingual, change_language

Parameters Accepted Values Description Default Since
mode alpha Changes how the list of languages is displayed. Possible values are droplist, flags and words. Defaults to droplist.


Usage

You will see it listed at ""Admin > Modules > Assign new module > Module Name (drop down)" (tiki-admin_modules.php).

You can assign a this Module to a lateral column (See Module Admin page if needed), or you can include it within a wiki page, using the PluginModule.

You can also include the module in a wiki page by using:

Copy to clipboard
{MODULE(module=>switch_lang, title=TITLE, flip=>y|n, nobox=>y|n, decorations=y|n)}{MODULE}


Where:

  • title: The title of the module box. The default is Language
  • flip:
    This option requires that nobox = n.
  • nobox: If y, do not draw a box around the module. The default is n (a box will be drawn).
    This option requires that decorations = y.
  • decorations: If n, the flip and nobox options will be ignored. The default is y.



The assigned module looks like this:

The switch_lang module


The list of available languages is determined by the language files currently installed in your lang directory:

Language files in the LANG folder.

See these pages for information that applies for all modules:


History

Advanced
Information Version
Baraka Kinywa 14
Baraka Kinywa 13
drsassafras Mass search and replace 12
pianoliv status: review 11
Marc Laporte 9
Marc Laporte 8
lindon 7
lindon 6
lindon 5
Rick Sapir / Tiki for Smarties 4
Rick Sapir / Tiki for Smarties initial content contribution 3
Rick Sapir / Tiki for Smarties created initial page 2
Xavier de Pedro 1