i18n.testsuite.conf 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. ; Test Internationalisation of SayNumber()
  2. ; #include this into a suitable context
  3. ; English
  4. exten => 841,1,Answer
  5. exten => 841,n,Wait(1) ; Allow VoIP sessions time to initialise
  6. exten => 841,n,Set(CHANNEL(language)=en)
  7. exten => 841,n,SayNumber(183) ; one hundred eighty three (NB UK English would say one hundred & eighty three)
  8. exten => 841,n,Wait(1)
  9. exten => 841,n,SayUnixTime() ; Say current date & time in "ABdY 'digits/at' IMp" format
  10. ; French
  11. exten => 842,1,Answer
  12. exten => 842,n,Wait(1) ; Allow VoIP sessions time to initialise
  13. exten => 842,n,Set(CHANNEL(language)=fr)
  14. exten => 842,n,SayNumber(1) ; one
  15. exten => 842,n,Wait(1)
  16. exten => 842,n,SayNumber(1,f) ; one (feminine)
  17. exten => 842,n,Wait(1)
  18. exten => 842,n,SayNumber(181) ; hundred eighty one
  19. exten => 842,n,Wait(1)
  20. exten => 842,n,SayNumber(281) ; two hundred eighty one
  21. exten => 842,n,Wait(1)
  22. exten => 842,n,SayNumber(1061) ; thousand sixty one
  23. exten => 842,n,Wait(1)
  24. exten => 842,n,SayNumber(2061) ; two thousand sixty one
  25. exten => 842,n,Wait(1)
  26. exten => 842,n,SayUnixTime()
  27. ; Spanish
  28. exten => 843,1,Answer
  29. exten => 843,n,Wait(1) ; Allow VoIP sessions time to initialise
  30. exten => 843,n,Set(CHANNEL(language)=es)
  31. exten => 843,n,Playback(digits/hundred)
  32. exten => 843,n,Wait(1)
  33. exten => 843,n,SayNumber(1) ; one
  34. exten => 843,n,Wait(1)
  35. exten => 843,n,SayNumber(1,f) ; one (feminine)
  36. exten => 843,n,Wait(1)
  37. exten => 843,n,SayNumber(11) ; "dieci uno"
  38. exten => 843,n,Wait(1)
  39. exten => 843,n,SayNumber(21) ; "veinti uno"
  40. exten => 843,n,Wait(1)
  41. exten => 843,n,SayNumber(31) ; "thirty & one"
  42. exten => 843,n,Wait(1)
  43. exten => 843,n,SayNumber(100) ; "cien"
  44. exten => 843,n,Wait(1)
  45. exten => 843,n,SayNumber(101) ; "ciento uno"
  46. exten => 843,n,Wait(1)
  47. exten => 843,n,SayNumber(200) ; "twohundred"
  48. exten => 843,n,Wait(1)
  49. exten => 843,n,SayNumber(1000000) ; one million
  50. exten => 843,n,Wait(1)
  51. exten => 843,n,SayNumber(2000000) ; two millions
  52. exten => 843,n,Wait(1)
  53. exten => 843,n,SayUnixTime()
  54. ; Portuguese
  55. exten => 844,1,Answer
  56. exten => 844,n,Wait(1) ; Allow VoIP sessions time to initialise
  57. exten => 844,n,Set(CHANNEL(language)=pt)
  58. exten => 844,n,SayNumber(1) ; one
  59. exten => 844,n,Wait(1)
  60. exten => 844,n,SayNumber(1,f) ; one (feminine)
  61. exten => 844,n,Wait(1)
  62. exten => 844,n,SayNumber(2) ; two
  63. exten => 844,n,Wait(1)
  64. exten => 844,n,SayNumber(2,f) ; two (feminine)
  65. exten => 844,n,Wait(1)
  66. exten => 844,n,SayNumber(183) ; hundred& eighty three
  67. exten => 844,n,Wait(1)
  68. exten => 844,n,SayUnixTime()
  69. ; Italian
  70. exten => 845,1,Answer
  71. exten => 845,n,Wait(1) ; Allow VoIP sessions time to initialise
  72. exten => 845,n,Set(CHANNEL(language)=it)
  73. exten => 845,n,SayNumber(21) ; "twentyone"
  74. exten => 845,n,Wait(1)
  75. exten => 845,n,SayNumber(183) ; hundred eighty three
  76. exten => 845,n,Wait(1)
  77. exten => 845,n,SayNumber(283) ; two hundred eighty three
  78. exten => 845,n,SayNumber(1063) ; thousand sixty three
  79. exten => 845,n,Wait(1)
  80. exten => 845,n,SayNumber(2063) ; two thousands sixty three
  81. exten => 845,n,Wait(1)
  82. exten => 845,n,SayUnixTime()
  83. ; Dutch
  84. exten => 846,1,Answer
  85. exten => 846,n,Wait(1) ; Allow VoIP sessions time to initialise
  86. exten => 846,n,Set(CHANNEL(language)=nl)
  87. exten => 846,n,SayUnixTime(||ABdY'digits/at'R)
  88. exten => 846,n,Wait(1)
  89. ; Danish
  90. exten => 847,1,Answer
  91. exten => 847,n,Wait(1) ; Allow VoIP sessions time to initialise
  92. exten => 847,n,Set(CHANNEL(language)=da)
  93. exten => 847,n,SayNumber(68) ; eight-& sixty
  94. exten => 847,n,Wait(1)
  95. exten => 847,n,SayNumber(2034) ; two thousand & four-& thirty
  96. exten => 847,n,Wait(1)
  97. exten => 847,n,SayNumber(1000000) ; one million
  98. exten => 847,n,Wait(1)
  99. exten => 847,n,SayNumber(2000000) ; two millions
  100. exten => 847,n,Wait(1)
  101. exten => 847,n,SayUnixTime()
  102. ; German
  103. exten => 848,1,Answer
  104. exten => 848,n,Wait(1) ; Allow VoIP sessions time to initialise
  105. exten => 848,n,Set(CHANNEL(language)=de)
  106. exten => 848,n,SayNumber(68) ; eight-& sixty
  107. exten => 848,n,Wait(1)
  108. exten => 848,n,SayNumber(100) ; "hundert"
  109. exten => 848,n,Wait(1)
  110. exten => 848,n,SayNumber(101) ; "einhundert-einS"
  111. exten => 848,n,Wait(1)
  112. exten => 848,n,SayNumber(1000) ; "tausend"
  113. exten => 848,n,Wait(1)
  114. exten => 848,n,SayNumber(1001) ; "eintausend-einS" X tausend-einS
  115. exten => 848,n,Wait(1)
  116. exten => 848,n,SayNumber(2134) ; two thousand one hundred four-& thirty
  117. exten => 848,n,Wait(1)
  118. exten => 848,n,SayNumber(1001000) ; one million one thousand X million tausend
  119. exten => 848,n,Wait(1)
  120. exten => 848,n,SayNumber(2002000) ; two millions two thousand
  121. exten => 848,n,Wait(1)
  122. exten => 848,n,SayUnixTime()
  123. ; Swedish
  124. exten => 849,1,Answer
  125. exten => 849,n,Wait(1) ; Allow VoIP sessions time to initialise
  126. exten => 849,n,Set(CHANNEL(language)=se)
  127. exten => 849,n,SayUnixTime()
  128. exten => 849,n,Wait(1)
  129. ; Temp
  130. exten => 850,1,Answer
  131. exten => 850,n,Wait(1) ; Allow VoIP sessions time to initialise
  132. exten => 850,n,Set(CHANNEL(language)=de)
  133. exten => 850,n,Playback(digits/1)
  134. exten => 850,n,Wait(1)
  135. exten => 850,n,Playback(digits/de-eins)
  136. exten => 850,n,Wait(1)
  137. ; Chinese
  138. exten => 851,1,Answer
  139. exten => 851,n,Wait(1) ; Allow VoIP sessions time to initialise
  140. exten => 851,n,Set(CHANNEL(language)=zh)
  141. exten => 851,n,SayNumber(10) ; "shi"
  142. exten => 851,n,Wait(1)
  143. exten => 851,n,SayNumber(11) ; "shi yi"
  144. exten => 851,n,Wait(1)
  145. exten => 851,n,SayNumber(20) ; "er shi"
  146. exten => 851,n,Wait(1)
  147. exten => 851,n,SayNumber(21) ; "er shi yi"
  148. exten => 851,n,Wait(1)
  149. exten => 851,n,SayNumber(100) ; "yi bai"
  150. exten => 851,n,Wait(1)
  151. exten => 851,n,SayNumber(101) ; "yi bai ling yi"
  152. exten => 851,n,Wait(1)
  153. exten => 851,n,SayNumber(110) ; "yi bai yi shi"
  154. exten => 851,n,Wait(1)
  155. exten => 851,n,SayNumber(111) ; "yi bai yi shi yi"
  156. exten => 851,n,Wait(1)
  157. exten => 851,n,SayNumber(120) ; "yi bai er shi"
  158. exten => 851,n,Wait(1)
  159. exten => 851,n,SayNumber(200) ; "liang bai"
  160. exten => 851,n,Wait(1)
  161. exten => 851,n,SayNumber(222) ; "liang bai er shi er"
  162. exten => 851,n,Wait(1)
  163. exten => 851,n,SayNumber(1000) ; "yi qian"
  164. exten => 851,n,Wait(1)
  165. exten => 851,n,SayNumber(1001) ; "yi qian ling yi"
  166. exten => 851,n,Wait(1)
  167. exten => 851,n,SayNumber(1101) ; "yi qian yi bai ling yi"
  168. exten => 851,n,Wait(1)
  169. exten => 851,n,SayNumber(1200) ; "yi qian liang bai"
  170. exten => 851,n,Wait(1)
  171. exten => 851,n,SayNumber(10000) ; "yi wan"
  172. exten => 851,n,Wait(1)
  173. exten => 851,n,SayNumber(10001) ; "yi wan ling yi"
  174. exten => 851,n,Wait(1)
  175. exten => 851,n,SayNumber(10101) ; "yi wan ling yi bai ling yi"
  176. exten => 851,n,Wait(1)
  177. exten => 851,n,SayNumber(22222) ; "liang wan liang qian liang bai er shi er"
  178. exten => 851,n,Wait(1)
  179. exten => 851,n,SayNumber(1000000) ; "yi bai wan"
  180. exten => 851,n,Wait(1)
  181. exten => 851,n,SayNumber(10000000) ; "yi qian wan"
  182. exten => 851,n,Wait(1)
  183. exten => 851,n,SayNumber(100000000) ; "yi yi"
  184. exten => 851,n,Wait(1)
  185. exten => 851,n,SayUnixTime()