messages.gotext.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {
  2. "language": "de",
  3. "messages": [
  4. {
  5. "id": "Hello world!",
  6. "key": "Hello world!\n",
  7. "message": "Hello world!",
  8. "translation": "Hallo Welt!",
  9. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
  10. },
  11. {
  12. "id": "Hello {City}!",
  13. "key": "Hello %s!\n",
  14. "message": "Hello {City}!",
  15. "translation": "Hallo {City}!",
  16. "placeholders": [
  17. {
  18. "id": "City",
  19. "string": "%[1]s",
  20. "type": "string",
  21. "underlyingType": "string",
  22. "argNum": 1,
  23. "expr": "city"
  24. }
  25. ],
  26. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:31:10"
  27. },
  28. {
  29. "id": "Hello {Town}!",
  30. "key": "Hello %s!\n",
  31. "message": "Hello {Town}!",
  32. "translation": "Hallo {Town}!",
  33. "placeholders": [
  34. {
  35. "id": "Town",
  36. "string": "%[1]s",
  37. "type": "string",
  38. "underlyingType": "string",
  39. "argNum": 1,
  40. "expr": "town",
  41. "comment": "Town"
  42. }
  43. ],
  44. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:35:10"
  45. },
  46. {
  47. "id": "{Person} is visiting {Place}!",
  48. "key": "%s is visiting %s!\n",
  49. "message": "{Person} is visiting {Place}!",
  50. "translation": "{Person} besucht {Place}!",
  51. "placeholders": [
  52. {
  53. "id": "Person",
  54. "string": "%[1]s",
  55. "type": "string",
  56. "underlyingType": "string",
  57. "argNum": 1,
  58. "expr": "person",
  59. "comment": "The person of matter."
  60. },
  61. {
  62. "id": "Place",
  63. "string": "%[2]s",
  64. "type": "string",
  65. "underlyingType": "string",
  66. "argNum": 2,
  67. "expr": "place",
  68. "comment": "Place the person is visiting."
  69. }
  70. ],
  71. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:40:10"
  72. },
  73. {
  74. "id": "{Person} is visiting {Place}!",
  75. "key": "%[1]s is visiting %[3]s!\n",
  76. "message": "{Person} is visiting {Place}!",
  77. "translation": "{Person} besucht {Place}!",
  78. "comment": "Person visiting a place.",
  79. "placeholders": [
  80. {
  81. "id": "Person",
  82. "string": "%[1]s",
  83. "type": "string",
  84. "underlyingType": "string",
  85. "argNum": 1,
  86. "expr": "pp.Person"
  87. },
  88. {
  89. "id": "Place",
  90. "string": "%[3]s",
  91. "type": "string",
  92. "underlyingType": "string",
  93. "argNum": 3,
  94. "expr": "pp.Place",
  95. "comment": "Place the person is visiting."
  96. },
  97. {
  98. "id": "Extra",
  99. "string": "%[2]v",
  100. "type": "int",
  101. "underlyingType": "int",
  102. "argNum": 2,
  103. "expr": "pp.extra"
  104. }
  105. ],
  106. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:55:10"
  107. },
  108. {
  109. "id": "{N} more files remaining!",
  110. "key": "%d more files remaining!",
  111. "message": "{N} more files remaining!",
  112. "translation": "Noch {N} Bestände zu gehen!",
  113. "placeholders": [
  114. {
  115. "id": "N",
  116. "string": "%[1]d",
  117. "type": "int",
  118. "underlyingType": "int",
  119. "argNum": 1,
  120. "expr": "n"
  121. }
  122. ],
  123. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:67:10"
  124. },
  125. {
  126. "id": "Use the following code for your discount: {ReferralCode}",
  127. "key": "Use the following code for your discount: %d\n",
  128. "message": "Use the following code for your discount: {ReferralCode}",
  129. "translation": "",
  130. "placeholders": [
  131. {
  132. "id": "ReferralCode",
  133. "string": "%[1]d",
  134. "type": "golang.org/x/text/cmd/gotext/examples/extract.referralCode",
  135. "underlyingType": "int",
  136. "argNum": 1,
  137. "expr": "c"
  138. }
  139. ],
  140. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:73:10"
  141. },
  142. {
  143. "id": [ "msgOutOfOrder", "{Device} is out of order!" ],
  144. "key": "%s is out of order!",
  145. "message": "{Device} is out of order!",
  146. "translation": "",
  147. "comment": "FOO\n",
  148. "placeholders": [
  149. {
  150. "id": "Device",
  151. "string": "%[1]s",
  152. "type": "string",
  153. "underlyingType": "string",
  154. "argNum": 1,
  155. "expr": "device"
  156. }
  157. ],
  158. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:81:10"
  159. },
  160. {
  161. "id": "{Miles} miles traveled ({Miles_1})",
  162. "key": "%.2[1]f miles traveled (%[1]f)",
  163. "message": "{Miles} miles traveled ({Miles_1})",
  164. "translation": "",
  165. "placeholders": [
  166. {
  167. "id": "Miles",
  168. "string": "%.2[1]f",
  169. "type": "float64",
  170. "underlyingType": "float64",
  171. "argNum": 1,
  172. "expr": "miles"
  173. },
  174. {
  175. "id": "Miles_1",
  176. "string": "%[1]f",
  177. "type": "float64",
  178. "underlyingType": "float64",
  179. "argNum": 1,
  180. "expr": "miles"
  181. }
  182. ],
  183. "position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:85:10"
  184. }
  185. ]
  186. }