Now I try to setup multiple language in magento single store view. So, Is it possible in Single Store view?
Because I have created Multiple Store views For Every Vendor. So, Now can I have multiple languages for magento single store view?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityNow I try to setup multiple language in magento single store view. So, Is it possible in Single Store view?
Because I have created Multiple Store views For Every Vendor. So, Now can I have multiple languages for magento single store view?
You can set Direct Language code
$locale = 'nl_NL';
Mage::getSingleton('core/session')->setMyLang($langCode);
$locale = Mage::getSingleton('core/session')->getMyLang();
Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true);
$defaultStore = Mage::app()->getStore()->getCode();
Mage::app()->setCurrentStore($defaultStore);
Mage::app()->getLocale()->setLocale($locale);
Mage::app()->getTranslator()->init('frontend', true);
$defaultLocale = Mage::app()->getLocale()->getLocaleCode();
now Site translate in Your set Language.
It is possible to change the language programmatically and the translation cache takes both into account, locale and store view, so you could code some custom language switcher with code from https://magento.stackexchange.com/a/19741/243
This is not how you are supposed to use the Magento store system, and it's most likely not worth the effort.
Try to restructure the setup so that one vendor can have multiple store views. I don't know the details of your system but probably one website per vendor is a better solution.
You can set a store for each vendor also to particular website,
and can set language for each store separately
the sore view is nothing more then a language module in magento, many languages within the store view should be avoided , doing so will lead to confusion in the basic system design