gettext 1.90.0 → 1.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +45 -0
- data/NEWS +22 -0
- data/README +5 -3
- data/Rakefile +4 -2
- data/bin/rgettext +2 -2
- data/bin/rmsgfmt +2 -2
- data/bin/rmsgmerge +2 -2
- data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
- data/doc/classes/ActionView/Helpers/FormBuilder.html +154 -0
- data/doc/classes/ActiveRecord/Base.html +47 -47
- data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +6 -6
- data/doc/classes/GetText.html +379 -327
- data/doc/classes/GetText/ActiveRecordParser.html +12 -12
- data/doc/classes/GetText/ErbContainer.html +12 -12
- data/doc/classes/GetText/ErbParser.html +6 -6
- data/doc/classes/GetText/PoParser.html +6 -6
- data/doc/classes/GetText/Rails.html +20 -20
- data/doc/classes/GetText/TextDomain.html +68 -68
- data/doc/classes/GetText/TextDomainManager.html +54 -54
- data/doc/classes/Locale.html +152 -151
- data/doc/classes/Locale/Object.html +92 -92
- data/doc/classes/Locale/SystemBase.html +32 -32
- data/doc/classes/Locale/SystemCGI.html +31 -31
- data/doc/classes/Locale/SystemWin32.html +19 -34
- data/doc/classes/Locale/SystemWin32Table.html +123 -0
- data/doc/classes/MOFile.html +28 -29
- data/doc/created.rid +1 -1
- data/doc/files/ChangeLog.html +60 -1
- data/doc/files/README.html +11 -4
- data/doc/files/lib/gettext/active_record_rb.html +1 -1
- data/doc/files/lib/gettext/cgi_rb.html +1 -1
- data/doc/files/lib/gettext/container_rb.html +1 -1
- data/doc/files/lib/gettext/erb_rb.html +1 -1
- data/doc/files/lib/gettext/iconv_rb.html +1 -1
- data/doc/files/lib/gettext/mo_rb.html +2 -1
- data/doc/files/lib/gettext/parser/active_record_rb.html +1 -1
- data/doc/files/lib/gettext/parser/erb_rb.html +1 -1
- data/doc/files/lib/gettext/parser/glade_rb.html +1 -1
- data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
- data/doc/files/lib/gettext/poparser_rb.html +1 -1
- data/doc/files/lib/gettext/rails_compat_rb.html +1 -1
- data/doc/files/lib/gettext/rails_rb.html +1 -1
- data/doc/files/lib/gettext/rgettext_rb.html +1 -1
- data/doc/files/lib/gettext/rmsgfmt_rb.html +1 -1
- data/doc/files/lib/gettext/rmsgmerge_rb.html +1 -1
- data/doc/files/lib/gettext/string_rb.html +1 -1
- data/doc/files/lib/gettext/textdomain_rb.html +1 -1
- data/doc/files/lib/gettext/textdomainmanager_rb.html +1 -1
- data/doc/files/lib/gettext/utils_rb.html +1 -1
- data/doc/files/lib/gettext/version_rb.html +1 -1
- data/doc/files/lib/gettext_rb.html +1 -1
- data/doc/files/lib/locale/base_rb.html +1 -1
- data/doc/files/lib/locale/cgi_rb.html +1 -1
- data/doc/files/lib/locale/jruby_rb.html +1 -1
- data/doc/files/lib/locale/object_rb.html +1 -1
- data/doc/files/lib/locale/posix_rb.html +1 -1
- data/doc/files/lib/locale/win32_rb.html +1 -1
- data/doc/files/lib/locale/win32_table_rb.html +1 -1
- data/doc/files/lib/locale_rb.html +1 -1
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_method_index.html +83 -81
- data/lib/gettext.rb +46 -21
- data/lib/gettext/active_record.rb +5 -5
- data/lib/gettext/mo.rb +4 -4
- data/lib/gettext/rails.rb +15 -3
- data/lib/gettext/textdomain.rb +44 -41
- data/lib/gettext/utils.rb +8 -1
- data/lib/gettext/version.rb +2 -2
- data/lib/locale/jruby.rb +3 -3
- data/lib/locale/win32.rb +2 -1
- data/lib/locale/win32_table.rb +2 -2
- data/po/bs/rails.po +39 -37
- data/po/bs/rgettext.po +63 -53
- data/po/ca/rails.po +39 -36
- data/po/ca/rgettext.po +64 -54
- data/po/cs/rails.po +39 -35
- data/po/cs/rgettext.po +63 -53
- data/po/de/rails.po +38 -36
- data/po/de/rgettext.po +67 -57
- data/po/el/rails.po +42 -39
- data/po/el/rgettext.po +63 -53
- data/po/eo/rails.po +39 -37
- data/po/eo/rgettext.po +63 -53
- data/po/es/rails.po +38 -35
- data/po/es/rgettext.po +64 -54
- data/po/et/rails.po +38 -36
- data/po/fr/rails.po +39 -37
- data/po/fr/rgettext.po +65 -56
- data/po/hr/rails.po +40 -37
- data/po/hr/rgettext.po +63 -53
- data/po/hu/rails.po +38 -35
- data/po/hu/rgettext.po +64 -54
- data/po/it/rails.po +34 -32
- data/po/it/rgettext.po +62 -54
- data/po/ja/rails.po +42 -40
- data/po/ja/rgettext.po +64 -54
- data/po/ko/rails.po +38 -36
- data/po/ko/rgettext.po +64 -54
- data/po/nb/rails.po +37 -32
- data/po/nb/rgettext.po +62 -52
- data/po/nl/rails.po +39 -38
- data/po/nl/rgettext.po +64 -54
- data/po/pt_BR/rails.po +38 -36
- data/po/pt_BR/rgettext.po +63 -53
- data/po/rails.pot +41 -39
- data/po/rgettext.pot +55 -47
- data/po/ru/rails.po +41 -37
- data/po/ru/rgettext.po +63 -53
- data/po/sr/rails.po +149 -0
- data/po/sr/rgettext.po +135 -0
- data/po/sv/rgettext.po +60 -52
- data/po/ua/rails.po +39 -37
- data/po/ua/rgettext.po +67 -57
- data/po/vi/rails.po +39 -37
- data/po/vi/rgettext.po +61 -51
- data/po/zh/rails.po +37 -36
- data/po/zh/rgettext.po +66 -56
- data/po/zh_TW/rails.po +37 -36
- data/po/zh_TW/rgettext.po +64 -54
- data/samples/cgi/locale/sr/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/sr/helloerb1.po +60 -0
- data/samples/cgi/po/sr/helloerb2.po +52 -0
- data/samples/cgi/po/sr/hellolib.po +24 -0
- data/samples/cgi/po/sr/main.po +80 -0
- data/samples/locale/hu/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/it/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/po/hu/hellogtk.po +3 -3
- data/samples/po/it/hello2.po +1 -1
- data/samples/po/sr/hello.po +22 -0
- data/samples/po/sr/hello2.po +30 -0
- data/samples/po/sr/hello_noop.po +26 -0
- data/samples/po/sr/hello_plural.po +26 -0
- data/samples/po/sr/helloglade2.po +32 -0
- data/samples/po/sr/hellogtk.po +22 -0
- data/samples/po/sr/hellotk.po +24 -0
- data/samples/po/zh/helloglade2.po +1 -1
- data/samples/po/zh/hellotk.po +1 -1
- data/samples/rails/app/views/articles/edit.html.erb +3 -0
- data/samples/rails/app/views/articles/new.html.erb +3 -0
- data/samples/rails/config/database.yml +9 -4
- data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/sr/blog.po +106 -0
- data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +28 -0
- data/test/locale/fr/LC_MESSAGES/test2.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test2.mo +0 -0
- data/test/po/fr/test2.po +1 -1
- data/test/po/ja/test2.po +1 -1
- data/test/rails/app/views/articles/show.html.erb +1 -0
- data/test/rails/config/environment.rb +1 -1
- data/test/rails/test/functional/articles_controller_test.rb +2 -2
- data/test/rails/test/functional/mailer_controller_test.rb +3 -1
- data/test/rails/test/functional/users_controller_test.rb +1 -1
- data/test/rails/test/result/en/custom_error_message_with_plural.html +4 -4
- data/test/rails/test/result/en/show.html +1 -0
- data/test/rails/test/result/fr/custom_error_message_with_plural.html +4 -4
- data/test/rails/test/result/ja/custom_error_message_with_plural.html +4 -4
- data/test/rails/test/result/ja/show.html +2 -1
- data/test/test.sh +1 -0
- data/test/test_active_record.rb +4 -4
- data/test/test_gettext.rb +10 -10
- data/test/test_gettext_toplevel.rb +44 -0
- data/test/test_locale.rb +1 -19
- metadata +93 -42
- data/test/rails/locale/ja/LC_MESSAGES/rails_test.mo +0 -0
- data/test/rails/log/development.log +0 -136
- data/test/rails/log/test.log +0 -2203
|
@@ -87,11 +87,11 @@ shouldn‘t use this directly.
|
|
|
87
87
|
<h3 class="section-bar">Methods</h3>
|
|
88
88
|
|
|
89
89
|
<div class="name-list">
|
|
90
|
-
<a href="#
|
|
91
|
-
<a href="#
|
|
92
|
-
<a href="#
|
|
93
|
-
<a href="#
|
|
94
|
-
<a href="#
|
|
90
|
+
<a href="#M000105">cgi</a>
|
|
91
|
+
<a href="#M000104">cgi=</a>
|
|
92
|
+
<a href="#M000106">default_locale</a>
|
|
93
|
+
<a href="#M000103">set_cgi</a>
|
|
94
|
+
<a href="#M000102">system</a>
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
@@ -113,11 +113,11 @@ shouldn‘t use this directly.
|
|
|
113
113
|
<div id="methods">
|
|
114
114
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
115
115
|
|
|
116
|
-
<div id="method-
|
|
117
|
-
<a name="
|
|
116
|
+
<div id="method-M000105" class="method-detail">
|
|
117
|
+
<a name="M000105"></a>
|
|
118
118
|
|
|
119
119
|
<div class="method-heading">
|
|
120
|
-
<a href="#
|
|
120
|
+
<a href="#M000105" class="method-signature">
|
|
121
121
|
<span class="method-name">cgi</span><span class="method-args">()</span>
|
|
122
122
|
</a>
|
|
123
123
|
</div>
|
|
@@ -132,8 +132,8 @@ Gets the CGI object. If it is nil, returns new CGI object.
|
|
|
132
132
|
</li>
|
|
133
133
|
</ul>
|
|
134
134
|
<p><a class="source-toggle" href="#"
|
|
135
|
-
onclick="toggleCode('
|
|
136
|
-
<div class="method-source-code" id="
|
|
135
|
+
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
|
136
|
+
<div class="method-source-code" id="M000105-source">
|
|
137
137
|
<pre>
|
|
138
138
|
<span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 68</span>
|
|
139
139
|
68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi</span>
|
|
@@ -145,11 +145,11 @@ Gets the CGI object. If it is nil, returns new CGI object.
|
|
|
145
145
|
</div>
|
|
146
146
|
</div>
|
|
147
147
|
|
|
148
|
-
<div id="method-
|
|
149
|
-
<a name="
|
|
148
|
+
<div id="method-M000104" class="method-detail">
|
|
149
|
+
<a name="M000104"></a>
|
|
150
150
|
|
|
151
151
|
<div class="method-heading">
|
|
152
|
-
<a href="#
|
|
152
|
+
<a href="#M000104" class="method-signature">
|
|
153
153
|
<span class="method-name">cgi=</span><span class="method-args">(cgi_)</span>
|
|
154
154
|
</a>
|
|
155
155
|
</div>
|
|
@@ -167,8 +167,8 @@ Sets a CGI object.
|
|
|
167
167
|
</li>
|
|
168
168
|
</ul>
|
|
169
169
|
<p><a class="source-toggle" href="#"
|
|
170
|
-
onclick="toggleCode('
|
|
171
|
-
<div class="method-source-code" id="
|
|
170
|
+
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
|
171
|
+
<div class="method-source-code" id="M000104-source">
|
|
172
172
|
<pre>
|
|
173
173
|
<span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 61</span>
|
|
174
174
|
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi=</span>(<span class="ruby-identifier">cgi_</span>)
|
|
@@ -180,11 +180,11 @@ Sets a CGI object.
|
|
|
180
180
|
</div>
|
|
181
181
|
</div>
|
|
182
182
|
|
|
183
|
-
<div id="method-
|
|
184
|
-
<a name="
|
|
183
|
+
<div id="method-M000106" class="method-detail">
|
|
184
|
+
<a name="M000106"></a>
|
|
185
185
|
|
|
186
186
|
<div class="method-heading">
|
|
187
|
-
<a href="#
|
|
187
|
+
<a href="#M000106" class="method-signature">
|
|
188
188
|
<span class="method-name">default_locale</span><span class="method-args">()</span>
|
|
189
189
|
</a>
|
|
190
190
|
</div>
|
|
@@ -199,8 +199,8 @@ Gets the default <a href="Object.html">Locale::Object</a>.
|
|
|
199
199
|
</li>
|
|
200
200
|
</ul>
|
|
201
201
|
<p><a class="source-toggle" href="#"
|
|
202
|
-
onclick="toggleCode('
|
|
203
|
-
<div class="method-source-code" id="
|
|
202
|
+
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
|
203
|
+
<div class="method-source-code" id="M000106-source">
|
|
204
204
|
<pre>
|
|
205
205
|
<span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 75</span>
|
|
206
206
|
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_locale</span>
|
|
@@ -211,11 +211,11 @@ Gets the default <a href="Object.html">Locale::Object</a>.
|
|
|
211
211
|
</div>
|
|
212
212
|
</div>
|
|
213
213
|
|
|
214
|
-
<div id="method-
|
|
215
|
-
<a name="
|
|
214
|
+
<div id="method-M000103" class="method-detail">
|
|
215
|
+
<a name="M000103"></a>
|
|
216
216
|
|
|
217
217
|
<div class="method-heading">
|
|
218
|
-
<a href="#
|
|
218
|
+
<a href="#M000103" class="method-signature">
|
|
219
219
|
<span class="method-name">set_cgi</span><span class="method-args">(cgi_)</span>
|
|
220
220
|
</a>
|
|
221
221
|
</div>
|
|
@@ -233,8 +233,8 @@ Sets a CGI object.
|
|
|
233
233
|
</li>
|
|
234
234
|
</ul>
|
|
235
235
|
<p><a class="source-toggle" href="#"
|
|
236
|
-
onclick="toggleCode('
|
|
237
|
-
<div class="method-source-code" id="
|
|
236
|
+
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
|
237
|
+
<div class="method-source-code" id="M000103-source">
|
|
238
238
|
<pre>
|
|
239
239
|
<span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 53</span>
|
|
240
240
|
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_cgi</span>(<span class="ruby-identifier">cgi_</span>)
|
|
@@ -246,11 +246,11 @@ Sets a CGI object.
|
|
|
246
246
|
</div>
|
|
247
247
|
</div>
|
|
248
248
|
|
|
249
|
-
<div id="method-
|
|
250
|
-
<a name="
|
|
249
|
+
<div id="method-M000102" class="method-detail">
|
|
250
|
+
<a name="M000102"></a>
|
|
251
251
|
|
|
252
252
|
<div class="method-heading">
|
|
253
|
-
<a href="#
|
|
253
|
+
<a href="#M000102" class="method-signature">
|
|
254
254
|
<span class="method-name">system</span><span class="method-args">()</span>
|
|
255
255
|
</a>
|
|
256
256
|
</div>
|
|
@@ -260,14 +260,14 @@ Sets a CGI object.
|
|
|
260
260
|
Gets the default locale using setlocale and nl_langinfo.
|
|
261
261
|
</p>
|
|
262
262
|
<ul>
|
|
263
|
-
<li>Returns the <a href="SystemCGI.html#
|
|
263
|
+
<li>Returns the <a href="SystemCGI.html#M000102">system</a> locale (<a
|
|
264
264
|
href="Object.html">Locale::Object</a>).
|
|
265
265
|
|
|
266
266
|
</li>
|
|
267
267
|
</ul>
|
|
268
268
|
<p><a class="source-toggle" href="#"
|
|
269
|
-
onclick="toggleCode('
|
|
270
|
-
<div class="method-source-code" id="
|
|
269
|
+
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
|
270
|
+
<div class="method-source-code" id="M000102-source">
|
|
271
271
|
<pre>
|
|
272
272
|
<span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 26</span>
|
|
273
273
|
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system</span>
|
|
@@ -55,10 +55,6 @@
|
|
|
55
55
|
<tr class="top-aligned-row">
|
|
56
56
|
<td><strong>In:</strong></td>
|
|
57
57
|
<td>
|
|
58
|
-
<a href="../../files/lib/locale/win32_table_rb.html">
|
|
59
|
-
lib/locale/win32_table.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
58
|
<a href="../../files/lib/locale/win32_rb.html">
|
|
63
59
|
lib/locale/win32.rb
|
|
64
60
|
</a>
|
|
@@ -91,7 +87,7 @@ is a low-level class. Application shouldn‘t use this directly.
|
|
|
91
87
|
<h3 class="section-bar">Methods</h3>
|
|
92
88
|
|
|
93
89
|
<div class="name-list">
|
|
94
|
-
<a href="#
|
|
90
|
+
<a href="#M000101">get_charset</a>
|
|
95
91
|
</div>
|
|
96
92
|
</div>
|
|
97
93
|
|
|
@@ -99,28 +95,17 @@ is a low-level class. Application shouldn‘t use this directly.
|
|
|
99
95
|
|
|
100
96
|
|
|
101
97
|
<!-- if includes -->
|
|
98
|
+
<div id="includes">
|
|
99
|
+
<h3 class="section-bar">Included Modules</h3>
|
|
102
100
|
|
|
103
|
-
|
|
101
|
+
<div id="includes-list">
|
|
102
|
+
<span class="include-name"><a href="SystemWin32Table.html">SystemWin32Table</a></span>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
104
105
|
|
|
106
|
+
<div id="section">
|
|
105
107
|
|
|
106
|
-
<div id="constants-list">
|
|
107
|
-
<h3 class="section-bar">Constants</h3>
|
|
108
108
|
|
|
109
|
-
<div class="name-list">
|
|
110
|
-
<table summary="Constants">
|
|
111
|
-
<tr class="top-aligned-row context-row">
|
|
112
|
-
<td class="context-item-name">LocaleTable</td>
|
|
113
|
-
<td>=</td>
|
|
114
|
-
<td class="context-item-value">[ [0x0000, "en", "CP1252"], [0x007f, "invariant", "CP1252"], [0x0400, "invalid", "CP1252"], [0x0800, "system", "CP1252"], [0x0436, "af-ZA", "CP1252"], [0x041c, "sq-AL", "CP1252"], [0x0484, "gsw-FR", "CP1252"], [0x045e, "am-ET", "UNICODE"], [0x0401, "ar-SA", "CP1256"], [0x0801, "ar-IQ", "CP1256"], [0x0c01, "ar-EG", "CP1256"], [0x1001, "ar-LY", "CP1256"], [0x1401, "ar-DZ", "CP1256"], [0x1801, "ar-MA", "CP1256"], [0x1c01, "ar-TN", "CP1256"], [0x2001, "ar-OM", "CP1256"], [0x2401, "ar-YE", "CP1256"], [0x2801, "ar-SY", "CP1256"], [0x2c01, "ar-JO", "CP1256"], [0x3001, "ar-LB", "CP1256"], [0x3401, "ar-KW", "CP1256"], [0x3801, "ar-AE", "CP1256"], [0x3c01, "ar-BH", "CP1256"], [0x4001, "ar-QA", "CP1256"], [0x042b, "hy-AM", "UNICODE"], [0x044d, "as-IN", "UNICODE"], [0x042c, "az-AZ-Latn", "CP1254"], [0x082c, "az-AZ-Cyrl", "CP1251"], [0x046d, "ba-RU", "UNICODE"], [0x042d, "eu-ES", "CP1252"], [0x0423, "be-BY", "CP1251"], [0x0445, "bn-IN", "UNICODE"], [0x201a, "bs-BA-Cyrl", "CP1251"], [0x141a, "bs-BA-Latn", "CP1250"], [0x047e, "br-FR", "CP1251"], [0x0402, "bg-BG", "CP1251"], [0x0455, "my-MM", "UNICODE"], [0x0403, "ca-ES", "CP1252"], [0x0004, "zh-CHS", "CP936"], [0x0404, "zh-TW", "CP950"], [0x0804, "zh-CN", "CP936"], [0x0c04, "zh-HK", "CP950"], [0x1004, "zh-SG", "CP936"], [0x1404, "zh-MO", "CP950"], [0x7c04, "zh-CHT", "CP950"], [0x0483, "co-FR", "CP1252"], [0x041a, "hr-HR", "CP1250"], [0x101a, "hr-BA", "CP1250"], [0x0405, "cs-CZ", "CP1250"], [0x0406, "da-DK", "CP1252"], [0x048c, "gbz-AF", "CP1256"], [0x0465, "dv-MV", "UNICODE"], [0x0413, "nl-NL", "CP1252"], [0x0813, "nl-BE", "CP1252"], [0x0409, "en-US", "CP1252"], [0x0809, "en-GB", "CP1252"], [0x0c09, "en-AU", "CP1252"], [0x1009, "en-CA", "CP1252"], [0x1409, "en-NZ", "CP1252"], [0x1809, "en-IE", "CP1252"], [0x1c09, "en-ZA", "CP1252"], [0x2009, "en-JA", "CP1252"], [0x2409, "en-CB", "CP1252"], [0x2809, "en-BZ", "CP1252"], [0x2c09, "en-TT", "CP1252"], [0x3009, "en-ZW", "CP1252"], [0x3409, "en-PH", "CP1252"], [0x4009, "en-IN", "CP1252"], [0x4409, "en-MY", "CP1252"], [0x4809, "en-SG", "CP1252"], [0x0425, "et-EE", "CP1257"], [0x0438, "fo-FO", "CP1252"], [0x464, "fil-PH", "CP1252"], [0x040b, "fi-FI", "CP1252"], [0x040c, "fr-FR", "CP1252"], [0x080c, "fr-BE", "CP1252"], [0x0c0c, "fr-CA", "CP1252"], [0x100c, "fr-CH", "CP1252"], [0x140c, "fr-LU", "CP1252"], [0x180c, "fr-MC", "CP1252"], [0x0462, "fy-NL", "CP1252"], [0x0456, "gl-ES", "CP1252"], [0x0437, "ka-GE", "UNICODE"], [0x0407, "de-DE", "CP1252"], [0x0807, "de-CH", "CP1252"], [0x0c07, "de-AT", "CP1252"], [0x1007, "de-LU", "CP1252"], [0x1407, "de-LI", "CP1252"], [0x0408, "el-GR", "CP1253"], [0x046f, "kl-GL", "CP1252"], [0x0447, "gu-IN", "UNICODE"], [0x0468, "ha-NG-Latn", "CP1252"], [0x040d, "he-IL", "CP1255"], [0x0439, "hi-IN", "UNICODE"], [0x040e, "hu-HU", "CP1250"], [0x040f, "is-IS", "CP1252"], [0x0421, "id-ID", "CP1252"], [0x045d, "iu-CA-Cans", "UNICODE"], [0x085d, "iu-CA-Latn", "CP1252"], [0x083c, "ga-IE", "CP1252"], [0x0434, "xh-ZA", "CP1252"], [0x0435, "zu-ZA", "CP1252"], [0x0410, "it-IT", "CP1252"], [0x0810, "it-CH", "CP1252"], [0x0411, "ja-JP", "CP932"], [0x044b, "kn-IN", "UNICODE"], [0x043f, "kk-KZ", "CP1251"], [0x0453, "kh-KH", "UNICODE"], [0x0486, "qut-GT", "CP1252"], [0x0487, "rw-RW", "CP1252"], [0x0457, "kok-IN", "UNICODE"], [0x0412, "ko-KR", "CP949"], [0x0812, "ko-KR@win95", "CP949"], [0x0440, "ky-KG", "CP1251"], [0x0454, "lo-LA", "UNICODE"], [0x0426, "lv-LV", "CP1257"], [0x0427, "lt-LT", "CP1257"], [0x0827, "lt-LT@win98", "CP1257"], [0x082e, "wee-DE", "CP1252"], [0x046e, "lb-LU", "CP1252"], [0x042f, "mk-MK", "CP1251"], [0x043e, "ms-MY", "CP1252"], [0x083e, "ms-BN", "CP1252"], [0x044c, "ml-IN", "UNICODE"], [0x043a, "mt-MT", "CP1252"], [0x0481, "mi-NZ", "CP1252"], [0x047a, "arn-CL", "CP1252"], [0x044e, "mr-IN", "UNICODE"], [0x047c, "moh-CA", "CP1252"], [0x0450, "mn-MN", "CP1251"], [0x0850, "mn-CN", "UNICODE"], [0x0461, "ne-NP", "UNICODE"], [0x0414, "nb-NO", "CP1252"], [0x0814, "nn-NO", "CP1252"], [0x0482, "oc-FR", "CP1252"], [0x0448, "or-IN", "UNICODE"], [0x0463, "ps-AF", "UNICODE"], [0x0429, "fa-IR", "CP1256"], [0x0415, "pl-PL", "CP1250"], [0x0416, "pt-BR", "CP1252"], [0x0816, "pt-PT", "CP1252"], [0x0446, "pa-IN", "UNICODE"], [0x046b, "quz-BO", "CP1252"], [0x086b, "quz-EC", "CP1252"], [0x0c6b, "quz-PE", "CP1252"], [0x0418, "ro-RO", "CP1250"], [0x0417, "rm-CH", "CP1252"], [0x0419, "ru-RU", "CP1251"], [0x243b, "smn-FI", "CP1252"], [0x103b, "smj-NO", "CP1252"], [0x143b, "smj-SE", "CP1252"], [0x043b, "se-NO", "CP1252"], [0x083b, "se-SE", "CP1252"], [0x0c3b, "se-FI", "CP1252"], [0x203b, "sms-FI", "CP1252"], [0x183b, "sma-NO", "CP1252"], [0x1c3b, "sma-SE", "CP1252"], [0x044f, "sa-IN", "UNICODE"], [0x0c1a, "sr-SP-Cyrl", "CP1251"], [0x1c1a, "sr-BA-Cyrl", "CP1251"], [0x081a, "sr-SP-Latn", "CP1250"], [0x181a, "sr-BA-Latn", "CP1250"], [0x046c, "ns-ZA", "CP1252"], [0x0432, "tn-ZA", "CP1252"], [0x045b, "si-LK", "UNICODE"], [0x041b, "sk-SK", "CP1250"], [0x0424, "sl-SI", "CP1250"], [0x040a, "es-ES-ts", "CP1252"], [0x080a, "es-MX", "CP1252"], [0x0c0a, "es-ES", "CP1252"], [0x100a, "es-GT", "CP1252"], [0x140a, "es-CR", "CP1252"], [0x180a, "es-PA", "CP1252"], [0x1c0a, "es-DO", "CP1252"], [0x200a, "es-VE", "CP1252"], [0x240a, "es-CO", "CP1252"], [0x280a, "es-PE", "CP1252"], [0x2c0a, "es-AR", "CP1252"], [0x300a, "es-EC", "CP1252"], [0x340a, "es-CL", "CP1252"], [0x380a, "es-UY", "CP1252"], [0x3c0a, "es-PY", "CP1252"], [0x400a, "es-BO", "CP1252"], [0x440a, "es-SV", "CP1252"], [0x480a, "es-HN", "CP1252"], [0x4c0a, "es-NI", "CP1252"], [0x500a, "es-PR", "CP1252"], [0x540a, "es-US", "CP1252"], [0x0430, "sutu", "UNICODE"], [0x0441, "sw-KE", "CP1252"], [0x041d, "sv-SE", "CP1252"], [0x081d, "sv-FI", "CP1252"], [0x045a, "syr-SY", "UNICODE"], [0x0428, "tg-TJ-Cyrl", "CP1251"], [0x085f, "ber-DZ", "CP1252"], [0x0449, "ta-IN", "UNICODE"], [0x0444, "tt-RU", "CP1251"], [0x044a, "te-IN", "UNICODE"], [0x041e, "th-TH", "CP874"], [0x0451, "bo-CN", "UNICODE"], [0x0851, "bo-BT", "UNICODE"], [0x041f, "tr-TR", "CP1254"], [0x0442, "tk-TM", "CP1251"], [0x0480, "ug-CN", "CP1256"], [0x0422, "uk-UA", "CP1251"], [0x042e, "wen-DE", "CP1252"], [0x0420, "ur-PK", "CP1256"], [0x0820, "tr-IN", "CP1256"], [0x0443, "uz-UZ-Latn", "CP1254"], [0x0843, "uz-UZ-Cyrl", "CP1251"], [0x042a, "vi-VN", "CP1252"], [0x0452, "cy-GB", "CP1252"], [0x0488, "wo-SN", "CP1252"], [0x0485, "sah-RU", "CP1251"], [0x0478, "ii-CN", "UNICODE"], [0x046a, "yo-NG", "UNICODE"], ]</td>
|
|
115
|
-
<td width="3em"> </td>
|
|
116
|
-
<td class="context-item-desc">
|
|
117
|
-
LangID, locale name, code page
|
|
118
|
-
|
|
119
|
-
</td>
|
|
120
|
-
</tr>
|
|
121
|
-
</table>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
109
|
|
|
125
110
|
|
|
126
111
|
|
|
@@ -131,11 +116,11 @@ LangID, locale name, code page
|
|
|
131
116
|
<div id="methods">
|
|
132
117
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
133
118
|
|
|
134
|
-
<div id="method-
|
|
135
|
-
<a name="
|
|
119
|
+
<div id="method-M000101" class="method-detail">
|
|
120
|
+
<a name="M000101"></a>
|
|
136
121
|
|
|
137
122
|
<div class="method-heading">
|
|
138
|
-
<a href="#
|
|
123
|
+
<a href="#M000101" class="method-signature">
|
|
139
124
|
<span class="method-name">get_charset</span><span class="method-args">(locale)</span>
|
|
140
125
|
</a>
|
|
141
126
|
</div>
|
|
@@ -153,15 +138,15 @@ Gets the Win32 charset of the locale.
|
|
|
153
138
|
</li>
|
|
154
139
|
</ul>
|
|
155
140
|
<p><a class="source-toggle" href="#"
|
|
156
|
-
onclick="toggleCode('
|
|
157
|
-
<div class="method-source-code" id="
|
|
141
|
+
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
|
142
|
+
<div class="method-source-code" id="M000101-source">
|
|
158
143
|
<pre>
|
|
159
|
-
<span class="ruby-comment cmt"># File lib/locale/win32.rb, line
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
<span class="ruby-comment cmt"># File lib/locale/win32.rb, line 31</span>
|
|
145
|
+
31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_charset</span>(<span class="ruby-identifier">locale</span>)
|
|
146
|
+
32: <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>}
|
|
147
|
+
33: <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-node">/^#{locale.language}-/</span>} <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">loc</span>
|
|
148
|
+
34: <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">"CP1252"</span>
|
|
149
|
+
35: <span class="ruby-keyword kw">end</span>
|
|
165
150
|
</pre>
|
|
166
151
|
</div>
|
|
167
152
|
</div>
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Module: Locale::SystemWin32Table</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">Locale::SystemWin32Table</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../files/lib/locale/win32_table_rb.html">
|
|
59
|
+
lib/locale/win32_table.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- if includes -->
|
|
84
|
+
|
|
85
|
+
<div id="section">
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
<div id="constants-list">
|
|
89
|
+
<h3 class="section-bar">Constants</h3>
|
|
90
|
+
|
|
91
|
+
<div class="name-list">
|
|
92
|
+
<table summary="Constants">
|
|
93
|
+
<tr class="top-aligned-row context-row">
|
|
94
|
+
<td class="context-item-name">LocaleTable</td>
|
|
95
|
+
<td>=</td>
|
|
96
|
+
<td class="context-item-value">[ [0x0000, "en", "CP1252"], [0x007f, "invariant", "CP1252"], [0x0400, "invalid", "CP1252"], [0x0800, "system", "CP1252"], [0x0436, "af-ZA", "CP1252"], [0x041c, "sq-AL", "CP1252"], [0x0484, "gsw-FR", "CP1252"], [0x045e, "am-ET", "UNICODE"], [0x0401, "ar-SA", "CP1256"], [0x0801, "ar-IQ", "CP1256"], [0x0c01, "ar-EG", "CP1256"], [0x1001, "ar-LY", "CP1256"], [0x1401, "ar-DZ", "CP1256"], [0x1801, "ar-MA", "CP1256"], [0x1c01, "ar-TN", "CP1256"], [0x2001, "ar-OM", "CP1256"], [0x2401, "ar-YE", "CP1256"], [0x2801, "ar-SY", "CP1256"], [0x2c01, "ar-JO", "CP1256"], [0x3001, "ar-LB", "CP1256"], [0x3401, "ar-KW", "CP1256"], [0x3801, "ar-AE", "CP1256"], [0x3c01, "ar-BH", "CP1256"], [0x4001, "ar-QA", "CP1256"], [0x042b, "hy-AM", "UNICODE"], [0x044d, "as-IN", "UNICODE"], [0x042c, "az-AZ-Latn", "CP1254"], [0x082c, "az-AZ-Cyrl", "CP1251"], [0x046d, "ba-RU", "UNICODE"], [0x042d, "eu-ES", "CP1252"], [0x0423, "be-BY", "CP1251"], [0x0445, "bn-IN", "UNICODE"], [0x201a, "bs-BA-Cyrl", "CP1251"], [0x141a, "bs-BA-Latn", "CP1250"], [0x047e, "br-FR", "CP1251"], [0x0402, "bg-BG", "CP1251"], [0x0455, "my-MM", "UNICODE"], [0x0403, "ca-ES", "CP1252"], [0x0004, "zh-CHS", "CP936"], [0x0404, "zh-TW", "CP950"], [0x0804, "zh-CN", "CP936"], [0x0c04, "zh-HK", "CP950"], [0x1004, "zh-SG", "CP936"], [0x1404, "zh-MO", "CP950"], [0x7c04, "zh-CHT", "CP950"], [0x0483, "co-FR", "CP1252"], [0x041a, "hr-HR", "CP1250"], [0x101a, "hr-BA", "CP1250"], [0x0405, "cs-CZ", "CP1250"], [0x0406, "da-DK", "CP1252"], [0x048c, "gbz-AF", "CP1256"], [0x0465, "dv-MV", "UNICODE"], [0x0413, "nl-NL", "CP1252"], [0x0813, "nl-BE", "CP1252"], [0x0409, "en-US", "CP1252"], [0x0809, "en-GB", "CP1252"], [0x0c09, "en-AU", "CP1252"], [0x1009, "en-CA", "CP1252"], [0x1409, "en-NZ", "CP1252"], [0x1809, "en-IE", "CP1252"], [0x1c09, "en-ZA", "CP1252"], [0x2009, "en-JA", "CP1252"], [0x2409, "en-CB", "CP1252"], [0x2809, "en-BZ", "CP1252"], [0x2c09, "en-TT", "CP1252"], [0x3009, "en-ZW", "CP1252"], [0x3409, "en-PH", "CP1252"], [0x4009, "en-IN", "CP1252"], [0x4409, "en-MY", "CP1252"], [0x4809, "en-SG", "CP1252"], [0x0425, "et-EE", "CP1257"], [0x0438, "fo-FO", "CP1252"], [0x464, "fil-PH", "CP1252"], [0x040b, "fi-FI", "CP1252"], [0x040c, "fr-FR", "CP1252"], [0x080c, "fr-BE", "CP1252"], [0x0c0c, "fr-CA", "CP1252"], [0x100c, "fr-CH", "CP1252"], [0x140c, "fr-LU", "CP1252"], [0x180c, "fr-MC", "CP1252"], [0x0462, "fy-NL", "CP1252"], [0x0456, "gl-ES", "CP1252"], [0x0437, "ka-GE", "UNICODE"], [0x0407, "de-DE", "CP1252"], [0x0807, "de-CH", "CP1252"], [0x0c07, "de-AT", "CP1252"], [0x1007, "de-LU", "CP1252"], [0x1407, "de-LI", "CP1252"], [0x0408, "el-GR", "CP1253"], [0x046f, "kl-GL", "CP1252"], [0x0447, "gu-IN", "UNICODE"], [0x0468, "ha-NG-Latn", "CP1252"], [0x040d, "he-IL", "CP1255"], [0x0439, "hi-IN", "UNICODE"], [0x040e, "hu-HU", "CP1250"], [0x040f, "is-IS", "CP1252"], [0x0421, "id-ID", "CP1252"], [0x045d, "iu-CA-Cans", "UNICODE"], [0x085d, "iu-CA-Latn", "CP1252"], [0x083c, "ga-IE", "CP1252"], [0x0434, "xh-ZA", "CP1252"], [0x0435, "zu-ZA", "CP1252"], [0x0410, "it-IT", "CP1252"], [0x0810, "it-CH", "CP1252"], [0x0411, "ja-JP", "CP932"], [0x044b, "kn-IN", "UNICODE"], [0x043f, "kk-KZ", "CP1251"], [0x0453, "kh-KH", "UNICODE"], [0x0486, "qut-GT", "CP1252"], [0x0487, "rw-RW", "CP1252"], [0x0457, "kok-IN", "UNICODE"], [0x0412, "ko-KR", "CP949"], [0x0812, "ko-KR@win95", "CP949"], [0x0440, "ky-KG", "CP1251"], [0x0454, "lo-LA", "UNICODE"], [0x0426, "lv-LV", "CP1257"], [0x0427, "lt-LT", "CP1257"], [0x0827, "lt-LT@win98", "CP1257"], [0x082e, "wee-DE", "CP1252"], [0x046e, "lb-LU", "CP1252"], [0x042f, "mk-MK", "CP1251"], [0x043e, "ms-MY", "CP1252"], [0x083e, "ms-BN", "CP1252"], [0x044c, "ml-IN", "UNICODE"], [0x043a, "mt-MT", "CP1252"], [0x0481, "mi-NZ", "CP1252"], [0x047a, "arn-CL", "CP1252"], [0x044e, "mr-IN", "UNICODE"], [0x047c, "moh-CA", "CP1252"], [0x0450, "mn-MN", "CP1251"], [0x0850, "mn-CN", "UNICODE"], [0x0461, "ne-NP", "UNICODE"], [0x0414, "nb-NO", "CP1252"], [0x0814, "nn-NO", "CP1252"], [0x0482, "oc-FR", "CP1252"], [0x0448, "or-IN", "UNICODE"], [0x0463, "ps-AF", "UNICODE"], [0x0429, "fa-IR", "CP1256"], [0x0415, "pl-PL", "CP1250"], [0x0416, "pt-BR", "CP1252"], [0x0816, "pt-PT", "CP1252"], [0x0446, "pa-IN", "UNICODE"], [0x046b, "quz-BO", "CP1252"], [0x086b, "quz-EC", "CP1252"], [0x0c6b, "quz-PE", "CP1252"], [0x0418, "ro-RO", "CP1250"], [0x0417, "rm-CH", "CP1252"], [0x0419, "ru-RU", "CP1251"], [0x243b, "smn-FI", "CP1252"], [0x103b, "smj-NO", "CP1252"], [0x143b, "smj-SE", "CP1252"], [0x043b, "se-NO", "CP1252"], [0x083b, "se-SE", "CP1252"], [0x0c3b, "se-FI", "CP1252"], [0x203b, "sms-FI", "CP1252"], [0x183b, "sma-NO", "CP1252"], [0x1c3b, "sma-SE", "CP1252"], [0x044f, "sa-IN", "UNICODE"], [0x0c1a, "sr-SP-Cyrl", "CP1251"], [0x1c1a, "sr-BA-Cyrl", "CP1251"], [0x081a, "sr-SP-Latn", "CP1250"], [0x181a, "sr-BA-Latn", "CP1250"], [0x046c, "ns-ZA", "CP1252"], [0x0432, "tn-ZA", "CP1252"], [0x045b, "si-LK", "UNICODE"], [0x041b, "sk-SK", "CP1250"], [0x0424, "sl-SI", "CP1250"], [0x040a, "es-ES-ts", "CP1252"], [0x080a, "es-MX", "CP1252"], [0x0c0a, "es-ES", "CP1252"], [0x100a, "es-GT", "CP1252"], [0x140a, "es-CR", "CP1252"], [0x180a, "es-PA", "CP1252"], [0x1c0a, "es-DO", "CP1252"], [0x200a, "es-VE", "CP1252"], [0x240a, "es-CO", "CP1252"], [0x280a, "es-PE", "CP1252"], [0x2c0a, "es-AR", "CP1252"], [0x300a, "es-EC", "CP1252"], [0x340a, "es-CL", "CP1252"], [0x380a, "es-UY", "CP1252"], [0x3c0a, "es-PY", "CP1252"], [0x400a, "es-BO", "CP1252"], [0x440a, "es-SV", "CP1252"], [0x480a, "es-HN", "CP1252"], [0x4c0a, "es-NI", "CP1252"], [0x500a, "es-PR", "CP1252"], [0x540a, "es-US", "CP1252"], [0x0430, "sutu", "UNICODE"], [0x0441, "sw-KE", "CP1252"], [0x041d, "sv-SE", "CP1252"], [0x081d, "sv-FI", "CP1252"], [0x045a, "syr-SY", "UNICODE"], [0x0428, "tg-TJ-Cyrl", "CP1251"], [0x085f, "ber-DZ", "CP1252"], [0x0449, "ta-IN", "UNICODE"], [0x0444, "tt-RU", "CP1251"], [0x044a, "te-IN", "UNICODE"], [0x041e, "th-TH", "CP874"], [0x0451, "bo-CN", "UNICODE"], [0x0851, "bo-BT", "UNICODE"], [0x041f, "tr-TR", "CP1254"], [0x0442, "tk-TM", "CP1251"], [0x0480, "ug-CN", "CP1256"], [0x0422, "uk-UA", "CP1251"], [0x042e, "wen-DE", "CP1252"], [0x0420, "ur-PK", "CP1256"], [0x0820, "tr-IN", "CP1256"], [0x0443, "uz-UZ-Latn", "CP1254"], [0x0843, "uz-UZ-Cyrl", "CP1251"], [0x042a, "vi-VN", "CP1252"], [0x0452, "cy-GB", "CP1252"], [0x0488, "wo-SN", "CP1252"], [0x0485, "sah-RU", "CP1251"], [0x0478, "ii-CN", "UNICODE"], [0x046a, "yo-NG", "UNICODE"], ]</td>
|
|
97
|
+
<td width="3em"> </td>
|
|
98
|
+
<td class="context-item-desc">
|
|
99
|
+
LangID, locale name, code page
|
|
100
|
+
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
</table>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
<!-- if method_list -->
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<div id="validator-badges">
|
|
119
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
</body>
|
|
123
|
+
</html>
|
data/doc/classes/MOFile.html
CHANGED
|
@@ -218,14 +218,14 @@ Laboratories, Inc.]
|
|
|
218
218
|
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
|
219
219
|
<div class="method-source-code" id="M000005-source">
|
|
220
220
|
<pre>
|
|
221
|
-
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
221
|
+
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line 42</span>
|
|
222
|
+
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">output_charset</span> = <span class="ruby-keyword kw">nil</span>)
|
|
223
|
+
43: <span class="ruby-ivar">@filename</span> = <span class="ruby-keyword kw">nil</span>
|
|
224
|
+
44: <span class="ruby-ivar">@last_modified</span> = <span class="ruby-keyword kw">nil</span>
|
|
225
|
+
45: <span class="ruby-ivar">@little_endian</span> = <span class="ruby-keyword kw">true</span>
|
|
226
|
+
46: <span class="ruby-ivar">@output_charset</span> = <span class="ruby-identifier">output_charset</span>
|
|
227
|
+
47: <span class="ruby-keyword kw">super</span>()
|
|
228
|
+
48: <span class="ruby-keyword kw">end</span>
|
|
229
229
|
</pre>
|
|
230
230
|
</div>
|
|
231
231
|
</div>
|
|
@@ -245,11 +245,11 @@ Laboratories, Inc.]
|
|
|
245
245
|
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
|
246
246
|
<div class="method-source-code" id="M000004-source">
|
|
247
247
|
<pre>
|
|
248
|
-
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
248
|
+
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line 37</span>
|
|
249
|
+
37: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">arg</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">output_charset</span> = <span class="ruby-keyword kw">nil</span>)
|
|
250
|
+
38: <span class="ruby-identifier">result</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">output_charset</span>)
|
|
251
|
+
39: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">arg</span>)
|
|
252
|
+
40: <span class="ruby-keyword kw">end</span>
|
|
253
253
|
</pre>
|
|
254
254
|
</div>
|
|
255
255
|
</div>
|
|
@@ -306,17 +306,16 @@ Laboratories, Inc.]
|
|
|
306
306
|
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
|
307
307
|
<div class="method-source-code" id="M000007-source">
|
|
308
308
|
<pre>
|
|
309
|
-
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
62: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">String</span>
|
|
309
|
+
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line 61</span>
|
|
310
|
+
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">arg</span>)
|
|
311
|
+
62: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">String</span>
|
|
313
312
|
63: <span class="ruby-keyword kw">begin</span>
|
|
314
313
|
64: <span class="ruby-identifier">st</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">arg</span>)
|
|
315
314
|
65: <span class="ruby-ivar">@last_modified</span> = [<span class="ruby-identifier">st</span>.<span class="ruby-identifier">ctime</span>, <span class="ruby-identifier">st</span>.<span class="ruby-identifier">mtime</span>]
|
|
316
315
|
66: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span>
|
|
317
316
|
67: <span class="ruby-keyword kw">end</span>
|
|
318
317
|
68: <span class="ruby-identifier">load_from_file</span>(<span class="ruby-identifier">arg</span>)
|
|
319
|
-
69: <span class="ruby-keyword kw">
|
|
318
|
+
69: <span class="ruby-keyword kw">else</span>
|
|
320
319
|
70: <span class="ruby-identifier">load_from_stream</span>(<span class="ruby-identifier">arg</span>)
|
|
321
320
|
71: <span class="ruby-keyword kw">end</span>
|
|
322
321
|
72: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">arg</span>
|
|
@@ -647,17 +646,17 @@ From gettext-0.12.1/gettext-tools/lib/hash.c
|
|
|
647
646
|
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
|
648
647
|
<div class="method-source-code" id="M000006-source">
|
|
649
648
|
<pre>
|
|
650
|
-
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
649
|
+
<span class="ruby-comment cmt"># File lib/gettext/mo.rb, line 50</span>
|
|
650
|
+
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update!</span>
|
|
651
|
+
51: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-ivar">@filename</span>)
|
|
652
|
+
52: <span class="ruby-identifier">st</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-ivar">@filename</span>)
|
|
653
|
+
53: <span class="ruby-identifier">load</span>(<span class="ruby-ivar">@filename</span>) <span class="ruby-keyword kw">unless</span> (<span class="ruby-ivar">@last_modified</span> <span class="ruby-operator">==</span> [<span class="ruby-identifier">st</span>.<span class="ruby-identifier">ctime</span>, <span class="ruby-identifier">st</span>.<span class="ruby-identifier">mtime</span>])
|
|
654
|
+
54: <span class="ruby-keyword kw">else</span>
|
|
655
|
+
55: <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{@filename} was lost."</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
|
|
656
|
+
56: <span class="ruby-identifier">clear</span>
|
|
657
|
+
57: <span class="ruby-keyword kw">end</span>
|
|
658
|
+
58: <span class="ruby-keyword kw">self</span>
|
|
659
|
+
59: <span class="ruby-keyword kw">end</span>
|
|
661
660
|
</pre>
|
|
662
661
|
</div>
|
|
663
662
|
</div>
|