gettext 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (356) hide show
  1. data/ChangeLog +139 -0
  2. data/NEWS +31 -0
  3. data/README +31 -15
  4. data/Rakefile +3 -30
  5. data/bin/rgettext +1 -1
  6. data/bin/rmsgfmt +1 -1
  7. data/bin/rmsgmerge +1 -1
  8. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  15. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  16. data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
  17. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  26. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  27. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  28. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  29. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  30. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  31. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  32. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  33. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  34. data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
  35. data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
  36. data/lib/gettext.rb +50 -23
  37. data/lib/gettext/active_record.rb +275 -0
  38. data/lib/gettext/container.rb +0 -4
  39. data/lib/gettext/locale.rb +9 -2
  40. data/lib/gettext/locale_cgi.rb +5 -4
  41. data/lib/gettext/locale_object.rb +5 -4
  42. data/lib/gettext/parser/{activerecord.rb → active_record.rb} +31 -14
  43. data/lib/gettext/parser/ruby.rb +48 -44
  44. data/lib/gettext/poparser.rb +3 -3
  45. data/lib/gettext/rails.rb +111 -253
  46. data/lib/gettext/rgettext.rb +34 -6
  47. data/lib/gettext/string.rb +3 -2
  48. data/lib/gettext/textdomain.rb +3 -3
  49. data/lib/gettext/version.rb +1 -1
  50. data/pkg/ruby-gettext-package-1.8.0/ext/gettext/extconf.rb +20 -0
  51. data/po/cs/rails.po +61 -61
  52. data/po/cs/rgettext.po +37 -55
  53. data/po/de/rails.po +73 -72
  54. data/po/de/rgettext.po +39 -56
  55. data/po/el/rails.po +60 -60
  56. data/po/el/rgettext.po +26 -44
  57. data/po/es/rails.po +60 -60
  58. data/po/es/rgettext.po +28 -52
  59. data/po/et/rails.po +118 -0
  60. data/po/fr/rails.po +60 -60
  61. data/po/fr/rgettext.po +26 -46
  62. data/po/it/rails.po +68 -68
  63. data/po/it/rgettext.po +35 -53
  64. data/po/ja/rails.po +62 -61
  65. data/po/ja/rgettext.po +27 -45
  66. data/po/ko/rails.po +61 -60
  67. data/po/ko/rgettext.po +34 -54
  68. data/po/nl/rails.po +59 -60
  69. data/po/nl/rgettext.po +35 -55
  70. data/po/pt_BR/rails.po +74 -73
  71. data/po/pt_BR/rgettext.po +36 -52
  72. data/po/rails.pot +61 -61
  73. data/po/rgettext.pot +25 -43
  74. data/po/ru/rails.po +61 -62
  75. data/po/ru/rgettext.po +26 -51
  76. data/po/sv/rgettext.po +27 -44
  77. data/po/zh/rails.po +62 -60
  78. data/po/zh/rgettext.po +28 -47
  79. data/po/zh_TW/rails.po +114 -0
  80. data/po/zh_TW/rgettext.po +121 -0
  81. data/samples/cgi/locale/zh_TW/LC_MESSAGES/helloerb1.mo +0 -0
  82. data/samples/cgi/locale/zh_TW/LC_MESSAGES/helloerb2.mo +0 -0
  83. data/samples/cgi/locale/zh_TW/LC_MESSAGES/hellolib.mo +0 -0
  84. data/samples/cgi/locale/zh_TW/LC_MESSAGES/main.mo +0 -0
  85. data/samples/cgi/po/zh_TW/helloerb1.po +67 -0
  86. data/samples/cgi/po/zh_TW/helloerb2.po +54 -0
  87. data/samples/cgi/po/zh_TW/hellolib.po +26 -0
  88. data/samples/cgi/po/zh_TW/main.po +79 -0
  89. data/samples/locale/zh_TW/LC_MESSAGES/hello.mo +0 -0
  90. data/samples/locale/zh_TW/LC_MESSAGES/hello2.mo +0 -0
  91. data/samples/locale/zh_TW/LC_MESSAGES/hello_noop.mo +0 -0
  92. data/samples/locale/zh_TW/LC_MESSAGES/hello_plural.mo +0 -0
  93. data/samples/locale/zh_TW/LC_MESSAGES/helloglade2.mo +0 -0
  94. data/samples/locale/zh_TW/LC_MESSAGES/hellogtk.mo +0 -0
  95. data/samples/locale/zh_TW/LC_MESSAGES/hellotk.mo +0 -0
  96. data/samples/po/hellogtk.pot +1 -1
  97. data/samples/po/zh_TW/hello.po +26 -0
  98. data/samples/po/zh_TW/hello2.po +34 -0
  99. data/samples/po/zh_TW/hello_noop.po +30 -0
  100. data/samples/po/zh_TW/hello_plural.po +28 -0
  101. data/samples/po/zh_TW/helloglade2.po +40 -0
  102. data/samples/po/zh_TW/hellogtk.po +25 -0
  103. data/samples/po/zh_TW/hellotk.po +26 -0
  104. data/samples/rails/README +8 -11
  105. data/samples/rails/app/controllers/application.rb +6 -9
  106. data/samples/rails/app/views/layouts/blog.rhtml +1 -1
  107. data/samples/rails/config/database.yml +1 -1
  108. data/samples/rails/config/environment.rb +1 -0
  109. data/samples/rails/db/schema.rb +90 -0
  110. data/samples/rails/lib/tasks/gettext.rake +1 -1
  111. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  112. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  113. data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
  114. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  115. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  116. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  117. data/samples/rails/locale/it/LC_MESSAGES/blog.mo +0 -0
  118. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  119. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  120. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  121. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  122. data/samples/rails/locale/ru/LC_MESSAGES/blog.mo +0 -0
  123. data/samples/rails/locale/zh/LC_MESSAGES/blog.mo +0 -0
  124. data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
  125. data/samples/rails/po/blog.pot +106 -110
  126. data/samples/rails/po/cs/blog.po +110 -115
  127. data/samples/rails/po/de/blog.po +107 -112
  128. data/samples/rails/po/el/blog.po +105 -109
  129. data/samples/rails/po/en/blog.po +107 -111
  130. data/samples/rails/po/es/blog.po +105 -110
  131. data/samples/rails/po/fr/blog.po +105 -109
  132. data/samples/rails/po/it/blog.po +105 -109
  133. data/samples/rails/po/ja/blog.po +105 -109
  134. data/samples/rails/po/ko/blog.po +105 -109
  135. data/samples/rails/po/nl/blog.po +105 -110
  136. data/samples/rails/po/pt_BR/blog.po +105 -109
  137. data/samples/rails/po/ru/blog.po +105 -107
  138. data/samples/rails/po/zh/blog.po +105 -109
  139. data/samples/rails/po/zh_TW/blog.po +107 -0
  140. data/samples/rails/vendor/plugins/gettext/locale/zh_TW/LC_MESSAGES/gettext_plugin.mo +0 -0
  141. data/samples/rails/vendor/plugins/gettext/po/zh_TW/gettext_plugin.po +30 -0
  142. data/test/Rakefile +44 -0
  143. data/test/fixtures/developer.rb +5 -0
  144. data/test/fixtures/developers.yml +21 -0
  145. data/test/fixtures/reply.rb +40 -0
  146. data/test/fixtures/topic.rb +23 -0
  147. data/test/fixtures/topics.yml +22 -0
  148. data/test/gettext_test.rb +2 -2
  149. data/test/gettext_test_active_record.rb +1479 -0
  150. data/test/gettext_test_rails.rb +2 -0
  151. data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
  152. data/test/po/active_record.pot +295 -0
  153. data/test/po/ja/active_record.po +294 -0
  154. data/test/test.sh +1 -0
  155. data/test/test_rubyparser.rb +10 -2
  156. metadata +68 -236
  157. data/doc/classes/ActionController/Base.html +0 -169
  158. data/doc/classes/ActionController/Base.src/M000014.html +0 -37
  159. data/doc/classes/ActionController/Base.src/M000015.html +0 -30
  160. data/doc/classes/ActiveRecord/Base.html +0 -210
  161. data/doc/classes/ActiveRecord/Base.src/M000114.html +0 -30
  162. data/doc/classes/ActiveRecord/Base.src/M000115.html +0 -30
  163. data/doc/classes/ActiveRecord/Base.src/M000116.html +0 -30
  164. data/doc/classes/ActiveRecord/Base.src/M000117.html +0 -30
  165. data/doc/classes/ActiveRecord/Base.src/M000118.html +0 -37
  166. data/doc/classes/ActiveRecord/Base.src/M000119.html +0 -30
  167. data/doc/classes/ActiveRecord/Base.src/M000120.html +0 -30
  168. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +0 -117
  169. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.src/M000113.html +0 -30
  170. data/doc/classes/ActiveRecord/Migration.html +0 -96
  171. data/doc/classes/GetText.html +0 -863
  172. data/doc/classes/GetText.src/M000017.html +0 -30
  173. data/doc/classes/GetText.src/M000018.html +0 -31
  174. data/doc/classes/GetText.src/M000019.html +0 -46
  175. data/doc/classes/GetText.src/M000020.html +0 -42
  176. data/doc/classes/GetText.src/M000021.html +0 -32
  177. data/doc/classes/GetText.src/M000022.html +0 -30
  178. data/doc/classes/GetText.src/M000023.html +0 -30
  179. data/doc/classes/GetText.src/M000024.html +0 -31
  180. data/doc/classes/GetText.src/M000025.html +0 -30
  181. data/doc/classes/GetText.src/M000026.html +0 -49
  182. data/doc/classes/GetText.src/M000027.html +0 -38
  183. data/doc/classes/GetText.src/M000028.html +0 -35
  184. data/doc/classes/GetText.src/M000029.html +0 -44
  185. data/doc/classes/GetText.src/M000030.html +0 -30
  186. data/doc/classes/GetText.src/M000031.html +0 -30
  187. data/doc/classes/GetText.src/M000032.html +0 -36
  188. data/doc/classes/GetText.src/M000033.html +0 -53
  189. data/doc/classes/GetText.src/M000034.html +0 -46
  190. data/doc/classes/GetText.src/M000035.html +0 -31
  191. data/doc/classes/GetText.src/M000036.html +0 -31
  192. data/doc/classes/GetText.src/M000037.html +0 -30
  193. data/doc/classes/GetText.src/M000038.html +0 -30
  194. data/doc/classes/GetText.src/M000039.html +0 -30
  195. data/doc/classes/GetText.src/M000040.html +0 -30
  196. data/doc/classes/GetText.src/M000041.html +0 -48
  197. data/doc/classes/GetText.src/M000042.html +0 -18
  198. data/doc/classes/GetText.src/M000043.html +0 -34
  199. data/doc/classes/GetText.src/M000044.html +0 -30
  200. data/doc/classes/GetText.src/M000045.html +0 -20
  201. data/doc/classes/GetText/ActiveRecordParser.html +0 -148
  202. data/doc/classes/GetText/ActiveRecordParser.src/M000048.html +0 -35
  203. data/doc/classes/GetText/ActiveRecordParser.src/M000049.html +0 -30
  204. data/doc/classes/GetText/ErbContainer.html +0 -161
  205. data/doc/classes/GetText/ErbContainer.src/M000046.html +0 -31
  206. data/doc/classes/GetText/ErbContainer.src/M000047.html +0 -30
  207. data/doc/classes/GetText/ErbParser.html +0 -113
  208. data/doc/classes/GetText/ErbParser.src/M000051.html +0 -32
  209. data/doc/classes/GetText/GetText.html +0 -89
  210. data/doc/classes/GetText/GetText/Container.html +0 -95
  211. data/doc/classes/GetText/GladeParser.html +0 -109
  212. data/doc/classes/GetText/NoboundTextDomainError.html +0 -98
  213. data/doc/classes/GetText/PoParser.html +0 -121
  214. data/doc/classes/GetText/PoParser.src/M000068.html +0 -30
  215. data/doc/classes/GetText/Rails.html +0 -172
  216. data/doc/classes/GetText/Rails.src/M000050.html +0 -43
  217. data/doc/classes/GetText/RubyParser.html +0 -99
  218. data/doc/classes/GetText/TextDomain.html +0 -345
  219. data/doc/classes/GetText/TextDomain.src/M000052.html +0 -30
  220. data/doc/classes/GetText/TextDomain.src/M000053.html +0 -30
  221. data/doc/classes/GetText/TextDomain.src/M000054.html +0 -30
  222. data/doc/classes/GetText/TextDomain.src/M000055.html +0 -58
  223. data/doc/classes/GetText/TextDomain.src/M000056.html +0 -32
  224. data/doc/classes/GetText/TextDomain.src/M000057.html +0 -35
  225. data/doc/classes/GetText/TextDomain.src/M000058.html +0 -49
  226. data/doc/classes/GetText/TextDomain.src/M000059.html +0 -30
  227. data/doc/classes/GetText/TextDomain.src/M000060.html +0 -18
  228. data/doc/classes/GetText/TextDomain.src/M000061.html +0 -18
  229. data/doc/classes/GetText/TextDomain.src/M000062.html +0 -18
  230. data/doc/classes/GetText/TextDomain.src/M000063.html +0 -46
  231. data/doc/classes/GetText/TextDomain.src/M000064.html +0 -20
  232. data/doc/classes/GetText/TextDomain.src/M000065.html +0 -23
  233. data/doc/classes/GetText/TextDomain.src/M000066.html +0 -37
  234. data/doc/classes/GetText/TextDomain.src/M000067.html +0 -18
  235. data/doc/classes/GetText/TextDomainManager.html +0 -253
  236. data/doc/classes/GetText/TextDomainManager.src/M000052.html +0 -18
  237. data/doc/classes/GetText/TextDomainManager.src/M000053.html +0 -18
  238. data/doc/classes/GetText/TextDomainManager.src/M000054.html +0 -20
  239. data/doc/classes/GetText/TextDomainManager.src/M000055.html +0 -18
  240. data/doc/classes/GetText/TextDomainManager.src/M000056.html +0 -20
  241. data/doc/classes/GetText/TextDomainManager.src/M000057.html +0 -31
  242. data/doc/classes/GetText/TextDomainManager.src/M000058.html +0 -21
  243. data/doc/classes/GetText/TextDomainManager.src/M000059.html +0 -24
  244. data/doc/classes/GetText/TextDomainManager.src/M000060.html +0 -30
  245. data/doc/classes/GetText/TextDomainManager.src/M000061.html +0 -30
  246. data/doc/classes/GetText/TextDomainManager.src/M000062.html +0 -32
  247. data/doc/classes/GetText/TextDomainManager.src/M000063.html +0 -30
  248. data/doc/classes/GetText/TextDomainManager.src/M000064.html +0 -32
  249. data/doc/classes/GetText/TextDomainManager.src/M000065.html +0 -43
  250. data/doc/classes/GetText/TextDomainManager.src/M000066.html +0 -33
  251. data/doc/classes/GetText/TextDomainManager.src/M000067.html +0 -36
  252. data/doc/classes/Iconv.html +0 -140
  253. data/doc/classes/Iconv.src/M000016.html +0 -41
  254. data/doc/classes/Iconv/Failure.html +0 -86
  255. data/doc/classes/Iconv/IllegalSequence.html +0 -96
  256. data/doc/classes/Iconv/InvalidCharacter.html +0 -96
  257. data/doc/classes/Iconv/InvalidEncoding.html +0 -96
  258. data/doc/classes/Locale.html +0 -648
  259. data/doc/classes/Locale.src/M000069.html +0 -32
  260. data/doc/classes/Locale.src/M000070.html +0 -31
  261. data/doc/classes/Locale.src/M000071.html +0 -30
  262. data/doc/classes/Locale.src/M000072.html +0 -34
  263. data/doc/classes/Locale.src/M000073.html +0 -31
  264. data/doc/classes/Locale.src/M000074.html +0 -30
  265. data/doc/classes/Locale.src/M000075.html +0 -30
  266. data/doc/classes/Locale.src/M000076.html +0 -31
  267. data/doc/classes/Locale.src/M000077.html +0 -40
  268. data/doc/classes/Locale.src/M000078.html +0 -31
  269. data/doc/classes/Locale.src/M000079.html +0 -46
  270. data/doc/classes/Locale.src/M000080.html +0 -32
  271. data/doc/classes/Locale.src/M000081.html +0 -31
  272. data/doc/classes/Locale.src/M000082.html +0 -30
  273. data/doc/classes/Locale.src/M000083.html +0 -30
  274. data/doc/classes/Locale.src/M000084.html +0 -30
  275. data/doc/classes/Locale.src/M000085.html +0 -32
  276. data/doc/classes/Locale.src/M000086.html +0 -31
  277. data/doc/classes/Locale.src/M000087.html +0 -31
  278. data/doc/classes/Locale.src/M000088.html +0 -30
  279. data/doc/classes/Locale/Object.html +0 -420
  280. data/doc/classes/Locale/Object.src/M000104.html +0 -53
  281. data/doc/classes/Locale/Object.src/M000105.html +0 -34
  282. data/doc/classes/Locale/Object.src/M000106.html +0 -32
  283. data/doc/classes/Locale/Object.src/M000107.html +0 -32
  284. data/doc/classes/Locale/Object.src/M000108.html +0 -33
  285. data/doc/classes/Locale/Object.src/M000109.html +0 -33
  286. data/doc/classes/Locale/Object.src/M000110.html +0 -30
  287. data/doc/classes/Locale/SystemCGI.html +0 -247
  288. data/doc/classes/Locale/SystemCGI.src/M000094.html +0 -48
  289. data/doc/classes/Locale/SystemCGI.src/M000095.html +0 -30
  290. data/doc/classes/Locale/SystemCGI.src/M000096.html +0 -31
  291. data/doc/classes/Locale/SystemCGI.src/M000097.html +0 -31
  292. data/doc/classes/Locale/SystemCGI.src/M000098.html +0 -31
  293. data/doc/classes/Locale/SystemCGI.src/M000099.html +0 -32
  294. data/doc/classes/Locale/SystemCGI.src/M000100.html +0 -31
  295. data/doc/classes/Locale/SystemCGI.src/M000101.html +0 -30
  296. data/doc/classes/Locale/SystemPosix.html +0 -133
  297. data/doc/classes/Locale/SystemPosix.src/M000102.html +0 -39
  298. data/doc/classes/Locale/SystemPosix.src/M000103.html +0 -34
  299. data/doc/classes/Locale/SystemWin32.html +0 -206
  300. data/doc/classes/Locale/SystemWin32.src/M000089.html +0 -31
  301. data/doc/classes/Locale/SystemWin32.src/M000090.html +0 -48
  302. data/doc/classes/Locale/SystemWin32.src/M000091.html +0 -32
  303. data/doc/classes/Locale/SystemWin32.src/M000092.html +0 -31
  304. data/doc/classes/Locale/SystemWin32.src/M000093.html +0 -30
  305. data/doc/classes/MOFile.html +0 -279
  306. data/doc/classes/MOFile.src/M000001.html +0 -31
  307. data/doc/classes/MOFile.src/M000002.html +0 -34
  308. data/doc/classes/MOFile.src/M000003.html +0 -37
  309. data/doc/classes/MOFile.src/M000004.html +0 -42
  310. data/doc/classes/MOFile.src/M000005.html +0 -93
  311. data/doc/classes/MOFile.src/M000006.html +0 -38
  312. data/doc/classes/MOFile.src/M000007.html +0 -34
  313. data/doc/classes/MOFile.src/M000008.html +0 -42
  314. data/doc/classes/MOFile.src/M000009.html +0 -93
  315. data/doc/classes/MOFile.src/M000010.html +0 -31
  316. data/doc/classes/MOFile.src/M000011.html +0 -30
  317. data/doc/classes/MOFile.src/M000012.html +0 -30
  318. data/doc/classes/MOFile/InvalidFormat.html +0 -92
  319. data/doc/classes/String.html +0 -150
  320. data/doc/classes/String.src/M000013.html +0 -44
  321. data/doc/created.rid +0 -1
  322. data/doc/files/lib/gettext/cgi_rb.html +0 -98
  323. data/doc/files/lib/gettext/container_rb.html +0 -96
  324. data/doc/files/lib/gettext/erb_rb.html +0 -97
  325. data/doc/files/lib/gettext/iconv_rb.html +0 -97
  326. data/doc/files/lib/gettext/locale_cgi_rb.html +0 -92
  327. data/doc/files/lib/gettext/locale_object_rb.html +0 -92
  328. data/doc/files/lib/gettext/locale_posix_rb.html +0 -92
  329. data/doc/files/lib/gettext/locale_rb.html +0 -99
  330. data/doc/files/lib/gettext/locale_table_win32_rb.html +0 -92
  331. data/doc/files/lib/gettext/locale_win32_rb.html +0 -96
  332. data/doc/files/lib/gettext/mo_rb.html +0 -96
  333. data/doc/files/lib/gettext/parser/activerecord_rb.html +0 -103
  334. data/doc/files/lib/gettext/parser/erb_rb.html +0 -97
  335. data/doc/files/lib/gettext/parser/glade_rb.html +0 -97
  336. data/doc/files/lib/gettext/parser/ruby_rb.html +0 -98
  337. data/doc/files/lib/gettext/poparser_rb.html +0 -96
  338. data/doc/files/lib/gettext/rails_rb.html +0 -99
  339. data/doc/files/lib/gettext/rgettext_rb.html +0 -98
  340. data/doc/files/lib/gettext/rmsgfmt_rb.html +0 -100
  341. data/doc/files/lib/gettext/rmsgmerge_rb.html +0 -100
  342. data/doc/files/lib/gettext/string_rb.html +0 -92
  343. data/doc/files/lib/gettext/textdomain_rb.html +0 -97
  344. data/doc/files/lib/gettext/textdomainmanager_rb.html +0 -97
  345. data/doc/files/lib/gettext/utils_rb.html +0 -98
  346. data/doc/files/lib/gettext/version_rb.html +0 -92
  347. data/doc/files/lib/gettext_rb.html +0 -101
  348. data/doc/fr_class_index.html +0 -45
  349. data/doc/fr_file_index.html +0 -41
  350. data/doc/fr_method_index.html +0 -135
  351. data/doc/frame-style.css +0 -33
  352. data/doc/index.html +0 -26
  353. data/doc/rdoc-style.css +0 -180
  354. data/jamis.rb +0 -590
  355. data/samples/rails/db/mysql.sql +0 -8
  356. data/samples/rails/db/postgresql.sql +0 -7
data/ChangeLog CHANGED
@@ -1,3 +1,142 @@
1
+ 2006-09-12 Masao Mutoh <mutoh@highway.ne.jp>
2
+
3
+ * lib/gettext/textdomain.rb: Fixed a bug of add_default_locale_path.
4
+ * lib/gettext/parser/ruby.rb: Improve to output error messages.
5
+
6
+ 2006-09-11 Masao Mutoh <mutoh@highway.ne.jp>
7
+
8
+ * lib/gettext/active_record.rb: Works rails_edge again.
9
+ Reported by Donald Piret. (http://dev.rubyonrails.org/ticket/5810)
10
+
11
+ 2006-09-07 Masao Mutoh <mutoh@highway.ne.jp>
12
+
13
+ * lib/gettext/locale_cgi.rb, locale_object.rb: Speed up.
14
+ * lib/gettext.rb: Fixed to extract correct textdomains in each_textdomain.
15
+
16
+ 2006-09-05 Masao Mutoh <mutoh@highway.ne.jp>
17
+
18
+ * README, NEWS: Updated.
19
+
20
+ 2006-09-04 Masao Mutoh <mutoh@highway.ne.jp>
21
+
22
+ * lib/gettext/rgettext.rb: Raise error when parsing was failed.
23
+ * lib/gettext.rb: GetText.locale= is the alias of GetText.set_locale_all instead
24
+ of GetText.set_locale.
25
+ * test/gettext_test_active_record.rb: Added tests.
26
+ * test/fixtures/*.rb: updated.
27
+ * test/po/active_record.pot, test/po/ja/active_record.po: updated.
28
+
29
+ 2006-09-01 Masao Mutoh <mutoh@highway.ne.jp>
30
+
31
+ * test/gettext_test_active_record.rb: Added tests.
32
+
33
+ 2006-08-31 Masao Mutoh <mutoh@highway.ne.jp>
34
+
35
+ * lib/gettext/active_record.rb: Fix the custom messages of validates_length_of
36
+ with :too_long, :too_short, :wrong_length.
37
+
38
+ 2006-08-30 Masao Mutoh <mutoh@highway.ne.jp>
39
+
40
+ * test/Rakefile, test/db/*sql: Added.
41
+
42
+ 2006-08-29 Masao Mutoh <mutoh@highway.ne.jp>
43
+
44
+ * test/gettext_test_active_record.rb, test/fixtures/*, test/po/active_record.pot,
45
+ test/po/ja/active_record.po: Added tests for ActiveRecord with GetText.
46
+ * lib/gettext/active_record.rb: Messages updated.
47
+ * po/*/rails.po[t]: ditto.
48
+
49
+ 2006-08-22 Masao Mutoh <mutoh@highway.ne.jp>
50
+
51
+ * samples/rails/db/schema.rb: Added.
52
+ * samples/rails/db/*.sql: Removed. Use rake db:schema:load instead.
53
+ * samples/rails/README: Follow above changes.
54
+ * samples/rails/po/*: Updated.
55
+ * lib/gettext/active_record.rb: Fixed the problem of untranslate(_all).
56
+ Reported by Tsutomu Kuroda.
57
+
58
+ 2006-08-21 Masao Mutoh <mutoh@highway.ne.jp>
59
+
60
+ * README: Updated.
61
+ * **/po/zh_TW/*.po: Added zh_TW locale by LIN CHUNG-YI.
62
+
63
+ 2006-08-18 Masao Mutoh <mutoh@highway.ne.jp>
64
+
65
+ * lib/gettext/version.rb: Increment minor version.
66
+ * po/et/rails.po: Added Estonian by Erkki Eilonen.
67
+ * README: ditto.
68
+ * lib/gettext/rails.rb: Add ActionController::Base.(before|after)_init_gettext.
69
+
70
+ 2006-08-15 Masao Mutoh <mutoh@highway.ne.jp>
71
+
72
+ * po/de/rails.po, rgettext.po: Updated by Partick Lenz.
73
+
74
+ 2006-08-13 Masao Mutoh <mutoh@highway.ne.jp>
75
+
76
+ * lib/gettext/locale.rb: Add Locale.system_module.
77
+ * lib/gettext/rails.rb: Remove ActionController::Base.textdomainname
78
+ * lib/gettext.rb, lib/gettext/rails.rb, locale_cgi.rb,
79
+ locale_object.rb, string.rb:
80
+ Speed up. Improve CPU usages.
81
+
82
+ 2006-08-10 Masao Mutoh <mutoh@highway.ne.jp>
83
+
84
+ * lib/gettext/parser/active_record.rb: Improved to find ActiveRecord class
85
+ by steve dp.
86
+
87
+ 2006-08-09 Masao Mutoh <mutoh@highway.ne.jp>
88
+
89
+ * lib/gettext/rails.rb: Code clean up.
90
+ * lib/gettext.rb: Code clean up.
91
+ * lib/gettext/active_record.rb: Removed to call bindtextdomain in Validations.
92
+ It's called in bindtextdomain of init_gettext.
93
+ * lib/gettext/parser/active_record.rb: Rename from activerecord.rb.
94
+
95
+ 2006-08-08 Masao Mutoh <mutoh@highway.ne.jp>
96
+
97
+ * lib/gettext/active_record.rb: Fixed on, error_messages_for.
98
+ by Andreas Neuhaus.
99
+
100
+ 2006-08-04 Masao Mutoh <mutoh@highway.ne.jp>
101
+
102
+ * lib/gettext/rails.rb: Move bindtextdomain_to to lib/gettext.rb.
103
+ New overrideable callback methods (before|after)_init_gettext(cgi).
104
+ These methods is called on the each WWW request.
105
+ * lib/gettext.rb: Add bindtextdomain_to, textdomain_to.
106
+ * samples/rails/app/controllers/application.rb: Add a sample of
107
+ (before|after)_init_gettext(cgi).
108
+
109
+ 2006-07-29 Masao Mutoh <mutoh@highway.ne.jp>
110
+
111
+ * lib/gettext/rgettext.rb: Added -r, -d options.
112
+ -r is to set an option parser. -d is for debugging mode.
113
+ (e.g.) $ rgettext -r fooparser test.foo
114
+ The idea is from Kobayashi Noritada.
115
+ Fix a trivial bug by Kobayashi Noritada.
116
+
117
+ 2006-07-25 Masao Mutoh <mutoh@highway.ne.jp>
118
+
119
+ * lib/gettext/active_record.rb: Separate from rails.rb.
120
+
121
+ 2006-07-23 Masao Mutoh <mutoh@highway.ne.jp>
122
+
123
+ * lib/gettext/rails.rb: init_gettext manages plural textdomains.
124
+ bindtextdomain binds a domainname to ActionMailer::Base and ActionView::Base.
125
+
126
+ 2006-07-22 Masao Mutoh <mutoh@highway.ne.jp>
127
+
128
+ * lib/gettext/rails.rb: init_gettext finds the locale path with caller
129
+ not RAILS_ROOT now for supporting plugins which has app/controller directory
130
+ such as Rails Engines.
131
+ And init_gettext accepts :locale_path option to be able to set the locale
132
+ path manually.
133
+ * po/pt_BR/rails.po, rgettext.po: Updated by Joao Pedrosa.
134
+
135
+ 2006-07-17 Masao Mutoh <mutoh@highway.ne.jp>
136
+
137
+ * lib/gettext/rails.rb: bind the textdomain same with ApplictionController
138
+ to the class which includes ActiveRecord::Validations.
139
+
1
140
  2006-07-16 Masao Mutoh <mutoh@highway.ne.jp>
2
141
 
3
142
  * lib/gettext/rails.rb: Code cleanup.
data/NEWS CHANGED
@@ -1,3 +1,34 @@
1
+ = Ruby-GetText-Package-1.8.0 (2006-09-11)
2
+
3
+ * Support Chinese(Taiwan: zh_TW), Estonian(et: rails.po only)
4
+ * Add GetText.bindtextdomain_to(klass, domainname), .textdomain_to(klass, domainname)
5
+ * rgettext supports -r, -d options.
6
+ -r is to set an option parser. -d is for debugging mode.
7
+ (e.g.) $ rgettext -r fooparser test.foo
8
+ * Update translations: pt_BR, de, zh_TW,
9
+ * Code cleanup, fixed bugs.
10
+ * Enhance to support Ruby on Rails.
11
+ * init_gettext finds mo-files in /vendor/plugins/{plugin_name}/locale which has
12
+ app/controller directories such as Rails Engines.
13
+ And init_gettext accepts :locale_path option to be able to set the locale
14
+ path manually.
15
+ * init_gettext manages plural textdomains.
16
+ * Add before_init_gettext, after_init_gettext methods like as before/after_filter.
17
+ * Speed up(the sample blog is 1.5 times faster).
18
+ * gettext/active_record.rb from gettext/rails.rb.
19
+ * ActiveRecord::Validations is set the app's textdomain in init_gettext.
20
+ It means the class which includes ActiveRecord::Validtaions are localized with
21
+ the app's textdomain.
22
+ e.g.) You can use gettext methods in the subclass of ActiveForm[1]
23
+ http://www.realityforge.org/svn/code/active-form/trunk/
24
+ * Works rails edge again (http://dev.rubyonrails.org/ticket/5810)
25
+
26
+ Thanks to:
27
+ Translators: Joao Pedrosa(pt_BR), Partick Lenz(de), Erkki Eilonen(et),
28
+ LIN CHUNG-YI(zh_TW)
29
+ Bug reports and suggestions:
30
+ Kobayashi Noritada, Andreas Neuhaus, steve dp, Tsutomu Kuroda, Donald Piret
31
+
1
32
  = Ruby-GetText-Package-1.7.0 (2006-07-17)
2
33
 
3
34
  * GetText.current_textdomain_info for debuging
data/README CHANGED
@@ -20,6 +20,7 @@ Ruby-Gettext-Package
20
20
  * glade-2 XML file(.glade)
21
21
  * ERB file(.rhtml)
22
22
  * ActiveRecord(.rb)
23
+ * Others(with your own parsers)
23
24
  The po-file is compatible to GNU gettext.
24
25
 
25
26
  * rmsgfmt creates a mo-file from a po-file.
@@ -39,7 +40,17 @@ Ruby-Gettext-Package
39
40
  * ERB support (gettext/erb)
40
41
 
41
42
  * Ruby on Rails support (gettext/rails)
42
-
43
+ * before_init_gettext, init_gettext, after_init_gettext for initializing
44
+ GetText.
45
+ * ActionController, ActionView, ActionMailer and ActiveRecord are
46
+ localized in a textdomain.
47
+ * Validation messages in ActiveRecord are localized.
48
+ * The table/field names of ActiveRecord are extracted by rgettext
49
+ and translated in the application.
50
+ * plugins can have their own textdomains.
51
+ * ActionMailer supports ISO-2022-JP message in ja locale.
52
+
53
+ * String% is extended to use named argument such as "%{foo}" %{:foo => 1}
43
54
 
44
55
  Requirements
45
56
  ------------
@@ -109,10 +120,13 @@ License
109
120
  Translators
110
121
  -----------
111
122
  Chinese(Simplified)(zh_CN) - Yingfeng <blogyingfeng at gmail.com>
123
+ Chinese(Traditional)(zh_TW)- LIN CHUNG-YI <xmarsh at gmail.com>
112
124
  Czech(cs) - Karel Miarka <kajism at yahoo.com>
113
125
  Dutch(nl) - Menno Jonkers <ruby-gettext at jonkers.com>
126
+ Estonian(et) - Erkki Eilonen <erkki at itech.ee>
114
127
  French(fr) - Laurent Sansonetti <laurent.sansonetti at gmail.com>
115
- German(de) - Detlef Reichl <detlef.reichl at gmx.org>
128
+ German(de) - Patrick Lenz <patrick at limited-overload.de> (current)
129
+ Detlef Reichl <detlef.reichl at gmx.org>
116
130
  Sven Herzberg <herzi at abi02.de>
117
131
  Sascha Ebach <se at digitale-wertschoepfung.de>
118
132
  Greek(el) - Damphyr <damphyr at gmx.net>
@@ -128,19 +142,21 @@ Swedish(sv) - Nikolai Weibull <mailing-lists.ruby-talk at rawuncu
128
142
 
129
143
  Status of translations
130
144
  ----------------------
131
- Chinese(zh) - 1.7.0
132
- Czech(cs) - 1.7.0
133
- Dutch(nl) - 1.7.0
134
- English(default) - 1.7.0
135
- French(fr) - 1.7.0
136
- German(de) - 1.6.0
137
- Greek(el) - 1.6.0
138
- Spanish(es) - 1.7.0
139
- Italian(it) - 1.6.0
140
- Japanese(ja) - 1.7.0
141
- Korean(ko) - 1.7.0
142
- Portuguese(Brazil)(pt_BR) - 1.6.0
143
- Russian(ru) - 1.7.0
145
+ Chinese(zh_CN) - 1.8.0
146
+ Chinese(zh_TW) - 1.8.0
147
+ Czech(cs) - 1.8.0
148
+ Dutch(nl) - 1.8.0
149
+ English(default) - 1.8.0
150
+ Estonian(et) - 1.8.0 (rails.po only)
151
+ French(fr) - 1.8.0
152
+ German(de) - 1.8.0
153
+ Greek(el) - 1.6.0 (old)
154
+ Spanish(es) - 1.8.0
155
+ Italian(it) - 1.6.0 (old)
156
+ Japanese(ja) - 1.8.0
157
+ Korean(ko) - 1.8.0
158
+ Portuguese(Brazil)(pt_BR) - 1.8.0
159
+ Russian(ru) - 1.8.0
144
160
  Swedish(sv) - 0.8.0 (old)
145
161
 
146
162
  Maintainer
data/Rakefile CHANGED
@@ -17,7 +17,6 @@ require 'rubygems'
17
17
  require 'rake'
18
18
  require 'rake/packagetask'
19
19
  require 'rake/gempackagetask'
20
- require 'rake/rdoctask'
21
20
  require 'gettext/version'
22
21
 
23
22
  RUBYBIN = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) + " "
@@ -103,13 +102,14 @@ end
103
102
 
104
103
  desc "Update pot/po files to match new version."
105
104
  task :updatepo do
105
+ rails = ["lib/gettext/rails.rb", "lib/gettext/active_record.rb"]
106
106
  #lib/gettext/*.rb -> rgettext.po
107
107
  GetText.update_pofiles("rgettext",
108
- Dir.glob("lib/**/*.rb") + ["src/poparser.ry"] - ["lib/gettext/rails.rb"],
108
+ Dir.glob("lib/**/*.rb") + ["src/poparser.ry"] - rails,
109
109
  "ruby-gettext #{GetText::VERSION}")
110
110
 
111
111
  #lib/gettext/rails.rb -> rails.po
112
- GetText.update_pofiles("rails", ["lib/gettext/rails.rb"],
112
+ GetText.update_pofiles("rails", rails,
113
113
  "ruby-gettext #{GetText::VERSION}")
114
114
  end
115
115
 
@@ -205,30 +205,3 @@ task :testunit => [:makemo_test] do
205
205
  sh 'cd test; sh test.sh'
206
206
  end
207
207
  end
208
-
209
- Rake::RDocTask.new do |rd|
210
- rd.main = "README"
211
- rd.rdoc_files.include("README", "lib/**/*.rb")
212
- end
213
-
214
- PKG_GID = 855
215
- PKG_ID = 978
216
- def release_package(target)
217
- cmd = "rubyforge add_release #{PKG_GID} #{PKG_ID} 'Ruby-GetText-Package-#{PKG_VERSION}' pkg/#{target}"
218
- puts cmd
219
- system(cmd)
220
- end
221
-
222
- desc "Publish the release files to RubyForge."
223
- task :rubyforge do
224
- `rubyforge login`
225
- release_package("gettext-#{PKG_VERSION}.gem")
226
- release_package("ruby-gettext-package-#{PKG_VERSION}.tar.gz")
227
- end
228
-
229
- task :rubyforge_delete do
230
- `rubyforge login`
231
- cmd = "rubyforge delete_package #{PKG_GID} #{PKG_ID}"
232
- puts cmd
233
- system(cmd)
234
- end
data/bin/rgettext CHANGED
@@ -7,7 +7,7 @@
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
 
10
- $Id: rgettext,v 1.8 2006/02/22 16:42:41 mutoh Exp $
10
+ $Id: rgettext,v 1.12 2006/09/10 15:08:32 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
data/bin/rmsgfmt CHANGED
@@ -7,7 +7,7 @@
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
 
10
- $Id: rmsgfmt,v 1.7 2006/02/22 16:42:41 mutoh Exp $
10
+ $Id: rmsgfmt,v 1.11 2006/09/10 15:08:32 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
data/bin/rmsgmerge CHANGED
@@ -7,7 +7,7 @@
7
7
  You may redistribute it and/or modify it under the same
8
8
  license terms as Ruby.
9
9
 
10
- $Id: rmsgmerge,v 1.6 2006/02/22 16:42:41 mutoh Exp $
10
+ $Id: rmsgmerge,v 1.10 2006/09/10 15:08:32 mutoh Exp $
11
11
  =end
12
12
 
13
13
  begin
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/gettext.rb CHANGED
@@ -10,7 +10,7 @@
10
10
  You may redistribute it and/or modify it under the same
11
11
  license terms as Ruby.
12
12
 
13
- $Id: gettext.rb,v 1.15 2006/06/11 15:36:20 mutoh Exp $
13
+ $Id: gettext.rb,v 1.20 2006/09/10 15:08:32 mutoh Exp $
14
14
  =end
15
15
 
16
16
  require 'rbconfig'
@@ -49,7 +49,7 @@ module GetText
49
49
  # * :charset - output charset. This affect the current textdomain only. Generally, you should use GetText.set_output_charset instead.
50
50
  # The value is searched order by:
51
51
  # the value of Locale.set_output_charset > ENV["OUTPUT_CHARSET"] > this value > System default charset.
52
- # * Returns: the GetText::TextDomain.
52
+ # * Returns: the GetText::TextDomainManager.
53
53
  # Note: Don't use locale_, charset argument(not in options).
54
54
  # They are remained for backward compatibility.
55
55
  #
@@ -76,12 +76,25 @@ module GetText
76
76
  manager
77
77
  end
78
78
 
79
+ # Includes GetText module and bind a textdomain to a class.
80
+ # * klass: the target ruby class.
81
+ # * domainname: the textdomain name.
82
+ # * options: options as an Hash. See GetText.bindtextdomain.
83
+ def bindtextdomain_to(klass, domainname, options = {})
84
+ ret = nil
85
+ klass.module_eval {
86
+ include GetText
87
+ ret = bindtextdomain(domainname, options)
88
+ }
89
+ ret
90
+ end
91
+
79
92
  # Binds a existed textdomain to your program.
80
- # This is the same function with GetText.bindtextdomain but simpler than bindtextdomain.
93
+ # This is the same function with GetText.bindtextdomain but simpler(and faster) than bindtextdomain.
81
94
  # Notice that you need to call GetText.bindtextdomain first. If the domainname hasn't bound yet,
82
95
  # raises GetText::NoboundTextDomainError.
83
96
  # * domainname: a textdomain name.
84
- # * Returns: the GetText::TextDomain.
97
+ # * Returns: the GetText::TextDomainManager.
85
98
  def textdomain(domainname)
86
99
  domain = TextDomainManager.textdomain(domainname)
87
100
  raise NoboundTextDomainError, "#{domainname} is not bound." unless domain
@@ -90,31 +103,37 @@ module GetText
90
103
  manager = TextDomainManager.new(bound_target, Locale.get)
91
104
  @@__textdomainmanagers[bound_target] = manager
92
105
  end
93
- manager.add_textdomain(domainname)
94
106
  manager.set_locale(Locale.get)
107
+ manager.add_textdomain(domainname)
108
+ manager
95
109
  end
96
110
 
97
- TARGET_REGEXP = /\:\:/ # :nodoc:
111
+ # Includes GetText module and bind an exsited textdomain to a class.
112
+ # See textdomain for more detail.
113
+ # * klass: the target ruby class.
114
+ # * domainname: the textdomain name.
115
+ def textdomain_to(klass, domainname)
116
+ ret = nil
117
+ klass.module_eval {
118
+ include GetText
119
+ ret = textdomain(domainname)
120
+ }
121
+ ret
122
+ end
98
123
 
99
124
  # Iterates bound textdomains.
100
125
  # * klass: a class/module to find. Default is the class of self.
101
126
  # * ignore_targets: Ignore tragets.
102
127
  # * Returns: a bound GetText::TextDomain or nil.
103
128
  def each_textdomain(klass = bound_target, ignore_targets = []) #:nodoc:
104
- (klass.ancestors + [GetText]).each do |target|
129
+ bound_targets(klass).each do |target|
105
130
  unless ignore_targets.include? target
106
- ignore_targets << target
107
131
  manager = @@__textdomainmanagers[target]
108
132
  if manager
109
133
  manager.each{ |textdomain|
110
134
  yield textdomain
111
135
  }
112
136
  end
113
- if target.to_s =~ TARGET_REGEXP
114
- each_textdomain(Module.const_get($`), ignore_targets){|domain|
115
- yield domain
116
- }
117
- end
118
137
  end
119
138
  end
120
139
  self
@@ -128,6 +147,15 @@ module GetText
128
147
  end
129
148
  end
130
149
 
150
+ def bound_targets(klass) # :nodoc:
151
+ ret = []
152
+ ary = klass.name.split(/::/)
153
+ while(v = ary.shift)
154
+ ret.unshift(((ret.size == 0) ? eval(v) : ret[0].const_get(v)))
155
+ end
156
+ ((ret + klass.ancestors + [GetText]) & @@__textdomainmanagers.keys).uniq
157
+ end
158
+
131
159
  # call-seq:
132
160
  # gettext(msgid)
133
161
  # _(msgid)
@@ -213,7 +241,7 @@ module GetText
213
241
  msg
214
242
  end
215
243
 
216
- # Sets locale to the current class/module
244
+ # Sets the default locale to the current class/module
217
245
  #
218
246
  # Notice that you shouldn't use this for your own Libraries.
219
247
  # * locale: a locale string or Locale::Object.
@@ -232,7 +260,7 @@ module GetText
232
260
  ret.charset = output_charset if output_charset
233
261
  Locale.set(ret)
234
262
  else
235
- Locale.clear
263
+ Locale.set(nil)
236
264
  ret = Locale.get
237
265
  end
238
266
  if this_target_only
@@ -251,7 +279,7 @@ module GetText
251
279
  # Sets locale to the all textdomains.
252
280
  #
253
281
  # Notice that you shouldn't use this for your own Libraries.
254
- # * locale: a locale string or Locale::Object.
282
+ # * locale: a locale string or Locale::Object, otherwise nil to use default locale.
255
283
  # * Returns: self
256
284
  def set_locale_all(locale)
257
285
  ret = nil
@@ -261,24 +289,23 @@ module GetText
261
289
  else
262
290
  ret = Locale::Object.new(locale.to_s)
263
291
  end
264
- ret.charset = output_charset if output_charset
265
- Locale.set(ret)
292
+ Locale.set_current(ret)
266
293
  else
267
- Locale.set(nil)
294
+ Locale.set_current(nil)
268
295
  ret = Locale.get
269
296
  end
297
+ ret.charset = output_charset if output_charset
270
298
  TextDomainManager.each_all {|textdomain|
271
299
  textdomain.set_locale(ret)
272
300
  }
273
301
  self
274
302
  end
275
303
 
276
- # Same as GetText.set_locale.
304
+ # Same as GetText.set_locale_all.
277
305
  # * locale: a locale string
278
- # * src: internal usage only. You shouldn't use this.
279
306
  # * Returns: a locale string
280
307
  def locale=(locale)
281
- set_locale(locale)
308
+ set_locale_all(locale)
282
309
  locale
283
310
  end
284
311
 
@@ -363,7 +390,7 @@ module GetText
363
390
  alias :s_ :sgettext #:nodoc:
364
391
 
365
392
  module_function :bindtextdomain, :textdomain, :each_textdomain,
366
- :N_, :gettext, :_, :ngettext, :n_, :sgettext, :s_, :bound_target,
393
+ :N_, :gettext, :_, :ngettext, :n_, :sgettext, :s_, :bound_target, :bound_targets,
367
394
  :setlocale, :set_locale, :locale=, :set_locale_all, :locale, :charset=, :set_charset,
368
395
  :set_output_charset, :output_charset=, :output_charset, :current_textdomain_info
369
396
  end