flags for language selection

if you want flags-images instead of the language-dropdown

(presuming you use more than one language of course…)

i made this very simple and 1-minute-to-implement hack (tested/made in version 1.3.4).





[COLOR=“Red”]STEP 1:[/COLOR]

----------------------------

Create an image for each flag/language in format “flag_xx.gif”, where

xx is the language-abbreviation used in the admin, f.e. “flag_de.gif”.



Put each gif-image in the map [COLOR=“Blue”]/skins//customer/images[/COLOR]





[COLOR=“Red”]STEP 2:[/COLOR]

replace ALL the code in the file

[COLOR=“blue”]/skins//customer/common_templates/select_language.tpl[/COLOR]



with the code in this zip:

[ATTACH]179[/ATTACH]



thats it.



Of course, again, quick&dirty, be my guest to change etc…

You can add this tpl anywhere i think, so the flags dont have to

be placed in that ugly side-box along with the currency-dropdown : o ))



The currently selected flag/language will be un-clickable and semi-transparent.



Ah well.





[ATTACH]177[/ATTACH]

select_language.zip

langflags.gif

if anyone want some round flag icons let me know ill get you some

yes indeed i would like to see these.



“if anyone want some round flag icons let me know ill get you some”

Thanks but you tpl do not work for me under latest version of CS-cart

I really don’t know how i’m gonna do it



Please help



Best regards

[quote name=‘Muksu’]Thanks but you tpl do not work for me under latest version of CS-cart

I really don’t know how i’m gonna do it



Please help



Best regards[/QUOTE]



What version are you using? 1.3.4 SP2 or SP1 etc?

Hi!



I did exactly as adviced but the code in the tpl file is not readable. I mean, i get an error because the code seems to be in another language, it’s all full of symbols. I tried subtituting one tpl file for the other but I get an error. Could you please check again the tpl file in the zip folder and put it here again for downloading? Thanks in advance. :smiley:



I’d also appreciate if you could tell me how I can place the language option right below the search box in the brickwork skin.

Hi mirnitagl



Use winrar not winzip, anyway here is a copy of the TPL.


```php

{* $Id: select_language.tpl 1829 2006-05-17 18:10:36Z lantan $ *}



{if !$hide_language_select}


{$lang.language}:

{foreach from=$all_languages item=language}
{if $language.lang_code ne $cart_language}
{$language.name}
{else}
{$language.name}
{/if}
{/foreach}


{/if}
```

Is this mod suitable for 1.3.5sp3 too? I tried to test the zipped .tpl file but there is some error. Any updates? Is anyone successfully implemented this or similar mods on never versions of the cart?

This should work with 1.3.5-sp3, what was the error you got.

Work if seo is not enabled.