Please, I need your help to solve this. If we have 2 view English and french.

So if visitor open example.com/en will show in header English language as text so what i need is if visitor open example.com/en will show french as text.

<?php if(count($this->getStores())>1): ?>
<div class="form-language top-select">
    <select id="select-language" title="<?php echo $this->__('Your Language') ?>" onchange="window.location.href=this.value" style="width:auto;">
    <?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? ' selected="selected"' : '' ?>
        <option value="<?php echo $_lang->getCurrentUrl() ?>" <?php if($lang_flag): ?> data-image="<?php echo $this->getSkinUrl('images/flags/'.$_lang->getCode().'.png'); ?>" <?php endif; ?> <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
    <?php endforeach; ?>
    <script type="text/javascript">
<?php endif; ?>

1 Answer 1


you could use the inline translations to "switch" the translations for the english and french store view.

Here is a tutorial on inline translations http://inchoo.net/magento/inline-translation-in-magento/

So you would basically translate in your english store view and put in the french string and the other way around in your french store view

  • No you miss my point i need change the default word in the english store show english and if i hover it by the mouse show list to choose the view. and same with french view must show another view.
    – MagEGY
    Commented Feb 13, 2016 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.