generated.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // This file is generated by the "kurzd generate-translations" command. DO NOT EDIT.
  2. package translations
  3. import (
  4. "github.com/nicksnyder/go-i18n/v2/i18n"
  5. "golang.org/x/text/language"
  6. )
  7. func init() {
  8. loadMessages = func(b *i18n.Bundle) error {
  9. // These are the messages extracted from all the messages.<lang>.yaml files.
  10. m := make(MessageMap)
  11. m[language.Make("en")] = []*i18n.Message{
  12. {
  13. ID: "error.none",
  14. Other: "No error",
  15. },
  16. {
  17. ID: "error.short_not_created",
  18. Other: "Short URL not created for a new target",
  19. },
  20. {
  21. ID: "error.storage_unspecified",
  22. Other: "Storage unspecified error",
  23. },
  24. {
  25. ID: "error.target_blocked",
  26. Other: "Target blocked",
  27. },
  28. {
  29. ID: "error.target_censored",
  30. Other: "Target unavailable for legal reasons",
  31. },
  32. {
  33. ID: "Zerror.error_format",
  34. Description: "The format for errors",
  35. LeftDelim: "{",
  36. RightDelim: "}",
  37. One: "{.Kind}: {.Detail}",
  38. },
  39. {
  40. ID: "error.short_not_found",
  41. Other: "Short URL not defined",
  42. },
  43. {
  44. ID: "error.storage_read",
  45. Other: "Storage read error",
  46. },
  47. {
  48. ID: "error.storage_write",
  49. Other: "Storage write error",
  50. },
  51. {
  52. ID: "error.target_invalid",
  53. Other: "Target invalid",
  54. },
  55. {
  56. ID: "error.unimplemented",
  57. Other: "Not yet implemented",
  58. },
  59. {
  60. ID: "web.ui.empty.target",
  61. Other: "empty target",
  62. },
  63. }
  64. m[language.Make("fr")] = []*i18n.Message{
  65. {
  66. ID: "Zerror.error_format",
  67. Description: "Le format des erreurs",
  68. LeftDelim: "{",
  69. RightDelim: "}",
  70. One: "{.Kind}: {.Detail}",
  71. },
  72. {
  73. ID: "error.short_not_created",
  74. Other: "URL court non créé pour une nouvelle cible",
  75. },
  76. {
  77. ID: "error.storage_unspecified",
  78. Other: "Erreur de stockage non spécifique",
  79. },
  80. {
  81. ID: "error.storage_write",
  82. Other: "Erreur d'écriture sur le stockage",
  83. },
  84. {
  85. ID: "error.target_blocked",
  86. Other: "Cible bloquée",
  87. },
  88. {
  89. ID: "error.target_censored",
  90. Other: "Cible censurée",
  91. },
  92. {
  93. ID: "error.target_invalid",
  94. Other: "Cible invalide",
  95. },
  96. {
  97. ID: "error.none",
  98. Other: "Aucune erreur",
  99. },
  100. {
  101. ID: "error.short_not_found",
  102. Other: "URL court non défini",
  103. },
  104. {
  105. ID: "error.storage_read",
  106. Other: "Erreur de lecture depuis le stockage",
  107. },
  108. {
  109. ID: "error.unimplemented",
  110. Other: "Pas encore réalisé",
  111. },
  112. {
  113. ID: "web.ui.empty.target",
  114. Other: "cible vide",
  115. },
  116. }
  117. for tag, messagesByTag := range m {
  118. err := b.AddMessages(tag, messagesByTag...)
  119. if err != nil {
  120. b = &i18n.Bundle{}
  121. return err
  122. }
  123. }
  124. return nil
  125. }
  126. }
  127. /* vim: set tabstop=4 : */