Back to PhocacartOrderStatus class

Method handleLangPlugin

public static
handleLangPlugin
(mixed $pLang, mixed $common, mixed &$object)

Method handleLangPlugin - Source code

public static function handleLangPlugin($pLang, $common, &$object)
{
    PluginHelper::importPlugin('system');
    PluginHelper::importPlugin('plgSystemMultilanguagesck');
    // CUSTOMER
    if (isset($common->user_lang) && $common->user_lang != '' && $common->user_lang != '*') {
        $pLang->setLanguage($common->user_lang);
        Factory::getApplication()->triggerEvent('onChangeText', array(&$object));
        // Set language back to default
        $pLang->setLanguageBack();
    } else {
        Factory::getApplication()->triggerEvent('onChangeText', array(&$object));
    }
}