Project

General

Profile

« Previous | Next » 

Revision 1945

Added by darkviper almost 11 years ago

module/MultiLingual updated for make use of different graphics format
added Droplet to use Multilingual in index.php of template

View differences:

readme.txt
1
If you wish to modify the template, just open the file /modules/MultiLingual/tpl/lang.html.twig
1
#
2
#
3
How to use MultiLingual
4
##########################################################################
5
The easiest way is the combination with Droplet [[iMultiLingual]]
2 6

  
3 7
##########################################################################
8
but you also can handle it in the  old manner:
4 9

  
5
Simple usage:
10
insert the following PHP-code in your templates index.php in the place you want 
11
show the languages link bar.
12

  
6 13
<?php if(function_exists('language_menu')){ echo language_menu(); } ?>
7 14

  
8 15
##########################################################################
16
If you wish to modify the template, just open the file
17
 /modules/MultiLingual/tpl/lang.html.twig
18
and make your modifications.
9 19

  
10
advanced usage:
11
<?php
12
$langFunction = '';
13
// check if multiligual module is installed, default is off,
14
if(function_exists('language_menu')){ $langFunction = language_menu(); }
15
$multilang_flag = intval(($langFunction)!='');
16
$aStart       = SM2_ROOT+$multilang_flag;
17
echo $langFunction;
18

  
19
?>
20
$aStart defines the start level from show_menu2
21

  

Also available in: Unified diff