Jump to content

[solved] Flags not matching with languages


Recommended Posts

Hello,

I changed the theme and I have the following problem: my site is in 3 langauges french, english and italian but on the info on the top of homepage I have things mixed up:

French flag -> Send to Italian

US Flag -> Send to French

Italian flag -> Send to English

 

All very nice for integration of cultures...but not very handy for a visitor...

 

HEre the link: www.homedesign.fr

 

Can anyone help me.

Thx a lot!

 

marco

Link to comment
Share on other sites

this theme uses module to display languages? if so, can you provide the .tpl here

 

i think that the problem is there, but is hard to say where exactly without an access to the file

 

regards

Hi Vekia, bear with me I am really a beginner: what's the .tpl ? where do I take it ?
Link to comment
Share on other sites

tpl is a template file

if you're using some module to display the flags, browse the module directory and you will have there .tpl files related to module.

paste the content of the .tpl file here, because without an access to it it's hard to say why it doesnt work well.

Link to comment
Share on other sites

tpl is a template file

if you're using some module to display the flags, browse the module directory and you will have there .tpl files related to module.

paste the content of the .tpl file here, because without an access to it it's hard to say why it doesnt work well.

 

I think I've find it:

 

{*

* 2007-2013 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2013 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

<!-- Block languages module -->

{if count($languages) > 1}

<div id="languages_block_top">

<div id="countries">

{* @todo fix display current languages, removing the first foreach loop *}

{foreach from=$languages key=k item=language name="languages"}

{if $language.iso_code == $lang_iso}

<p class="selected_language">

<img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" />

</p>

{/if}

{/foreach}

<ul id="first-languages" class="countries_ul">

{foreach from=$languages key=k item=language name="languages"}

<li {if $language.iso_code == $lang_iso}class="selected_language"{/if}>

{if $language.iso_code != $lang_iso}

{assign var=indice_lang value=$language.id_lang}

{if isset($lang_rewrite_urls.$indice_lang)}

<a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}">

{else}

<a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}">

 

{/if}

{/if}

<img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" />

{if $language.iso_code != $lang_iso}

</a>

{/if}

</li>

{/foreach}

</ul>

</div>

</div>

 

<script type="text/javascript">

$(document).ready(function () {

$("#countries").mouseover(function(){

$(this).addClass("countries_hover");

$(".countries_ul").addClass("countries_ul_hover");

});

$("#countries").mouseout(function(){

$(this).removeClass("countries_hover");

$(".countries_ul").removeClass("countries_ul_hover");

});

 

});

</script>

{/if}

<!-- /Block languages module -->

Link to comment
Share on other sites

Ok, this I solved. I just changed the reference to the file pointing to the right flag. PS: I don't remember where they are located as I did on local but it's easy to find inspecting the element (in case drop me a message).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...