i18n.testsuite.conf 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. ; Test Internationalisation of SayNumber()
  2. ; #include this into a suitable context
  3. ; English
  4. exten => 841,1,Answer
  5. exten => 841,2,Wait,1 ; Allow VoIP sessions time to initialise
  6. exten => 841,3,SetLanguage(en)
  7. exten => 841,4,SayNumber(183) ; one hundred eighty three (NB UK English would say one hundred & eighty three)
  8. exten => 841,5,Wait,1
  9. exten => 841,6,SayUnixTime() ; Say current date & time in "ABdY 'digits/at' IMp" format
  10. ; French
  11. exten => 842,1,Answer
  12. exten => 842,2,Wait,1 ; Allow VoIP sessions time to initialise
  13. exten => 842,3,SetLanguage(fr)
  14. exten => 842,4,SayNumber(1) ; one
  15. exten => 842,5,Wait,1
  16. exten => 842,6,SayNumber(1,f) ; one (feminine)
  17. exten => 842,7,Wait,1
  18. exten => 842,8,SayNumber(181) ; hundred eighty three
  19. exten => 842,9,Wait,1
  20. exten => 842,10,SayNumber(281) ; two hundred eighty three
  21. exten => 842,11,Wait,1
  22. exten => 842,12,SayNumber(1061) ; thousand sixty three
  23. exten => 842,13,Wait,1
  24. exten => 842,14,SayNumber(2061) ; two thousand sixty three
  25. exten => 842,15,Wait,1
  26. exten => 842,16,SayUnixTime()
  27. ; Spanish
  28. exten => 843,1,Answer
  29. exten => 843,2,Wait,1 ; Allow VoIP sessions time to initialise
  30. exten => 843,3,SetLanguage(es)
  31. exten => 843,4,Playback(digits/hundred)
  32. exten => 843,5,Wait,1
  33. exten => 843,6,SayNumber(1) ; one
  34. exten => 843,7,Wait,1
  35. exten => 843,8,SayNumber(1,f) ; one (feminine)
  36. exten => 843,9,Wait,1
  37. exten => 843,10,SayNumber(11) ; "dieci uno"
  38. exten => 843,11,Wait,1
  39. exten => 843,12,SayNumber(21) ; "veinti uno"
  40. exten => 843,13,Wait,1
  41. exten => 843,14,SayNumber(31) ; "thirty & one"
  42. exten => 843,15,Wait,1
  43. exten => 843,16,SayNumber(100) ; "cien"
  44. exten => 843,17,Wait,1
  45. exten => 843,18,SayNumber(101) ; "ciento uno"
  46. exten => 843,19,Wait,1
  47. exten => 843,20,SayNumber(200) ; "twohundred"
  48. exten => 843,21,Wait,1
  49. exten => 843,22,SayNumber(1000000) ; one million
  50. exten => 843,23,Wait,1
  51. exten => 843,24,SayNumber(2000000) ; two millions
  52. exten => 843,25,Wait,1
  53. exten => 843,26,SayUnixTime()
  54. ; Portuguese
  55. exten => 844,1,Answer
  56. exten => 844,2,Wait,1 ; Allow VoIP sessions time to initialise
  57. exten => 844,3,SetLanguage(pt)
  58. exten => 844,4,SayNumber(1) ; one
  59. exten => 844,5,Wait,1
  60. exten => 844,6,SayNumber(1,f) ; one (feminine)
  61. exten => 844,7,Wait,1
  62. exten => 844,8,SayNumber(2) ; two
  63. exten => 844,9,Wait,1
  64. exten => 844,10,SayNumber(2,f) ; two (feminine)
  65. exten => 844,11,Wait,1
  66. exten => 844,12,SayNumber(183) ; hundred& eighty three
  67. exten => 844,13,Wait,1
  68. exten => 844,14,SayUnixTime()
  69. ; Italian
  70. exten => 845,1,Answer
  71. exten => 845,2,Wait,1 ; Allow VoIP sessions time to initialise
  72. exten => 845,3,SetLanguage(it)
  73. exten => 845,4,SayNumber(21) ; "twentyone"
  74. exten => 845,5,Wait,1
  75. exten => 845,6,SayNumber(183) ; hundred eighty three
  76. exten => 845,7,Wait,1
  77. exten => 845,8,SayNumber(283) ; two hundred eighty three
  78. exten => 845,9,SayNumber(1063) ; thousand sixty three
  79. exten => 845,10,Wait,1
  80. exten => 845,11,SayNumber(2063) ; two thousands sixty three
  81. exten => 845,12,Wait,1
  82. exten => 845,13,SayUnixTime()
  83. ; Dutch
  84. exten => 846,1,Answer
  85. exten => 846,2,Wait,1 ; Allow VoIP sessions time to initialise
  86. exten => 846,3,SetLanguage(nl)
  87. exten => 846,4,SayUnixTime(||ABdY'digits/at'R)
  88. exten => 846,5,Wait,1
  89. ; Danish
  90. exten => 847,1,Answer
  91. exten => 847,2,Wait,1 ; Allow VoIP sessions time to initialise
  92. exten => 847,3,SetLanguage(da)
  93. exten => 847,4,SayNumber(68) ; eight-& sixty
  94. exten => 847,5,Wait,1
  95. exten => 847,6,SayNumber(2034) ; two thousand & four-& thirty
  96. exten => 847,7,Wait,1
  97. exten => 847,8,SayNumber(1000000) ; one million
  98. exten => 847,9,Wait,1
  99. exten => 847,10,SayNumber(2000000) ; two millions
  100. exten => 847,11,Wait,1
  101. exten => 847,12,SayUnixTime()
  102. ; German
  103. exten => 848,1,Answer
  104. exten => 848,2,Wait,1 ; Allow VoIP sessions time to initialise
  105. exten => 848,3,SetLanguage(de)
  106. exten => 848,4,SayNumber(68) ; eight-& sixty
  107. exten => 848,5,Wait,1
  108. exten => 848,6,SayNumber(100) ; "hundert"
  109. exten => 848,7,Wait,1
  110. exten => 848,8,SayNumber(101) ; "einhundert-einS"
  111. exten => 848,9,Wait,1
  112. exten => 848,10,SayNumber(1000) ; "tausend"
  113. exten => 848,11,Wait,1
  114. exten => 848,12,SayNumber(1001) ; "eintausend-einS" X tausend-einS
  115. exten => 848,13,Wait,1
  116. exten => 848,14,SayNumber(2134) ; two thousand one hundred four-& thirty
  117. exten => 848,15,Wait,1
  118. exten => 848,16,SayNumber(1001000) ; one million one thousand X million tausend
  119. exten => 848,17,Wait,1
  120. exten => 848,18,SayNumber(2002000) ; two millions two thousand
  121. exten => 848,19,Wait,1
  122. exten => 848,20,SayUnixTime()
  123. ; Swedish
  124. exten => 849,1,Answer
  125. exten => 849,2,Wait,1 ; Allow VoIP sessions time to initialise
  126. exten => 849,3,SetLanguage(se)
  127. exten => 849,4,SayUnixTime()
  128. exten => 849,5,Wait,1
  129. ; Temp
  130. exten => 850,1,Answer
  131. exten => 850,2,Wait,1 ; Allow VoIP sessions time to initialise
  132. exten => 850,3,SetLanguage(de)
  133. exten => 850,4,Playback(digits/1)
  134. exten => 850,5,Wait,1
  135. exten => 850,6,Playback(digits/de-eins)
  136. exten => 850,7,Wait,1