0

This question is the duplicate of this one. None answer this question so far.

I am running a magento 1.9.1.0. And I have two stores, One is English and other one is Arabic.

My default store view is English in system --> manage stores. But in the front end, arabic page is loading by default.

Why is it so? Any one can please help me with this?

Community
  • 1
  • 1
hakkim
  • 666
  • 15
  • 36
  • I'm voting to close this question as off-topic because it is not about programming. Stack Overflow is a programming Q&A site. – Enigmativity Jul 01 '15 at 11:37

2 Answers2

1

You have set the locale in default configuration scope

admin > system > configuration > General > Locale Option > Locale

enter image description here

MeenakshiSundaram R
  • 2,837
  • 3
  • 29
  • 41
0

Check your language.phtml If you are using flags instead of dropdown make sure you define the default language. by using <?php if ($_lang->getCode() != 'default'): ?>

refer to complete code below

    <?php if(count($this->getStores())>1): ?>
<div class="form-language">
    <div class="langs-wrapper">
    <?php foreach ($this->getStores() as $_lang): ?>
    <?php if ($_lang->getCode() != 'default'): ?>
        <?php $selected = $_lang->getId() == $this->getCurrentStoreId() ?>
        <a class="lang-flag<?php $selected && print ' selected' ?>" href="<?php echo $_lang->getCurrentUrl() ?>">
            <img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $this->htmlEscape($_lang->getName()) ?>" height="16" width="24">
        </a>
    <?php endif;?>
    <?php endforeach ?>
    </div>
</div>
<?php endif;?>
L. Sanchez
  • 21
  • 3