en.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. return array(
  3. 'APIException:ApiResultUnknown' => "API Result is of an unknown type, this should never happen.",
  4. 'APIException:MissingParameterInMethod' => "Missing parameter %s in method %s",
  5. 'APIException:ParameterNotArray' => "%s does not appear to be an array.",
  6. 'APIException:UnrecognisedTypeCast' => "Unrecognised type in cast %s for variable '%s' in method '%s'",
  7. 'APIException:InvalidParameter' => "Invalid parameter found for '%s' in method '%s'.",
  8. 'APIException:FunctionParseError' => "%s(%s) has a parsing error.",
  9. 'APIException:FunctionNoReturn' => "%s(%s) returned no value.",
  10. 'APIException:APIAuthenticationFailed' => "Method call failed the API Authentication",
  11. 'APIException:UserAuthenticationFailed' => "Method call failed the User Authentication",
  12. 'APIException:MethodCallNotImplemented' => "Method call '%s' has not been implemented.",
  13. 'APIException:FunctionDoesNotExist' => "Function for method '%s' is not callable",
  14. 'APIException:AlgorithmNotSupported' => "Algorithm '%s' is not supported or has been disabled.",
  15. 'APIException:NotGetOrPost' => "Request method must be GET or POST",
  16. 'APIException:MissingAPIKey' => "Missing API key",
  17. 'APIException:BadAPIKey' => "Bad API key",
  18. 'APIException:MissingHmac' => "Missing X-Elgg-hmac header",
  19. 'APIException:MissingHmacAlgo' => "Missing X-Elgg-hmac-algo header",
  20. 'APIException:MissingTime' => "Missing X-Elgg-time header",
  21. 'APIException:MissingNonce' => "Missing X-Elgg-nonce header",
  22. 'APIException:TemporalDrift' => "X-Elgg-time is too far in the past or future. Epoch fail.",
  23. 'APIException:NoQueryString' => "No data on the query string",
  24. 'APIException:MissingPOSTHash' => "Missing X-Elgg-posthash header",
  25. 'APIException:MissingPOSTAlgo' => "Missing X-Elgg-posthash_algo header",
  26. 'APIException:MissingContentType' => "Missing content type for post data",
  27. 'SecurityException:APIAccessDenied' => "Sorry, API access has been disabled by the administrator.",
  28. 'SecurityException:NoAuthMethods' => "No authentication methods were found that could authenticate this API request.",
  29. 'SecurityException:authenticationfailed' => "User could not be authenticated",
  30. 'InvalidParameterException:APIMethodOrFunctionNotSet' => "Method or function not set in call in expose_method()",
  31. 'InvalidParameterException:APIParametersArrayStructure' => "Parameters array structure is incorrect for call to expose method '%s'",
  32. 'InvalidParameterException:UnrecognisedHttpMethod' => "Unrecognised http method %s for api method '%s'",
  33. 'SecurityException:AuthTokenExpired' => "Authentication token either missing, invalid or expired.",
  34. 'SecurityException:InvalidPostHash' => "POST data hash is invalid - Expected %s but got %s.",
  35. 'SecurityException:DupePacket' => "Packet signature already seen.",
  36. 'SecurityException:InvalidAPIKey' => "Invalid or missing API Key.",
  37. 'NotImplementedException:CallMethodNotImplemented' => "Call method '%s' is currently not supported.",
  38. 'CallException:InvalidCallMethod' => "%s must be called using '%s'",
  39. 'system.api.list' => "List all available API calls on the system.",
  40. 'auth.gettoken' => "This API call lets a user obtain a user authentication token which can be used for authenticating future API calls. Pass it as the parameter auth_token",
  41. );