brookmessages_ptbr.pas 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 (pt-BR) unit. }
  11. unit BrookMessages_ptBR;
  12. {$i brook.inc}
  13. interface
  14. uses
  15. BrookMessages, BrookUtils, BrookHttpConsts;
  16. procedure BrookTranslate;
  17. procedure BrookHttpTranslate;
  18. implementation
  19. procedure BrookTranslate;
  20. begin
  21. SBrookDefaultLocale := 'pt-BR';
  22. SBrookInvalidRequestMethodError := 'Método de solicitação inválido: %s.';
  23. SBrookItemNotFoundError := 'Item "%s" não encontrado.';
  24. SBrookFileNotFoundError := 'Arquivo não encontrado: %s';
  25. SBrookNoRequestMethodError := 'REQUEST_METHOD não passado do servidor.';
  26. SBrookNoApplicationRegisteredError := 'Application não registrada.';
  27. SBrookApplicationAlreadyRegisteredError := 'A aplicação já está registrada.';
  28. SBrookRegiterTBrookActionError := 'Não é possível registrar o tipo TBrookAction diretamente.';
  29. SBrookActionAlreadyRegisteredError := 'A ação "%s" já está registrada.';
  30. SBrookDefaultActionAlreadyRegisteredError := 'Já existe uma ação padrão registrada.';
  31. SBrookPatternAlreadyRegisteredError := 'Já existe uma ação registrada com o padrão "%s".';
  32. SBrookRouterServiceAlreadyRegisteredError := 'O serviço de roteador já está registrado.';
  33. SBrookNoRouterServiceRegisteredError := 'Serviço de roteador não registrado.';
  34. SBrookNoRouteRegisteredError := 'Rota não registrada.';
  35. SBrookCfgFileNotFoundError := 'O arquivo de configuração não foi encontrado: "%s"';
  36. SBrookNotNilError := '"%s" não pode ser nulo.';
  37. SBrookEmptyLibraryNameError := 'O nome da biblioteca não pode ser vazio.';
  38. SBrookMethodNotAllowedError := 'Método HTTP não permitido para o recurso solicitado.';
  39. SBrookConstraintAlreadyRegisteredError := 'A restrição "%s" já está registrada.';
  40. SBrookConstraintsServiceAlreadyRegisteredError := 'O serviço de restrições já está registrado.';
  41. SBrookNoConstraintsServiceRegisteredError := 'Serviço de restrições não registrado.';
  42. SBrookNoLoggerServiceRegisteredError := 'Serviço de logger não registrado.';
  43. SBrookLoggerServiceAlreadyRegisteredError := 'O serviço de logger já está registrado.';
  44. end;
  45. procedure BrookHttpTranslate;
  46. begin
  47. BrookSettings.Page404 :=
  48. '<html><head><title>Página não encontrada</title></head><body>' +
  49. '<h1>404 - Página não encontrada</h1></body></html>';
  50. BrookSettings.Page500 :=
  51. '<html><head><title>Erro interno do servidor</title></head><body>' +
  52. '<h1>500 - Erro interno do servidor</h1>' +
  53. '<p style="color: red;" >@error</p>' +
  54. '</body></html>';
  55. end;
  56. end.