-
-
Save tarnagas/0466c4aa76d08f29b7c050f443ab50da to your computer and use it in GitHub Desktop.
Programmatically set magento locale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $locale = 'nl_NL'; | |
| Mage::app()->getLocale()->setLocaleCode($locale); | |
| Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true); | |
| //http://www.kennydeckers.com/programatically-set-locale-language-magento/ | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment