History: Module switch_lang
Source of version: 15 (current)
Copy to clipboard
{syntax type="markdown" editor="wysiwyg"} {BOX()}This page ((needs review)){BOX} # Module switch_lang This ((Module)) allows visitors to change the language of the Tiki site interface (menus, module titles, and so on.). The ((Module switch_lang2|switch_lang2 module)) also provides a way to change the interface language. ## Parameters {PLUGINMANAGER(module=switch_lang) /} ## 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: {CODE(wrap=>1)} {MODULE(module=>switch_lang, title=TITLE, flip=>y|n, nobox=>y|n, decorations=y|n)}{MODULE} {CODE} 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: {CENTER()}{img src="img/wiki_up/switch_lang.png" alt="The switch_lang module"}{CENTER} The list of available languages is determined by the language files currently installed in your **lang** directory: {DIV(style='text-align: center')} {img src="img/wiki_up/lang_folder.png" alt="Language files in the LANG folder."} {DIV} {include page="Module and Plugin Includes" start="startinclude1" stop="stopinclude1"} - ((i18n)) - ((Switch User)) - ((Module groups_emulation)) - ((Module switch_theme)) - http://themes.tiki.org/Template+Tricks#Display_content_conditional_to_current_language