gettext 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. data/ChangeLog +65 -0
  2. data/NEWS +20 -0
  3. data/README +9 -9
  4. data/Rakefile +30 -2
  5. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  6. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  7. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  8. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  9. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  10. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  11. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  12. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  13. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  14. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  15. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  16. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  17. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  26. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  27. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  28. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  29. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  30. data/doc/classes/ActionController/Base.html +169 -0
  31. data/doc/classes/ActionController/Base.src/M000014.html +37 -0
  32. data/doc/classes/ActionController/Base.src/M000015.html +30 -0
  33. data/doc/classes/ActiveRecord/Base.html +210 -0
  34. data/doc/classes/ActiveRecord/Base.src/M000114.html +30 -0
  35. data/doc/classes/ActiveRecord/Base.src/M000115.html +30 -0
  36. data/doc/classes/ActiveRecord/Base.src/M000116.html +30 -0
  37. data/doc/classes/ActiveRecord/Base.src/M000117.html +30 -0
  38. data/doc/classes/ActiveRecord/Base.src/M000118.html +37 -0
  39. data/doc/classes/ActiveRecord/Base.src/M000119.html +30 -0
  40. data/doc/classes/ActiveRecord/Base.src/M000120.html +30 -0
  41. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +117 -0
  42. data/doc/classes/ActiveRecord/ConnectionAdapters/Column.src/M000113.html +30 -0
  43. data/doc/classes/ActiveRecord/Migration.html +96 -0
  44. data/doc/classes/GetText.html +863 -0
  45. data/doc/classes/GetText.src/M000017.html +30 -0
  46. data/doc/classes/GetText.src/M000018.html +31 -0
  47. data/doc/classes/GetText.src/M000019.html +46 -0
  48. data/doc/classes/GetText.src/M000020.html +42 -0
  49. data/doc/classes/GetText.src/M000021.html +32 -0
  50. data/doc/classes/GetText.src/M000022.html +30 -0
  51. data/doc/classes/GetText.src/M000023.html +30 -0
  52. data/doc/classes/GetText.src/M000024.html +31 -0
  53. data/doc/classes/GetText.src/M000025.html +30 -0
  54. data/doc/classes/GetText.src/M000026.html +49 -0
  55. data/doc/classes/GetText.src/M000027.html +38 -0
  56. data/doc/classes/GetText.src/M000028.html +35 -0
  57. data/doc/classes/GetText.src/M000029.html +44 -0
  58. data/doc/classes/GetText.src/M000030.html +30 -0
  59. data/doc/classes/GetText.src/M000031.html +30 -0
  60. data/doc/classes/GetText.src/M000032.html +36 -0
  61. data/doc/classes/GetText.src/M000033.html +53 -0
  62. data/doc/classes/GetText.src/M000034.html +46 -0
  63. data/doc/classes/GetText.src/M000035.html +31 -0
  64. data/doc/classes/GetText.src/M000036.html +31 -0
  65. data/doc/classes/GetText.src/M000037.html +30 -0
  66. data/doc/classes/GetText.src/M000038.html +30 -0
  67. data/doc/classes/GetText.src/M000039.html +30 -0
  68. data/doc/classes/GetText.src/M000040.html +30 -0
  69. data/doc/classes/GetText.src/M000041.html +48 -0
  70. data/doc/classes/GetText.src/M000042.html +18 -0
  71. data/doc/classes/GetText.src/M000043.html +34 -0
  72. data/doc/classes/GetText.src/M000044.html +30 -0
  73. data/doc/classes/GetText.src/M000045.html +20 -0
  74. data/doc/classes/GetText/ActiveRecordParser.html +148 -0
  75. data/doc/classes/GetText/ActiveRecordParser.src/M000048.html +35 -0
  76. data/doc/classes/GetText/ActiveRecordParser.src/M000049.html +30 -0
  77. data/doc/classes/GetText/ErbContainer.html +161 -0
  78. data/doc/classes/GetText/ErbContainer.src/M000046.html +31 -0
  79. data/doc/classes/GetText/ErbContainer.src/M000047.html +30 -0
  80. data/doc/classes/GetText/ErbParser.html +113 -0
  81. data/doc/classes/GetText/ErbParser.src/M000051.html +32 -0
  82. data/doc/classes/GetText/GetText.html +89 -0
  83. data/doc/classes/GetText/GetText/Container.html +95 -0
  84. data/doc/classes/GetText/GladeParser.html +109 -0
  85. data/doc/classes/GetText/NoboundTextDomainError.html +98 -0
  86. data/doc/classes/GetText/PoParser.html +121 -0
  87. data/doc/classes/GetText/PoParser.src/M000068.html +30 -0
  88. data/doc/classes/GetText/Rails.html +172 -0
  89. data/doc/classes/GetText/Rails.src/M000050.html +43 -0
  90. data/doc/classes/GetText/RubyParser.html +99 -0
  91. data/doc/classes/GetText/TextDomain.html +345 -0
  92. data/doc/classes/GetText/TextDomain.src/M000052.html +30 -0
  93. data/doc/classes/GetText/TextDomain.src/M000053.html +30 -0
  94. data/doc/classes/GetText/TextDomain.src/M000054.html +30 -0
  95. data/doc/classes/GetText/TextDomain.src/M000055.html +58 -0
  96. data/doc/classes/GetText/TextDomain.src/M000056.html +32 -0
  97. data/doc/classes/GetText/TextDomain.src/M000057.html +35 -0
  98. data/doc/classes/GetText/TextDomain.src/M000058.html +49 -0
  99. data/doc/classes/GetText/TextDomain.src/M000059.html +30 -0
  100. data/doc/classes/GetText/TextDomain.src/M000060.html +18 -0
  101. data/doc/classes/GetText/TextDomain.src/M000061.html +18 -0
  102. data/doc/classes/GetText/TextDomain.src/M000062.html +18 -0
  103. data/doc/classes/GetText/TextDomain.src/M000063.html +46 -0
  104. data/doc/classes/GetText/TextDomain.src/M000064.html +20 -0
  105. data/doc/classes/GetText/TextDomain.src/M000065.html +23 -0
  106. data/doc/classes/GetText/TextDomain.src/M000066.html +37 -0
  107. data/doc/classes/GetText/TextDomain.src/M000067.html +18 -0
  108. data/doc/classes/GetText/TextDomainManager.html +253 -0
  109. data/doc/classes/GetText/TextDomainManager.src/M000052.html +18 -0
  110. data/doc/classes/GetText/TextDomainManager.src/M000053.html +18 -0
  111. data/doc/classes/GetText/TextDomainManager.src/M000054.html +20 -0
  112. data/doc/classes/GetText/TextDomainManager.src/M000055.html +18 -0
  113. data/doc/classes/GetText/TextDomainManager.src/M000056.html +20 -0
  114. data/doc/classes/GetText/TextDomainManager.src/M000057.html +31 -0
  115. data/doc/classes/GetText/TextDomainManager.src/M000058.html +21 -0
  116. data/doc/classes/GetText/TextDomainManager.src/M000059.html +24 -0
  117. data/doc/classes/GetText/TextDomainManager.src/M000060.html +30 -0
  118. data/doc/classes/GetText/TextDomainManager.src/M000061.html +30 -0
  119. data/doc/classes/GetText/TextDomainManager.src/M000062.html +32 -0
  120. data/doc/classes/GetText/TextDomainManager.src/M000063.html +30 -0
  121. data/doc/classes/GetText/TextDomainManager.src/M000064.html +32 -0
  122. data/doc/classes/GetText/TextDomainManager.src/M000065.html +43 -0
  123. data/doc/classes/GetText/TextDomainManager.src/M000066.html +33 -0
  124. data/doc/classes/GetText/TextDomainManager.src/M000067.html +36 -0
  125. data/doc/classes/Iconv.html +140 -0
  126. data/doc/classes/Iconv.src/M000016.html +41 -0
  127. data/doc/classes/Iconv/Failure.html +86 -0
  128. data/doc/classes/Iconv/IllegalSequence.html +96 -0
  129. data/doc/classes/Iconv/InvalidCharacter.html +96 -0
  130. data/doc/classes/Iconv/InvalidEncoding.html +96 -0
  131. data/doc/classes/Locale.html +648 -0
  132. data/doc/classes/Locale.src/M000069.html +32 -0
  133. data/doc/classes/Locale.src/M000070.html +31 -0
  134. data/doc/classes/Locale.src/M000071.html +30 -0
  135. data/doc/classes/Locale.src/M000072.html +34 -0
  136. data/doc/classes/Locale.src/M000073.html +31 -0
  137. data/doc/classes/Locale.src/M000074.html +30 -0
  138. data/doc/classes/Locale.src/M000075.html +30 -0
  139. data/doc/classes/Locale.src/M000076.html +31 -0
  140. data/doc/classes/Locale.src/M000077.html +40 -0
  141. data/doc/classes/Locale.src/M000078.html +31 -0
  142. data/doc/classes/Locale.src/M000079.html +46 -0
  143. data/doc/classes/Locale.src/M000080.html +32 -0
  144. data/doc/classes/Locale.src/M000081.html +31 -0
  145. data/doc/classes/Locale.src/M000082.html +30 -0
  146. data/doc/classes/Locale.src/M000083.html +30 -0
  147. data/doc/classes/Locale.src/M000084.html +30 -0
  148. data/doc/classes/Locale.src/M000085.html +32 -0
  149. data/doc/classes/Locale.src/M000086.html +31 -0
  150. data/doc/classes/Locale.src/M000087.html +31 -0
  151. data/doc/classes/Locale.src/M000088.html +30 -0
  152. data/doc/classes/Locale/Object.html +420 -0
  153. data/doc/classes/Locale/Object.src/M000104.html +53 -0
  154. data/doc/classes/Locale/Object.src/M000105.html +34 -0
  155. data/doc/classes/Locale/Object.src/M000106.html +32 -0
  156. data/doc/classes/Locale/Object.src/M000107.html +32 -0
  157. data/doc/classes/Locale/Object.src/M000108.html +33 -0
  158. data/doc/classes/Locale/Object.src/M000109.html +33 -0
  159. data/doc/classes/Locale/Object.src/M000110.html +30 -0
  160. data/doc/classes/Locale/SystemCGI.html +247 -0
  161. data/doc/classes/Locale/SystemCGI.src/M000094.html +48 -0
  162. data/doc/classes/Locale/SystemCGI.src/M000095.html +30 -0
  163. data/doc/classes/Locale/SystemCGI.src/M000096.html +31 -0
  164. data/doc/classes/Locale/SystemCGI.src/M000097.html +31 -0
  165. data/doc/classes/Locale/SystemCGI.src/M000098.html +31 -0
  166. data/doc/classes/Locale/SystemCGI.src/M000099.html +32 -0
  167. data/doc/classes/Locale/SystemCGI.src/M000100.html +31 -0
  168. data/doc/classes/Locale/SystemCGI.src/M000101.html +30 -0
  169. data/doc/classes/Locale/SystemPosix.html +133 -0
  170. data/doc/classes/Locale/SystemPosix.src/M000102.html +39 -0
  171. data/doc/classes/Locale/SystemPosix.src/M000103.html +34 -0
  172. data/doc/classes/Locale/SystemWin32.html +206 -0
  173. data/doc/classes/Locale/SystemWin32.src/M000089.html +31 -0
  174. data/doc/classes/Locale/SystemWin32.src/M000090.html +48 -0
  175. data/doc/classes/Locale/SystemWin32.src/M000091.html +32 -0
  176. data/doc/classes/Locale/SystemWin32.src/M000092.html +31 -0
  177. data/doc/classes/Locale/SystemWin32.src/M000093.html +30 -0
  178. data/doc/classes/MOFile.html +279 -0
  179. data/doc/classes/MOFile.src/M000001.html +31 -0
  180. data/doc/classes/MOFile.src/M000002.html +34 -0
  181. data/doc/classes/MOFile.src/M000003.html +37 -0
  182. data/doc/classes/MOFile.src/M000004.html +42 -0
  183. data/doc/classes/MOFile.src/M000005.html +93 -0
  184. data/doc/classes/MOFile.src/M000006.html +38 -0
  185. data/doc/classes/MOFile.src/M000007.html +34 -0
  186. data/doc/classes/MOFile.src/M000008.html +42 -0
  187. data/doc/classes/MOFile.src/M000009.html +93 -0
  188. data/doc/classes/MOFile.src/M000010.html +31 -0
  189. data/doc/classes/MOFile.src/M000011.html +30 -0
  190. data/doc/classes/MOFile.src/M000012.html +30 -0
  191. data/doc/classes/MOFile/InvalidFormat.html +92 -0
  192. data/doc/classes/String.html +150 -0
  193. data/doc/classes/String.src/M000013.html +44 -0
  194. data/doc/created.rid +1 -0
  195. data/doc/files/lib/gettext/cgi_rb.html +98 -0
  196. data/doc/files/lib/gettext/container_rb.html +96 -0
  197. data/doc/files/lib/gettext/erb_rb.html +97 -0
  198. data/doc/files/lib/gettext/iconv_rb.html +97 -0
  199. data/doc/files/lib/gettext/locale_cgi_rb.html +92 -0
  200. data/doc/files/lib/gettext/locale_object_rb.html +92 -0
  201. data/doc/files/lib/gettext/locale_posix_rb.html +92 -0
  202. data/doc/files/lib/gettext/locale_rb.html +99 -0
  203. data/doc/files/lib/gettext/locale_table_win32_rb.html +92 -0
  204. data/doc/files/lib/gettext/locale_win32_rb.html +96 -0
  205. data/doc/files/lib/gettext/mo_rb.html +96 -0
  206. data/doc/files/lib/gettext/parser/activerecord_rb.html +103 -0
  207. data/doc/files/lib/gettext/parser/erb_rb.html +97 -0
  208. data/doc/files/lib/gettext/parser/glade_rb.html +97 -0
  209. data/doc/files/lib/gettext/parser/ruby_rb.html +98 -0
  210. data/doc/files/lib/gettext/poparser_rb.html +96 -0
  211. data/doc/files/lib/gettext/rails_rb.html +99 -0
  212. data/doc/files/lib/gettext/rgettext_rb.html +98 -0
  213. data/doc/files/lib/gettext/rmsgfmt_rb.html +100 -0
  214. data/doc/files/lib/gettext/rmsgmerge_rb.html +100 -0
  215. data/doc/files/lib/gettext/string_rb.html +92 -0
  216. data/doc/files/lib/gettext/textdomain_rb.html +97 -0
  217. data/doc/files/lib/gettext/textdomainmanager_rb.html +97 -0
  218. data/doc/files/lib/gettext/utils_rb.html +98 -0
  219. data/doc/files/lib/gettext/version_rb.html +92 -0
  220. data/doc/files/lib/gettext_rb.html +101 -0
  221. data/doc/fr_class_index.html +45 -0
  222. data/doc/fr_file_index.html +41 -0
  223. data/doc/fr_method_index.html +135 -0
  224. data/doc/frame-style.css +33 -0
  225. data/doc/index.html +26 -0
  226. data/doc/rdoc-style.css +180 -0
  227. data/jamis.rb +590 -0
  228. data/lib/gettext.rb +38 -12
  229. data/lib/gettext/container.rb +6 -2
  230. data/lib/gettext/iconv.rb +2 -2
  231. data/lib/gettext/locale_cgi.rb +3 -2
  232. data/lib/gettext/locale_object.rb +8 -8
  233. data/lib/gettext/locale_posix.rb +2 -2
  234. data/lib/gettext/locale_table_win32.rb +3 -3
  235. data/lib/gettext/locale_win32.rb +2 -2
  236. data/lib/gettext/mo.rb +5 -2
  237. data/lib/gettext/parser/activerecord.rb +27 -17
  238. data/lib/gettext/parser/glade.rb +7 -11
  239. data/lib/gettext/parser/ruby.rb +2 -3
  240. data/lib/gettext/rails.rb +220 -85
  241. data/lib/gettext/rgettext.rb +2 -2
  242. data/lib/gettext/rmsgfmt.rb +3 -3
  243. data/lib/gettext/rmsgmerge.rb +2 -2
  244. data/lib/gettext/string.rb +2 -1
  245. data/lib/gettext/textdomain.rb +5 -2
  246. data/lib/gettext/textdomainmanager.rb +3 -3
  247. data/lib/gettext/version.rb +1 -1
  248. data/po/cs/rails.po +63 -22
  249. data/po/cs/rgettext.po +71 -37
  250. data/po/de/rails.po +54 -16
  251. data/po/de/rgettext.po +56 -22
  252. data/po/el/rails.po +54 -16
  253. data/po/el/rgettext.po +56 -22
  254. data/po/es/rails.po +57 -20
  255. data/po/es/rgettext.po +70 -30
  256. data/po/fr/rails.po +57 -19
  257. data/po/fr/rgettext.po +61 -25
  258. data/po/it/rails.po +54 -16
  259. data/po/it/rgettext.po +56 -22
  260. data/po/ja/rails.po +55 -18
  261. data/po/ja/rgettext.po +58 -24
  262. data/po/ko/rails.po +68 -33
  263. data/po/ko/rgettext.po +77 -37
  264. data/po/nl/rails.po +61 -22
  265. data/po/nl/rgettext.po +72 -36
  266. data/po/pt_BR/rails.po +54 -16
  267. data/po/pt_BR/rgettext.po +56 -22
  268. data/po/rails.pot +54 -16
  269. data/po/rgettext.pot +55 -21
  270. data/po/ru/rails.po +68 -26
  271. data/po/ru/rgettext.po +70 -30
  272. data/po/sv/rgettext.po +55 -21
  273. data/po/zh/rails.po +51 -16
  274. data/po/zh/rgettext.po +59 -23
  275. data/samples/rails/app/controllers/application.rb +7 -1
  276. data/samples/rails/app/models/article.rb +0 -6
  277. data/src/poparser.ry +1 -1
  278. data/test/gettext_test.rb +1 -1
  279. data/test/gettext_test_parser.rb +0 -1
  280. data/test/test_rubyparser.rb +0 -11
  281. metadata +233 -8
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>get_charset (Locale::SystemPosix)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/gettext/locale_posix.rb, line 39</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_charset</span>(<span class="ruby-identifier">locale</span>)
27
+ <span class="ruby-identifier">old</span> = <span class="ruby-identifier">set</span>(<span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">System</span><span class="ruby-operator">::</span><span class="ruby-constant">CTYPE</span>, <span class="ruby-keyword kw">nil</span>)
28
+ <span class="ruby-identifier">set</span>(<span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">System</span><span class="ruby-operator">::</span><span class="ruby-constant">CTYPE</span>, <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">orig_str</span>)
29
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">codeset</span>
30
+ <span class="ruby-identifier">set</span>(<span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">System</span><span class="ruby-operator">::</span><span class="ruby-constant">CTYPE</span>, <span class="ruby-identifier">old</span>)
31
+ <span class="ruby-identifier">ret</span>
32
+ <span class="ruby-keyword kw">end</span></pre>
33
+ </body>
34
+ </html>
@@ -0,0 +1,206 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Module: Locale::SystemWin32</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Module</span><br />Locale::SystemWin32</td>
55
+ <td align="right">
56
+ <table cellspacing=0 cellpadding=2>
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../../files/lib/gettext/locale_win32_rb.html">lib/gettext/locale_win32.rb</a>
61
+ <a href="../../files/lib/gettext/locale_table_win32_rb.html">lib/gettext/locale_table_win32.rb</a>
62
+ </td>
63
+ </tr>
64
+ </table>
65
+ </td>
66
+ </tr>
67
+ </table>
68
+ <!-- banner header -->
69
+
70
+ <div id="bodyContent">
71
+ <div id="content">
72
+
73
+ <div class="description"><p>
74
+ <a href="SystemWin32.html">Locale::SystemWin32</a> module for win32.
75
+ </p>
76
+ </div>
77
+
78
+
79
+
80
+ <div class="sectiontitle">Methods</div>
81
+ <ul>
82
+ <li><a href="#M000093">default_locale</a></li>
83
+ <li><a href="#M000092">default_locale=</a></li>
84
+ <li><a href="#M000089">get_charset</a></li>
85
+ <li><a href="#M000091">set_default_locale</a></li>
86
+ <li><a href="#M000090">system</a></li>
87
+ </ul>
88
+
89
+
90
+
91
+
92
+ <div class="sectiontitle">Constants</div>
93
+ <table border='0' cellpadding='5'>
94
+ <tr valign='top'>
95
+ <td class="attr-name">LocaleTable</td>
96
+ <td>=</td>
97
+ <td class="attr-value">[ [0x0000, &quot;en&quot;, &quot;CP1252&quot;], [0x007f, &quot;invariant&quot;, &quot;CP1252&quot;], [0x0400, &quot;invalid&quot;, &quot;CP1252&quot;], [0x0800, &quot;system&quot;, &quot;CP1252&quot;], [0x0436, &quot;af-ZA&quot;, &quot;CP1252&quot;], [0x041c, &quot;sq-AL&quot;, &quot;CP1252&quot;], [0x0484, &quot;gsw-FR&quot;, &quot;CP1252&quot;], [0x045e, &quot;am-ET&quot;, &quot;UNICODE&quot;], [0x0401, &quot;ar-SA&quot;, &quot;CP1256&quot;], [0x0801, &quot;ar-IQ&quot;, &quot;CP1256&quot;], [0x0c01, &quot;ar-EG&quot;, &quot;CP1256&quot;], [0x1001, &quot;ar-LY&quot;, &quot;CP1256&quot;], [0x1401, &quot;ar-DZ&quot;, &quot;CP1256&quot;], [0x1801, &quot;ar-MA&quot;, &quot;CP1256&quot;], [0x1c01, &quot;ar-TN&quot;, &quot;CP1256&quot;], [0x2001, &quot;ar-OM&quot;, &quot;CP1256&quot;], [0x2401, &quot;ar-YE&quot;, &quot;CP1256&quot;], [0x2801, &quot;ar-SY&quot;, &quot;CP1256&quot;], [0x2c01, &quot;ar-JO&quot;, &quot;CP1256&quot;], [0x3001, &quot;ar-LB&quot;, &quot;CP1256&quot;], [0x3401, &quot;ar-KW&quot;, &quot;CP1256&quot;], [0x3801, &quot;ar-AE&quot;, &quot;CP1256&quot;], [0x3c01, &quot;ar-BH&quot;, &quot;CP1256&quot;], [0x4001, &quot;ar-QA&quot;, &quot;CP1256&quot;], [0x042b, &quot;hy-AM&quot;, &quot;UNICODE&quot;], [0x044d, &quot;as-IN&quot;, &quot;UNICODE&quot;], [0x042c, &quot;az-AZ-Latn&quot;, &quot;CP1254&quot;], [0x082c, &quot;az-AZ-Cyrl&quot;, &quot;CP1251&quot;], [0x046d, &quot;ba-RU&quot;, &quot;UNICODE&quot;], [0x042d, &quot;eu-ES&quot;, &quot;CP1252&quot;], [0x0423, &quot;be-BY&quot;, &quot;CP1251&quot;], [0x0445, &quot;bn-IN&quot;, &quot;UNICODE&quot;], [0x201a, &quot;bs-BA-Cyrl&quot;, &quot;CP1251&quot;], [0x141a, &quot;bs-BA-Latn&quot;, &quot;CP1250&quot;], [0x047e, &quot;br-FR&quot;, &quot;CP1251&quot;], [0x0402, &quot;bg-BG&quot;, &quot;CP1251&quot;], [0x0455, &quot;my-MM&quot;, &quot;UNICODE&quot;], [0x0403, &quot;ca-ES&quot;, &quot;CP1252&quot;], [0x0004, &quot;zh-CHS&quot;, &quot;CP936&quot;], [0x0404, &quot;zh-TW&quot;, &quot;CP950&quot;], [0x0804, &quot;zh-CN&quot;, &quot;CP936&quot;], [0x0c04, &quot;zh-HK&quot;, &quot;CP950&quot;], [0x1004, &quot;zh-SG&quot;, &quot;CP936&quot;], [0x1404, &quot;zh-MO&quot;, &quot;CP950&quot;], [0x7c04, &quot;zh-CHT&quot;, &quot;CP950&quot;], [0x0483, &quot;co-FR&quot;, &quot;CP1252&quot;], [0x041a, &quot;hr-HR&quot;, &quot;CP1250&quot;], [0x101a, &quot;hr-BA&quot;, &quot;CP1250&quot;], [0x0405, &quot;cs-CZ&quot;, &quot;CP1250&quot;], [0x0406, &quot;da-DK&quot;, &quot;CP1252&quot;], [0x048c, &quot;gbz-AF&quot;, &quot;CP1256&quot;], [0x0465, &quot;dv-MV&quot;, &quot;UNICODE&quot;], [0x0413, &quot;nl-NL&quot;, &quot;CP1252&quot;], [0x0813, &quot;nl-BE&quot;, &quot;CP1252&quot;], [0x0409, &quot;en-US&quot;, &quot;CP1252&quot;], [0x0809, &quot;en-GB&quot;, &quot;CP1252&quot;], [0x0c09, &quot;en-AU&quot;, &quot;CP1252&quot;], [0x1009, &quot;en-CA&quot;, &quot;CP1252&quot;], [0x1409, &quot;en-NZ&quot;, &quot;CP1252&quot;], [0x1809, &quot;en-IE&quot;, &quot;CP1252&quot;], [0x1c09, &quot;en-ZA&quot;, &quot;CP1252&quot;], [0x2009, &quot;en-JA&quot;, &quot;CP1252&quot;], [0x2409, &quot;en-CB&quot;, &quot;CP1252&quot;], [0x2809, &quot;en-BZ&quot;, &quot;CP1252&quot;], [0x2c09, &quot;en-TT&quot;, &quot;CP1252&quot;], [0x3009, &quot;en-ZW&quot;, &quot;CP1252&quot;], [0x3409, &quot;en-PH&quot;, &quot;CP1252&quot;], [0x4009, &quot;en-IN&quot;, &quot;CP1252&quot;], [0x4409, &quot;en-MY&quot;, &quot;CP1252&quot;], [0x4809, &quot;en-SG&quot;, &quot;CP1252&quot;], [0x0425, &quot;et-EE&quot;, &quot;CP1257&quot;], [0x0438, &quot;fo-FO&quot;, &quot;CP1252&quot;], [0x464, &quot;fil-PH&quot;, &quot;CP1252&quot;], [0x040b, &quot;fi-FI&quot;, &quot;CP1252&quot;], [0x040c, &quot;fr-FR&quot;, &quot;CP1252&quot;], [0x080c, &quot;fr-BE&quot;, &quot;CP1252&quot;], [0x0c0c, &quot;fr-CA&quot;, &quot;CP1252&quot;], [0x100c, &quot;fr-CH&quot;, &quot;CP1252&quot;], [0x140c, &quot;fr-LU&quot;, &quot;CP1252&quot;], [0x180c, &quot;fr-MC&quot;, &quot;CP1252&quot;], [0x0462, &quot;fy-NL&quot;, &quot;CP1252&quot;], [0x0456, &quot;gl-ES&quot;, &quot;CP1252&quot;], [0x0437, &quot;ka-GE&quot;, &quot;UNICODE&quot;], [0x0407, &quot;de-DE&quot;, &quot;CP1252&quot;], [0x0807, &quot;de-CH&quot;, &quot;CP1252&quot;], [0x0c07, &quot;de-AT&quot;, &quot;CP1252&quot;], [0x1007, &quot;de-LU&quot;, &quot;CP1252&quot;], [0x1407, &quot;de-LI&quot;, &quot;CP1252&quot;], [0x0408, &quot;el-GR&quot;, &quot;CP1253&quot;], [0x046f, &quot;kl-GL&quot;, &quot;CP1252&quot;], [0x0447, &quot;gu-IN&quot;, &quot;UNICODE&quot;], [0x0468, &quot;ha-NG-Latn&quot;, &quot;CP1252&quot;], [0x040d, &quot;he-IL&quot;, &quot;CP1255&quot;], [0x0439, &quot;hi-IN&quot;, &quot;UNICODE&quot;], [0x040e, &quot;hu-HU&quot;, &quot;CP1250&quot;], [0x040f, &quot;is-IS&quot;, &quot;CP1252&quot;], [0x0421, &quot;id-ID&quot;, &quot;CP1252&quot;], [0x045d, &quot;iu-CA-Cans&quot;, &quot;UNICODE&quot;], [0x085d, &quot;iu-CA-Latn&quot;, &quot;CP1252&quot;], [0x083c, &quot;ga-IE&quot;, &quot;CP1252&quot;], [0x0434, &quot;xh-ZA&quot;, &quot;CP1252&quot;], [0x0435, &quot;zu-ZA&quot;, &quot;CP1252&quot;], [0x0410, &quot;it-IT&quot;, &quot;CP1252&quot;], [0x0810, &quot;it-CH&quot;, &quot;CP1252&quot;], [0x0411, &quot;ja-JP&quot;, &quot;CP932&quot;], [0x044b, &quot;kn-IN&quot;, &quot;UNICODE&quot;], [0x043f, &quot;kk-KZ&quot;, &quot;CP1251&quot;], [0x0453, &quot;kh-KH&quot;, &quot;UNICODE&quot;], [0x0486, &quot;qut-GT&quot;, &quot;CP1252&quot;], [0x0487, &quot;rw-RW&quot;, &quot;CP1252&quot;], [0x0457, &quot;kok-IN&quot;, &quot;UNICODE&quot;], [0x0412, &quot;ko-KR&quot;, &quot;CP949&quot;], [0x0812, &quot;ko-KR@win95&quot;, &quot;CP949&quot;], [0x0440, &quot;ky-KG&quot;, &quot;CP1251&quot;], [0x0454, &quot;lo-LA&quot;, &quot;UNICODE&quot;], [0x0426, &quot;lv-LV&quot;, &quot;CP1257&quot;], [0x0427, &quot;lt-LT&quot;, &quot;CP1257&quot;], [0x0827, &quot;lt-LT@win98&quot;, &quot;CP1257&quot;], [0x082e, &quot;wee-DE&quot;, &quot;CP1252&quot;], [0x046e, &quot;lb-LU&quot;, &quot;CP1252&quot;], [0x042f, &quot;mk-MK&quot;, &quot;CP1251&quot;], [0x043e, &quot;ms-MY&quot;, &quot;CP1252&quot;], [0x083e, &quot;ms-BN&quot;, &quot;CP1252&quot;], [0x044c, &quot;ml-IN&quot;, &quot;UNICODE&quot;], [0x043a, &quot;mt-MT&quot;, &quot;CP1252&quot;], [0x0481, &quot;mi-NZ&quot;, &quot;CP1252&quot;], [0x047a, &quot;arn-CL&quot;, &quot;CP1252&quot;], [0x044e, &quot;mr-IN&quot;, &quot;UNICODE&quot;], [0x047c, &quot;moh-CA&quot;, &quot;CP1252&quot;], [0x0450, &quot;mn-MN&quot;, &quot;CP1251&quot;], [0x0850, &quot;mn-CN&quot;, &quot;UNICODE&quot;], [0x0461, &quot;ne-NP&quot;, &quot;UNICODE&quot;], [0x0414, &quot;nb-NO&quot;, &quot;CP1252&quot;], [0x0814, &quot;nn-NO&quot;, &quot;CP1252&quot;], [0x0482, &quot;oc-FR&quot;, &quot;CP1252&quot;], [0x0448, &quot;or-IN&quot;, &quot;UNICODE&quot;], [0x0463, &quot;ps-AF&quot;, &quot;UNICODE&quot;], [0x0429, &quot;fa-IR&quot;, &quot;CP1256&quot;], [0x0415, &quot;pl-PL&quot;, &quot;CP1250&quot;], [0x0416, &quot;pt-BR&quot;, &quot;CP1252&quot;], [0x0816, &quot;pt-PT&quot;, &quot;CP1252&quot;], [0x0446, &quot;pa-IN&quot;, &quot;UNICODE&quot;], [0x046b, &quot;quz-BO&quot;, &quot;CP1252&quot;], [0x086b, &quot;quz-EC&quot;, &quot;CP1252&quot;], [0x0c6b, &quot;quz-PE&quot;, &quot;CP1252&quot;], [0x0418, &quot;ro-RO&quot;, &quot;CP1250&quot;], [0x0417, &quot;rm-CH&quot;, &quot;CP1252&quot;], [0x0419, &quot;ru-RU&quot;, &quot;CP1251&quot;], [0x243b, &quot;smn-FI&quot;, &quot;CP1252&quot;], [0x103b, &quot;smj-NO&quot;, &quot;CP1252&quot;], [0x143b, &quot;smj-SE&quot;, &quot;CP1252&quot;], [0x043b, &quot;se-NO&quot;, &quot;CP1252&quot;], [0x083b, &quot;se-SE&quot;, &quot;CP1252&quot;], [0x0c3b, &quot;se-FI&quot;, &quot;CP1252&quot;], [0x203b, &quot;sms-FI&quot;, &quot;CP1252&quot;], [0x183b, &quot;sma-NO&quot;, &quot;CP1252&quot;], [0x1c3b, &quot;sma-SE&quot;, &quot;CP1252&quot;], [0x044f, &quot;sa-IN&quot;, &quot;UNICODE&quot;], [0x0c1a, &quot;sr-SP-Cyrl&quot;, &quot;CP1251&quot;], [0x1c1a, &quot;sr-BA-Cyrl&quot;, &quot;CP1251&quot;], [0x081a, &quot;sr-SP-Latn&quot;, &quot;CP1250&quot;], [0x181a, &quot;sr-BA-Latn&quot;, &quot;CP1250&quot;], [0x046c, &quot;ns-ZA&quot;, &quot;CP1252&quot;], [0x0432, &quot;tn-ZA&quot;, &quot;CP1252&quot;], [0x045b, &quot;si-LK&quot;, &quot;UNICODE&quot;], [0x041b, &quot;sk-SK&quot;, &quot;CP1250&quot;], [0x0424, &quot;sl-SI&quot;, &quot;CP1250&quot;], [0x040a, &quot;es-ES-ts&quot;, &quot;CP1252&quot;], [0x080a, &quot;es-MX&quot;, &quot;CP1252&quot;], [0x0c0a, &quot;es-ES&quot;, &quot;CP1252&quot;], [0x100a, &quot;es-GT&quot;, &quot;CP1252&quot;], [0x140a, &quot;es-CR&quot;, &quot;CP1252&quot;], [0x180a, &quot;es-PA&quot;, &quot;CP1252&quot;], [0x1c0a, &quot;es-DO&quot;, &quot;CP1252&quot;], [0x200a, &quot;es-VE&quot;, &quot;CP1252&quot;], [0x240a, &quot;es-CO&quot;, &quot;CP1252&quot;], [0x280a, &quot;es-PE&quot;, &quot;CP1252&quot;], [0x2c0a, &quot;es-AR&quot;, &quot;CP1252&quot;], [0x300a, &quot;es-EC&quot;, &quot;CP1252&quot;], [0x340a, &quot;es-CL&quot;, &quot;CP1252&quot;], [0x380a, &quot;es-UY&quot;, &quot;CP1252&quot;], [0x3c0a, &quot;es-PY&quot;, &quot;CP1252&quot;], [0x400a, &quot;es-BO&quot;, &quot;CP1252&quot;], [0x440a, &quot;es-SV&quot;, &quot;CP1252&quot;], [0x480a, &quot;es-HN&quot;, &quot;CP1252&quot;], [0x4c0a, &quot;es-NI&quot;, &quot;CP1252&quot;], [0x500a, &quot;es-PR&quot;, &quot;CP1252&quot;], [0x540a, &quot;es-US&quot;, &quot;CP1252&quot;], [0x0430, &quot;sutu&quot;, &quot;UNICODE&quot;], [0x0441, &quot;sw-KE&quot;, &quot;CP1252&quot;], [0x041d, &quot;sv-SE&quot;, &quot;CP1252&quot;], [0x081d, &quot;sv-FI&quot;, &quot;CP1252&quot;], [0x045a, &quot;syr-SY&quot;, &quot;UNICODE&quot;], [0x0428, &quot;tg-TJ-Cyrl&quot;, &quot;CP1251&quot;], [0x085f, &quot;ber-DZ&quot;, &quot;CP1252&quot;], [0x0449, &quot;ta-IN&quot;, &quot;UNICODE&quot;], [0x0444, &quot;tt-RU&quot;, &quot;CP1251&quot;], [0x044a, &quot;te-IN&quot;, &quot;UNICODE&quot;], [0x041e, &quot;th-TH&quot;, &quot;CP874&quot;], [0x0451, &quot;bo-CN&quot;, &quot;UNICODE&quot;], [0x0851, &quot;bo-BT&quot;, &quot;UNICODE&quot;], [0x041f, &quot;tr-TR&quot;, &quot;CP1254&quot;], [0x0442, &quot;tk-TM&quot;, &quot;CP1251&quot;], [0x0480, &quot;ug-CN&quot;, &quot;CP1256&quot;], [0x0422, &quot;uk-UA&quot;, &quot;CP1251&quot;], [0x042e, &quot;wen-DE&quot;, &quot;CP1252&quot;], [0x0420, &quot;ur-PK&quot;, &quot;CP1256&quot;], [0x0820, &quot;tr-IN&quot;, &quot;CP1256&quot;], [0x0443, &quot;uz-UZ-Latn&quot;, &quot;CP1254&quot;], [0x0843, &quot;uz-UZ-Cyrl&quot;, &quot;CP1251&quot;], [0x042a, &quot;vi-VN&quot;, &quot;CP1252&quot;], [0x0452, &quot;cy-GB&quot;, &quot;CP1252&quot;], [0x0488, &quot;wo-SN&quot;, &quot;CP1252&quot;], [0x0485, &quot;sah-RU&quot;, &quot;CP1251&quot;], [0x0478, &quot;ii-CN&quot;, &quot;UNICODE&quot;], [0x046a, &quot;yo-NG&quot;, &quot;UNICODE&quot;], ]</td>
98
+ </tr>
99
+ <tr valign='top'>
100
+ <td>&nbsp;</td>
101
+ <td colspan="2" class="attr-desc">
102
+ LangID, locale name, code page
103
+
104
+ </td>
105
+ </tr>
106
+ </table>
107
+
108
+
109
+ <div class="sectiontitle">Public Instance methods</div>
110
+ <div class="method">
111
+ <div class="title">
112
+ <a name="M000093"></a><b>default_locale</b>()
113
+ [ <a href="javascript:openCode('SystemWin32.src/M000093.html')">source</a> ]
114
+ </div>
115
+ <div class="description">
116
+ <p>
117
+ Gets the default <a href="Object.html">Locale::Object</a>.
118
+ </p>
119
+ <ul>
120
+ <li>Returns: the default locale
121
+
122
+ </li>
123
+ </ul>
124
+ </div>
125
+ </div>
126
+ <div class="method">
127
+ <div class="title">
128
+ <a name="M000092"></a><b>default_locale=</b>(locale)
129
+ [ <a href="javascript:openCode('SystemWin32.src/M000092.html')">source</a> ]
130
+ </div>
131
+ <div class="description">
132
+ <p>
133
+ Sets a default locale. en.UTF-8 is the default value if not set.
134
+ </p>
135
+ <ul>
136
+ <li>locale: <a href="Object.html">Locale::Object</a>
137
+
138
+ </li>
139
+ <li>Returns: locale
140
+
141
+ </li>
142
+ </ul>
143
+ </div>
144
+ </div>
145
+ <div class="method">
146
+ <div class="title">
147
+ <a name="M000089"></a><b>get_charset</b>(locale)
148
+ [ <a href="javascript:openCode('SystemWin32.src/M000089.html')">source</a> ]
149
+ </div>
150
+ <div class="description">
151
+ <p>
152
+ Gets the charset of the locale. ENV(LC_ALL &gt; LC_CTYPE &gt; LC_MESSAGES
153
+ &gt; LANG) &gt; the default locale from GetUserDefaultLangID.
154
+ </p>
155
+ <ul>
156
+ <li>locale: <a href="Object.html">Locale::Object</a>
157
+
158
+ </li>
159
+ <li>Returns the charset of the locale
160
+
161
+ </li>
162
+ </ul>
163
+ </div>
164
+ </div>
165
+ <div class="method">
166
+ <div class="title">
167
+ <a name="M000091"></a><b>set_default_locale</b>(locale)
168
+ [ <a href="javascript:openCode('SystemWin32.src/M000091.html')">source</a> ]
169
+ </div>
170
+ <div class="description">
171
+ <p>
172
+ Sets a default locale. en.UTF-8 is the default value if not set.
173
+ </p>
174
+ <ul>
175
+ <li>locale: <a href="Object.html">Locale::Object</a> object. You can&#8217;t
176
+ set nil.
177
+
178
+ </li>
179
+ <li>Returns: self
180
+
181
+ </li>
182
+ </ul>
183
+ </div>
184
+ </div>
185
+ <div class="method">
186
+ <div class="title">
187
+ <a name="M000090"></a><b>system</b>()
188
+ [ <a href="javascript:openCode('SystemWin32.src/M000090.html')">source</a> ]
189
+ </div>
190
+ <div class="description">
191
+ <p>
192
+ Gets the system locale.
193
+ </p>
194
+ <ul>
195
+ <li>Returns the system locale (<a href="Object.html">Locale::Object</a>)
196
+
197
+ </li>
198
+ </ul>
199
+ </div>
200
+ </div>
201
+ </div>
202
+
203
+ </div>
204
+
205
+ </body>
206
+ </html>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>get_charset (Locale::SystemWin32)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/gettext/locale_win32.rb, line 26</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_charset</span>(<span class="ruby-identifier">locale</span>)
27
+ <span class="ruby-identifier">loc</span> = <span class="ruby-constant">LocaleTable</span>.<span class="ruby-identifier">find</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">to_win</span>}
28
+ <span class="ruby-identifier">loc</span> <span class="ruby-value">? </span><span class="ruby-identifier">loc</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;CP1252&quot;</span>
29
+ <span class="ruby-keyword kw">end</span></pre>
30
+ </body>
31
+ </html>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>system (Locale::SystemWin32)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/gettext/locale_win32.rb, line 33</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system</span>
27
+ <span class="ruby-identifier">lang</span> = <span class="ruby-keyword kw">nil</span>
28
+ <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">nil</span>
29
+ [<span class="ruby-value str">&quot;LC_ALL&quot;</span>, <span class="ruby-value str">&quot;LC_CTYPE&quot;</span>, <span class="ruby-value str">&quot;LC_MESSAGES&quot;</span>, <span class="ruby-value str">&quot;LANG&quot;</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">env</span><span class="ruby-operator">|</span>
30
+ <span class="ruby-identifier">lang</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">env</span>]
31
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lang</span>
32
+ <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">lang</span>)
33
+ <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-identifier">get_charset</span>(<span class="ruby-identifier">ret</span>)
34
+ <span class="ruby-keyword kw">break</span>
35
+ <span class="ruby-keyword kw">end</span>
36
+ <span class="ruby-keyword kw">end</span>
37
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">lang</span>
38
+ <span class="ruby-identifier">lang</span> = <span class="ruby-constant">LocaleTable</span>.<span class="ruby-identifier">assoc</span>(<span class="ruby-identifier">locale_id</span>)
39
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lang</span>
40
+ <span class="ruby-identifier">ret</span> = <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">lang</span>[<span class="ruby-value">1</span>], <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">lang</span>[<span class="ruby-value">2</span>])
41
+ <span class="ruby-keyword kw">else</span>
42
+ <span class="ruby-identifier">ret</span> = <span class="ruby-ivar">@@default_locale</span>
43
+ <span class="ruby-keyword kw">end</span>
44
+ <span class="ruby-keyword kw">end</span>
45
+ <span class="ruby-identifier">ret</span>
46
+ <span class="ruby-keyword kw">end</span></pre>
47
+ </body>
48
+ </html>
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>set_default_locale (Locale::SystemWin32)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/gettext/locale_win32.rb, line 58</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_default_locale</span>(<span class="ruby-identifier">locale</span>)
27
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Wrong parameter: #{locale}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">nil?</span>
28
+ <span class="ruby-ivar">@@default_locale</span> = <span class="ruby-identifier">locale</span>
29
+ <span class="ruby-keyword kw">self</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </html>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>default_locale= (Locale::SystemWin32)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/gettext/locale_win32.rb, line 67</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_locale=</span>(<span class="ruby-identifier">locale</span>)
27
+ <span class="ruby-identifier">set_default_locale</span>(<span class="ruby-identifier">locale</span>)
28
+ <span class="ruby-identifier">locale</span>
29
+ <span class="ruby-keyword kw">end</span></pre>
30
+ </body>
31
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>default_locale (Locale::SystemWin32)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/gettext/locale_win32.rb, line 74</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_locale</span>
27
+ <span class="ruby-ivar">@@default_locale</span>
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,279 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Class: MOFile</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />MOFile</td>
55
+ <td align="right">
56
+ <table cellspacing=0 cellpadding=2>
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../files/lib/gettext/mo_rb.html">lib/gettext/mo.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ Hash
67
+ </td>
68
+ </tr>
69
+ </table>
70
+ </td>
71
+ </tr>
72
+ </table>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+ <div id="content">
77
+
78
+
79
+
80
+
81
+ <div class="sectiontitle">Methods</div>
82
+ <ul>
83
+ <li><a href="#M000008">hash_string</a></li>
84
+ <li><a href="#M000004">load</a></li>
85
+ <li><a href="#M000010">load_from_file</a></li>
86
+ <li><a href="#M000005">load_from_stream</a></li>
87
+ <li><a href="#M000002">new</a></li>
88
+ <li><a href="#M000007">next_prime</a></li>
89
+ <li><a href="#M000001">open</a></li>
90
+ <li><a href="#M000006">prime?</a></li>
91
+ <li><a href="#M000011">save_to_file</a></li>
92
+ <li><a href="#M000009">save_to_stream</a></li>
93
+ <li><a href="#M000012">set_comment</a></li>
94
+ <li><a href="#M000003">update!</a></li>
95
+ </ul>
96
+
97
+
98
+
99
+ <div class="sectiontitle">Classes and Modules</div>
100
+ Class <a href="MOFile/InvalidFormat.html" class="link">MOFile::InvalidFormat</a><br />
101
+
102
+
103
+ <div class="sectiontitle">Constants</div>
104
+ <table border='0' cellpadding='5'>
105
+ <tr valign='top'>
106
+ <td class="attr-name">Header</td>
107
+ <td>=</td>
108
+ <td class="attr-value">Struct.new(:magic, :revision, :nstrings, :orig_table_offset, :translated_table_offset, :hash_table_size, :hash_table_offset)</td>
109
+ </tr>
110
+ <tr valign='top'>
111
+ <td class="attr-name">MAGIC_BIG_ENDIAN</td>
112
+ <td>=</td>
113
+ <td class="attr-value">&quot;\x95\x04\x12\xde&quot;</td>
114
+ </tr>
115
+ <tr valign='top'>
116
+ <td class="attr-name">MAGIC_LITTLE_ENDIAN</td>
117
+ <td>=</td>
118
+ <td class="attr-value">&quot;\xde\x12\x04\x95&quot;</td>
119
+ </tr>
120
+ <tr valign='top'>
121
+ <td class="attr-name">HASHWORDBITS</td>
122
+ <td>=</td>
123
+ <td class="attr-value">32</td>
124
+ </tr>
125
+ <tr valign='top'>
126
+ <td>&nbsp;</td>
127
+ <td colspan="2" class="attr-desc">
128
+ From gettext-0.12.1/gettext-runtime/intl/hash-string.h Defines the so
129
+ called `hashpjw&#8217; function by P.J. Weinberger [see Aho/Sethi/Ullman,
130
+ COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone
131
+ Laboratories, Inc.]
132
+
133
+ </td>
134
+ </tr>
135
+ </table>
136
+
137
+ <div class="sectiontitle">Attributes</div>
138
+ <table border='0' cellpadding='5'>
139
+ <tr valign='top'>
140
+ <td class='attr-rw'>
141
+ [R]
142
+ </td>
143
+ <td class='attr-name'>charset</td>
144
+ <td class='attr-desc'></td>
145
+ </tr>
146
+ <tr valign='top'>
147
+ <td class='attr-rw'>
148
+ [R]
149
+ </td>
150
+ <td class='attr-name'>filename</td>
151
+ <td class='attr-desc'></td>
152
+ </tr>
153
+ <tr valign='top'>
154
+ <td class='attr-rw'>
155
+ [RW]
156
+ </td>
157
+ <td class='attr-name'>last_modified</td>
158
+ <td class='attr-desc'></td>
159
+ </tr>
160
+ <tr valign='top'>
161
+ <td class='attr-rw'>
162
+ [RW]
163
+ </td>
164
+ <td class='attr-name'>little_endian</td>
165
+ <td class='attr-desc'></td>
166
+ </tr>
167
+ <tr valign='top'>
168
+ <td class='attr-rw'>
169
+ [R]
170
+ </td>
171
+ <td class='attr-name'>nplurals</td>
172
+ <td class='attr-desc'></td>
173
+ </tr>
174
+ <tr valign='top'>
175
+ <td class='attr-rw'>
176
+ [RW]
177
+ </td>
178
+ <td class='attr-name'>path</td>
179
+ <td class='attr-desc'></td>
180
+ </tr>
181
+ <tr valign='top'>
182
+ <td class='attr-rw'>
183
+ [R]
184
+ </td>
185
+ <td class='attr-name'>plural</td>
186
+ <td class='attr-desc'></td>
187
+ </tr>
188
+ </table>
189
+
190
+ <div class="sectiontitle">Public Class methods</div>
191
+ <div class="method">
192
+ <div class="title">
193
+ <a name="M000002"></a><b>new</b>(output_charset = nil)
194
+ [ <a href="javascript:openCode('MOFile.src/M000002.html')">source</a> ]
195
+ </div>
196
+ </div>
197
+ <div class="method">
198
+ <div class="title">
199
+ <a name="M000001"></a><b>open</b>(arg = nil, output_charset = nil)
200
+ [ <a href="javascript:openCode('MOFile.src/M000001.html')">source</a> ]
201
+ </div>
202
+ </div>
203
+ <div class="sectiontitle">Public Instance methods</div>
204
+ <div class="method">
205
+ <div class="title">
206
+ <a name="M000008"></a><b>hash_string</b>(str)
207
+ [ <a href="javascript:openCode('MOFile.src/M000008.html')">source</a> ]
208
+ </div>
209
+ </div>
210
+ <div class="method">
211
+ <div class="title">
212
+ <a name="M000004"></a><b>load</b>(arg)
213
+ [ <a href="javascript:openCode('MOFile.src/M000004.html')">source</a> ]
214
+ </div>
215
+ </div>
216
+ <div class="method">
217
+ <div class="title">
218
+ <a name="M000010"></a><b>load_from_file</b>(filename)
219
+ [ <a href="javascript:openCode('MOFile.src/M000010.html')">source</a> ]
220
+ </div>
221
+ </div>
222
+ <div class="method">
223
+ <div class="title">
224
+ <a name="M000005"></a><b>load_from_stream</b>(io)
225
+ [ <a href="javascript:openCode('MOFile.src/M000005.html')">source</a> ]
226
+ </div>
227
+ </div>
228
+ <div class="method">
229
+ <div class="title">
230
+ <a name="M000007"></a><b>next_prime</b>(seed)
231
+ [ <a href="javascript:openCode('MOFile.src/M000007.html')">source</a> ]
232
+ </div>
233
+ <div class="description">
234
+ <p>
235
+ From gettext-0.12.1/gettext-tools/lib/hash.c
236
+ </p>
237
+ </div>
238
+ </div>
239
+ <div class="method">
240
+ <div class="title">
241
+ <a name="M000006"></a><b>prime?</b>(candidate)
242
+ [ <a href="javascript:openCode('MOFile.src/M000006.html')">source</a> ]
243
+ </div>
244
+ <div class="description">
245
+ <p>
246
+ From gettext-0.12.1/gettext-tools/lib/hash.c
247
+ </p>
248
+ </div>
249
+ </div>
250
+ <div class="method">
251
+ <div class="title">
252
+ <a name="M000011"></a><b>save_to_file</b>(filename)
253
+ [ <a href="javascript:openCode('MOFile.src/M000011.html')">source</a> ]
254
+ </div>
255
+ </div>
256
+ <div class="method">
257
+ <div class="title">
258
+ <a name="M000009"></a><b>save_to_stream</b>(io)
259
+ [ <a href="javascript:openCode('MOFile.src/M000009.html')">source</a> ]
260
+ </div>
261
+ </div>
262
+ <div class="method">
263
+ <div class="title">
264
+ <a name="M000012"></a><b>set_comment</b>(msgid_or_sym, comment)
265
+ [ <a href="javascript:openCode('MOFile.src/M000012.html')">source</a> ]
266
+ </div>
267
+ </div>
268
+ <div class="method">
269
+ <div class="title">
270
+ <a name="M000003"></a><b>update!</b>()
271
+ [ <a href="javascript:openCode('MOFile.src/M000003.html')">source</a> ]
272
+ </div>
273
+ </div>
274
+ </div>
275
+
276
+ </div>
277
+
278
+ </body>
279
+ </html>