public static function getLanguage($country)
    {
        switch($country) {
        case KlarnaCountry::AT:
        case KlarnaCountry::DE:
            return KlarnaLanguage::DE;
        case KlarnaCountry::NL:
            return KlarnaLanguage::NL;
        case KlarnaCountry::FI:
            return KlarnaLanguage::FI;
        case KlarnaCountry::DK:
            return KlarnaLanguage::DA;
        case KlarnaCountry::NO:
            return KlarnaLanguage::NB;
        case KlarnaCountry::SE:
            return KlarnaLanguage::SV;
        default:
            return KlarnaLanguage::EN;
        }
    }
public static function getLanguage($country)
    {
        switch($country) {
        case KlarnaCountry::AT:
        case KlarnaCountry::DE:
            return KlarnaLanguage::DE;
        case KlarnaCountry::NL:
            return KlarnaLanguage::NL;
        case KlarnaCountry::FI:
            return KlarnaLanguage::FI;
        case KlarnaCountry::DK:
            return KlarnaLanguage::DA;
        case KlarnaCountry::NO:
            return KlarnaLanguage::NB;
        case KlarnaCountry::SE:
            return KlarnaLanguage::SV;
        default:
            return KlarnaLanguage::EN;
        }
    }
public static function getLanguage ( $ country ) { switch ( $ country ) { case KlarnaCountry :: AT : case KlarnaCountry :: DE : return KlarnaLanguage :: DE ; case KlarnaCountry :: NL : return KlarnaLanguage :: NL ; case KlarnaCountry :: FI : return KlarnaLanguage :: FI ; case KlarnaCountry :: DK : return KlarnaLanguage :: DA ; case KlarnaCountry :: NO : return KlarnaLanguage :: NB ; case KlarnaCountry :: SE : return KlarnaLanguage :: SV ; default : return KlarnaLanguage :: EN ; } }
Get language for supplied country. Defaults to English.

@param int $country KlarnaCountry constant

@deprecated Do not use.

@return int
Get language for supplied country . Defaults to English .