public static function getMessage($errorCode, $language = 'en')
    {
        self::initMessages();

        $messagesByLanguage = self::getMessagesByLanguage($language);
        if (!array_key_exists($errorCode, $messagesByLanguage)) {
            return $errorCode;
        }

        return $messagesByLanguage[$errorCode];
    }
public static function getMessage($errorCode, $language = 'en')
    {
        self::initMessages();

        $messagesByLanguage = self::getMessagesByLanguage($language);
        if (!array_key_exists($errorCode, $messagesByLanguage)) {
            return $errorCode;
        }

        return $messagesByLanguage[$errorCode];
    }
public static function getMessage ( $ errorCode , $ language = 'en' ) { self :: initMessages ( ) ; $ messagesByLanguage = self :: getMessagesByLanguage ( $ language ) ; if ( ! array_key_exists ( $ errorCode , $ messagesByLanguage ) ) { return $ errorCode ; } return $ messagesByLanguage [ $ errorCode ] ; }
This static method provides a message suitable for display to a user corresponding to a given Rapid
Code & language.

@param string $errorCode
@param string $language 2 character language code, defaults to en

@return string
This static method provides a message suitable for display to a user corresponding to a given Rapid Code & language .