Skip to main content
added 738 characters in body
Source Link
Meez
  • 483
  • 1
  • 8
  • 22

On my website: if i switch to Chinese language the flag is not changing in the language switcher? The other languages are working fine. E.g. if you switch to French, its showing the French flag...

This is the language.phtml i am using:

<?php if(count($this->getStores())>1): ?>
<div class="polyglot-language-switcher" data-grid-columns="1" data-anim-effect="fade" data-open-mode="click" data-anim-speed="0.1" >
    <ul style="display: none">
        <?php foreach ($this->getStores() as $_lang):?>
                <li><a href="<?php echo $_lang->getCurrentUrl() ?>" title="<?php echo $this->htmlEscape($_lang->getName()) ?>" data-lang-id="<?php echo $this->htmlEscape($_lang->getCode()) ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt=""> <?php echo $this->htmlEscape($_lang->getName()) ?></a></li>
        <?php endforeach;?>
    </ul>
</div>
<?php endif; ?>

On my website: if i switch to Chinese language the flag is not changing in the language switcher? The other languages are working fine. E.g. if you switch to French, its showing the French flag...

On my website: if i switch to Chinese language the flag is not changing in the language switcher? The other languages are working fine. E.g. if you switch to French, its showing the French flag...

This is the language.phtml i am using:

<?php if(count($this->getStores())>1): ?>
<div class="polyglot-language-switcher" data-grid-columns="1" data-anim-effect="fade" data-open-mode="click" data-anim-speed="0.1" >
    <ul style="display: none">
        <?php foreach ($this->getStores() as $_lang):?>
                <li><a href="<?php echo $_lang->getCurrentUrl() ?>" title="<?php echo $this->htmlEscape($_lang->getName()) ?>" data-lang-id="<?php echo $this->htmlEscape($_lang->getCode()) ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt=""> <?php echo $this->htmlEscape($_lang->getName()) ?></a></li>
        <?php endforeach;?>
    </ul>
</div>
<?php endif; ?>
Source Link
Meez
  • 483
  • 1
  • 8
  • 22

Chinese Flag is not changing in the language switcher

On my website: if i switch to Chinese language the flag is not changing in the language switcher? The other languages are working fine. E.g. if you switch to French, its showing the French flag...