public static function mapCode2InterfaceLanguage($code)
    {
        if (!empty($code)) {
            $languageService = tao_models_classes_LanguageService::singleton();
            $usage = new core_kernel_classes_Resource(tao_models_classes_LanguageService::INSTANCE_LANGUAGE_USAGE_GUI);
            if ($languageService->isLanguageAvailable($code, $usage)) {
                return $code;
            }
            \common_Logger::d('[Fallback] The provided launch language is unavailable: ' . $code);
        }

        return DEFAULT_LANG;
    }
public static function mapCode2InterfaceLanguage($code)
    {
        if (!empty($code)) {
            $languageService = tao_models_classes_LanguageService::singleton();
            $usage = new core_kernel_classes_Resource(tao_models_classes_LanguageService::INSTANCE_LANGUAGE_USAGE_GUI);
            if ($languageService->isLanguageAvailable($code, $usage)) {
                return $code;
            }
            \common_Logger::d('[Fallback] The provided launch language is unavailable: ' . $code);
        }

        return DEFAULT_LANG;
    }
public static function mapCode2InterfaceLanguage ( $ code ) { if ( ! empty ( $ code ) ) { $ languageService = tao_models_classes_LanguageService :: singleton ( ) ; $ usage = new core_kernel_classes_Resource ( tao_models_classes_LanguageService :: INSTANCE_LANGUAGE_USAGE_GUI ) ; if ( $ languageService -> isLanguageAvailable ( $ code , $ usage ) ) { return $ code ; } \ common_Logger :: d ( '[Fallback] The provided launch language is unavailable: ' . $ code ) ; } return DEFAULT_LANG ; }
Returns the tao language code that corresponds to the code provided
not yet implemented, will always use default

@param string $code

@return string
@throws common_exception_Error
Returns the tao language code that corresponds to the code provided not yet implemented will always use default