how to add one more language flag

mikx

No avatar

2008-07-26 03:40

how to add one more language flag and how to connect it with language createn in administration

thank you

» Quick.Cms v2.x

cgan

Avatar: cgan

2008-07-26 08:17

mikx - if you want to add e.g. german language try to add this row in templates/container.tpl
<a href="?sLang=de" title="Deutsch"><img src="your_flagdirectory/de_flag.png" alt="deutsch" /></a>

cgan

mikx

No avatar

2008-07-29 01:29

thankx

mikx

No avatar

2008-12-01 14:48

but where to put this code to place lang icons like in this demo of quick.cms near menu

cgan

Avatar: cgan

2008-12-01 17:26

As in demo in templates/container.tpl a bit down try this:
<div id="head3">
$sMenu2
<a href="?sLang=de" title="Deutsch"><img src="your_flagdirectory/de_flag.png" alt="deutsch" /></a>
</div>

cgan

mikx

No avatar

2008-12-01 20:03

no it's not that
I want flag to be placed on the right side

cgan

Avatar: cgan

2008-12-01 23:09

OK. in templates/container.tpl try this:
<div id="head3">
$sMenu2
<div id="mylang">
<a href="?sLang=de" title="Deutsch"><img src="your_flagdirectory/de_flag.png" alt="deutsch" /></a>
<a href="?sLang=xx" title="Other"><img src="your_flagdirectory/xx_flag.png" alt="other" /></a>
</div>
Then place something like this in templates/default.css:
#mylang{float:right;padding:12px}

cgan

mikx

No avatar

2008-12-02 00:02

thank zou verz much
I appreciate that

svarga

No avatar

2009-02-22 06:16

Little correction for everybody
At the end of this css fragment I'm add additional </dev>. It's seems work better as for me...

<div id="mylang">
<a href="?sLang=de" title="Deutsch"><img src="your_flagdirectory/de_flag.png" alt="deutsch" /></a>
<a href="?sLang=xx" title="Other"><img src="your_flagdirectory/xx_flag.png" alt="other" /></a>
</div>
</DIV>

Back to top
about us | contact