SOLVED Problem using {lang} in template... help!
Posted: Thu Dec 11, 2008 11:58 pm
*** UPDATE ***
Okay... I have now used {lang} in my template (urk, dohhh) and now it shows
English and Norsk links.
But how do I make it show the flag icons instead of the textual links?
Dohhh ... again... the flag png files was not in images/lang dir, I guess my problem will be gooner when I
get those flags... PROBLEM SOLVED
*** UPDATE END ***
I have installed cmsms-mle-1.5.1-full
I have made the changes to the tables and enabled config_lang.php
Site works.
I'm using two languages en_US and no_NO, both defined in the config_lang.php
see example code:
But, I do not know how to display the lang flag icons so I can click them in order to see correct language.
I do not understand {lang} syntax and have read countless guides here that refers to {lang} ...
I have tried to use {en}, {en_US} .... which both fails
I have tried {$en_US} which gives no error, and no flags.
Could someone please give me an example how this {lang} actually should look like in a template.
Regards
Okay... I have now used {lang} in my template (urk, dohhh) and now it shows
English and Norsk links.
But how do I make it show the flag icons instead of the textual links?
Dohhh ... again... the flag png files was not in images/lang dir, I guess my problem will be gooner when I
get those flags... PROBLEM SOLVED
*** UPDATE END ***
I have installed cmsms-mle-1.5.1-full
I have made the changes to the tables and enabled config_lang.php
Site works.
I'm using two languages en_US and no_NO, both defined in the config_lang.php
see example code:
Code: Select all
'en_US' => array(
'block'=>'en',
'flag'=>'<img src="/path_cms_root/images/lang/us.png" style="border:0; opacity:1;" alt="English" />',
'text'=>'English',
),
'no_NO' => array(
'block'=>'no',
'flag'=>'<img src="/path_cms_root/images/lang/no.png" style="border:0; opacity:1;" alt="Norsk" />',
'text'=>'Norsk',
),
But, I do not know how to display the lang flag icons so I can click them in order to see correct language.
I do not understand {lang} syntax and have read countless guides here that refers to {lang} ...
I have tried to use {en}, {en_US} .... which both fails
I have tried {$en_US} which gives no error, and no flags.
Could someone please give me an example how this {lang} actually should look like in a template.
Regards