且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento在模板文件中获取语言代码

更新时间:2023-11-30 10:23:04

您可以通过以下方式获取当前的语言环境代码:

You can get the current locale code this way :

$locale = Mage::app()->getLocale()->getLocaleCode();