brookmessages.pas 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. (*
  2. Brook for Free Pascal
  3. Copyright (C) 2014-2019 Silvio Clecio
  4. See the file LICENSE.txt, included in this distribution,
  5. for details about the copyright.
  6. This library is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. *)
  10. { Messages unit. }
  11. unit BrookMessages;
  12. {$i brook.inc}
  13. interface
  14. resourcestring
  15. { Default resource messages }
  16. { }
  17. SBrookDefaultLocale_rst = 'en-US';
  18. { Default resource error messages }
  19. { }
  20. SBrookInvalidRequestMethodError_rst = 'Invalid request method: %s';
  21. SBrookItemNotFoundError_rst = 'Item "%s" not found.';
  22. SBrookFileNotFoundError_rst = 'File not found: %s';
  23. SBrookNoRequestMethodError_rst = 'No REQUEST_METHOD passed from server.';
  24. SBrookNoApplicationRegisteredError_rst = 'No application registered.';
  25. SBrookApplicationAlreadyRegisteredError_rst = 'The application is already registered.';
  26. SBrookRegiterTBrookActionError_rst = 'Unable to register the type TBrookAction directly.';
  27. SBrookActionAlreadyRegisteredError_rst = 'The action "%s" is already registered.';
  28. SBrookDefaultActionAlreadyRegisteredError_rst = 'There is already a default action registered.';
  29. SBrookPatternAlreadyRegisteredError_rst = 'There is already an action registered with the pattern "%s".';
  30. SBrookRouterServiceAlreadyRegisteredError_rst = 'The router service is already registered.';
  31. SBrookNoRouterServiceRegisteredError_rst = 'No router service registered.';
  32. SBrookNoRouteRegisteredError_rst = 'No route registered.';
  33. SBrookCfgFileNotFoundError_rst = 'The config file was not found: "%s"';
  34. SBrookNotNilError_rst = '"%s" must not be nil.';
  35. SBrookEmptyLibraryNameError_rst = 'The library name must not be empty.';
  36. SBrookMethodNotAllowedError_rst = 'HTTP method not allowed for the requested resource.';
  37. SBrookConstraintAlreadyRegisteredError_rst = 'The constraint "%s" is already registered.';
  38. SBrookConstraintsServiceAlreadyRegisteredError_rst = 'The constraints service is already registered.';
  39. SBrookNoConstraintsServiceRegisteredError_rst = 'No constraints service registered.';
  40. SBrookNoLoggerServiceRegisteredError_rst = 'No logger service registered.';
  41. SBrookLoggerServiceAlreadyRegisteredError_rst = 'The logger service is already registered.';
  42. var
  43. { Default messages }
  44. { }
  45. SBrookDefaultLocale: string = SBrookDefaultLocale_rst;
  46. { Default error messages }
  47. { }
  48. SBrookInvalidRequestMethodError: string = SBrookInvalidRequestMethodError_rst;
  49. SBrookItemNotFoundError: string = SBrookItemNotFoundError_rst;
  50. SBrookFileNotFoundError: string = SBrookFileNotFoundError_rst;
  51. SBrookNoRequestMethodError: string = SBrookNoRequestMethodError_rst;
  52. SBrookNoApplicationRegisteredError: string = SBrookNoApplicationRegisteredError_rst;
  53. SBrookApplicationAlreadyRegisteredError: string = SBrookApplicationAlreadyRegisteredError_rst;
  54. SBrookRegiterTBrookActionError: string = SBrookRegiterTBrookActionError_rst;
  55. SBrookActionAlreadyRegisteredError: string = SBrookActionAlreadyRegisteredError_rst;
  56. SBrookDefaultActionAlreadyRegisteredError: string = SBrookDefaultActionAlreadyRegisteredError_rst;
  57. SBrookPatternAlreadyRegisteredError: string = SBrookPatternAlreadyRegisteredError_rst;
  58. SBrookRouterServiceAlreadyRegisteredError: string = SBrookRouterServiceAlreadyRegisteredError_rst;
  59. SBrookNoRouterServiceRegisteredError: string = SBrookNoRouterServiceRegisteredError_rst;
  60. SBrookNoRouteRegisteredError: string = SBrookNoRouteRegisteredError_rst;
  61. SBrookCfgFileNotFoundError: string = SBrookCfgFileNotFoundError_rst;
  62. SBrookNotNilError: string = SBrookNotNilError_rst;
  63. SBrookEmptyLibraryNameError: string = SBrookEmptyLibraryNameError_rst;
  64. SBrookMethodNotAllowedError: string = SBrookMethodNotAllowedError_rst;
  65. SBrookConstraintAlreadyRegisteredError: string = SBrookConstraintAlreadyRegisteredError_rst;
  66. SBrookConstraintsServiceAlreadyRegisteredError: string = SBrookConstraintsServiceAlreadyRegisteredError_rst;
  67. SBrookNoConstraintsServiceRegisteredError: string = SBrookNoConstraintsServiceRegisteredError_rst;
  68. SBrookNoLoggerServiceRegisteredError: string = SBrookNoLoggerServiceRegisteredError_rst;
  69. SBrookLoggerServiceAlreadyRegisteredError: string = SBrookLoggerServiceAlreadyRegisteredError_rst;
  70. implementation
  71. end.