gettext 1.92.0 → 1.93.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 +52 -0
- data/NEWS +25 -0
- data/README +21 -18
- data/data/locale/bg/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/bg/LC_MESSAGES/rgettext.mo +0 -0
- 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/et/LC_MESSAGES/rgettext.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/lv/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/lv/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 +11 -11
- data/doc/classes/ActionView/TemplateFinder.html +16 -16
- data/doc/classes/GetText.html +556 -521
- data/doc/classes/GetText/ActiveRecordParser.html +13 -13
- data/doc/classes/GetText/ErbContainer.html +12 -12
- data/doc/classes/GetText/ErbParser.html +6 -6
- data/doc/classes/GetText/NoboundTextDomainError.html +1 -1
- data/doc/classes/GetText/PoParser.html +6 -6
- data/doc/classes/GetText/Rails.html +20 -20
- data/doc/classes/GetText/RubyParser.html +5 -0
- data/doc/classes/GetText/TextDomain.html +53 -53
- data/doc/classes/GetText/TextDomainManager.html +54 -54
- data/doc/classes/Locale/Object.html +177 -173
- data/doc/classes/Locale/SystemBase.html +32 -32
- data/doc/classes/Locale/SystemCGI.html +31 -31
- data/doc/classes/Locale/SystemPosix.html +50 -0
- data/doc/classes/Locale/SystemWin32.html +6 -6
- data/doc/created.rid +1 -1
- data/doc/files/ChangeLog.html +69 -1
- data/doc/files/README.html +27 -19
- data/doc/files/lib/gettext/parser/ruby_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/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/object_rb.html +1 -1
- data/doc/files/lib/locale/posix_rb.html +1 -1
- data/doc/fr_method_index.html +94 -92
- data/lib/gettext.rb +27 -6
- data/lib/gettext/parser/ruby.rb +9 -2
- data/lib/gettext/rails.rb +11 -6
- data/lib/gettext/rgettext.rb +9 -8
- data/lib/gettext/utils.rb +18 -4
- data/lib/gettext/version.rb +1 -1
- data/lib/locale/object.rb +10 -6
- data/lib/locale/posix.rb +15 -1
- data/po/bg/rails.po +169 -0
- data/po/bg/rgettext.po +146 -0
- data/po/bs/rails.po +34 -34
- data/po/bs/rgettext.po +23 -17
- data/po/ca/rails.po +34 -34
- data/po/ca/rgettext.po +29 -22
- data/po/cs/rails.po +34 -34
- data/po/cs/rgettext.po +23 -17
- data/po/de/rails.po +34 -34
- data/po/de/rgettext.po +30 -22
- data/po/el/rails.po +38 -38
- data/po/el/rgettext.po +29 -22
- data/po/eo/rails.po +34 -34
- data/po/eo/rgettext.po +30 -23
- data/po/es/rails.po +34 -34
- data/po/es/rgettext.po +27 -21
- data/po/et/rails.po +42 -50
- data/po/et/rgettext.po +143 -0
- data/po/fr/rails.po +45 -52
- data/po/fr/rgettext.po +39 -32
- data/po/hr/rails.po +34 -34
- data/po/hr/rgettext.po +23 -17
- data/po/hu/rails.po +34 -34
- data/po/hu/rgettext.po +29 -21
- data/po/it/rails.po +34 -34
- data/po/it/rgettext.po +23 -17
- data/po/ja/rails.po +35 -35
- data/po/ja/rgettext.po +30 -22
- data/po/ko/rails.po +34 -34
- data/po/ko/rgettext.po +23 -17
- data/po/lv/rails.po +57 -37
- data/po/lv/rgettext.po +37 -28
- data/po/nb/rails.po +37 -38
- data/po/nb/rgettext.po +29 -22
- data/po/nl/rails.po +34 -34
- data/po/nl/rgettext.po +23 -17
- data/po/pt_BR/rails.po +34 -34
- data/po/pt_BR/rgettext.po +30 -22
- data/po/rails.pot +34 -34
- data/po/rgettext.pot +23 -17
- data/po/ru/rails.po +37 -37
- data/po/ru/rgettext.po +28 -22
- data/po/sr/rails.po +34 -34
- data/po/sr/rgettext.po +23 -17
- data/po/sv/rgettext.po +23 -17
- data/po/ua/rails.po +41 -39
- data/po/ua/rgettext.po +26 -19
- data/po/vi/rails.po +34 -35
- data/po/vi/rgettext.po +34 -27
- data/po/zh/rails.po +34 -34
- data/po/zh/rgettext.po +28 -22
- data/po/zh_TW/rails.po +34 -34
- data/po/zh_TW/rgettext.po +27 -21
- data/samples/cgi/locale/bg/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/bg/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/bg/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/bg/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/main.mo +0 -0
- 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/locale/ua/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ua/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/bg/helloerb1.po +59 -0
- data/samples/cgi/po/bg/helloerb2.po +51 -0
- data/samples/cgi/po/bg/hellolib.po +23 -0
- data/samples/cgi/po/bg/main.po +83 -0
- data/samples/locale/bg/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hellotk.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/ua/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/ua/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/po/bg/hello.po +24 -0
- data/samples/po/bg/hello2.po +31 -0
- data/samples/po/bg/hello_noop.po +27 -0
- data/samples/po/bg/hello_plural.po +25 -0
- data/samples/po/bg/helloglade2.po +31 -0
- data/samples/po/bg/hellogtk.po +23 -0
- data/samples/po/bg/hellotk.po +23 -0
- data/samples/rails/db/schema.rb +2 -4
- data/samples/rails/locale/bg/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/bs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ca/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/eo/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/hr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/hu/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/it/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/lv/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nb/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ru/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ua/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/vi/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/zh/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/bg/blog.po +101 -0
- data/samples/rails/po/blog.pot +36 -40
- data/samples/rails/po/bs/blog.po +41 -44
- data/samples/rails/po/ca/blog.po +44 -48
- data/samples/rails/po/cs/blog.po +44 -47
- data/samples/rails/po/de/blog.po +44 -47
- data/samples/rails/po/el/blog.po +44 -47
- data/samples/rails/po/en/blog.po +37 -41
- data/samples/rails/po/eo/blog.po +44 -48
- data/samples/rails/po/es/blog.po +44 -48
- data/samples/rails/po/fr/blog.po +44 -47
- data/samples/rails/po/hr/blog.po +41 -45
- data/samples/rails/po/hu/blog.po +41 -45
- data/samples/rails/po/it/blog.po +45 -48
- data/samples/rails/po/ja/blog.po +44 -48
- data/samples/rails/po/ko/blog.po +45 -48
- data/samples/rails/po/lv/blog.po +43 -50
- data/samples/rails/po/nb/blog.po +42 -47
- data/samples/rails/po/nl/blog.po +44 -47
- data/samples/rails/po/pt_BR/blog.po +45 -48
- data/samples/rails/po/ru/blog.po +43 -46
- data/samples/rails/po/sr/blog.po +42 -45
- data/samples/rails/po/ua/blog.po +43 -46
- data/samples/rails/po/vi/blog.po +40 -43
- data/samples/rails/po/zh/blog.po +44 -48
- data/samples/rails/po/zh_TW/blog.po +44 -48
- data/samples/rails/vendor/plugins/gettext/locale/bg/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/bs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ca/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/eo/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/hr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/hu/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/it/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/lv/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/nb/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ru/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ua/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/vi/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/zh/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/zh_TW/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/po/bg/gettext_plugin.po +27 -0
- data/samples/rails/vendor/plugins/gettext/po/bs/gettext_plugin.po +6 -6
- data/samples/rails/vendor/plugins/gettext/po/ca/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/cs/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/de/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/el/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/eo/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/es/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/fr/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/gettext_plugin.pot +3 -3
- data/samples/rails/vendor/plugins/gettext/po/hr/gettext_plugin.po +6 -6
- data/samples/rails/vendor/plugins/gettext/po/hu/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/it/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/ja/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/ko/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/lv/gettext_plugin.po +5 -5
- data/samples/rails/vendor/plugins/gettext/po/nb/gettext_plugin.po +6 -7
- data/samples/rails/vendor/plugins/gettext/po/nl/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/pt_BR/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/ru/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +4 -4
- data/samples/rails/vendor/plugins/gettext/po/ua/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/vi/gettext_plugin.po +3 -4
- data/samples/rails/vendor/plugins/gettext/po/zh/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/zh_TW/gettext_plugin.po +3 -4
- data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test_npgettext.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test_pgettext.mo +0 -0
- data/test/po/active_record.pot +41 -28
- data/test/po/ja/active_record.po +41 -28
- data/test/po/ja/test_npgettext.po +46 -0
- data/test/test_gettext.rb +10 -0
- data/test/test_locale.rb +5 -0
- data/test/testlib/npgettext.rb +33 -0
- metadata +78 -2
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
|
81
81
|
|
|
82
82
|
<div class="name-list">
|
|
83
|
-
<a href="#
|
|
84
|
-
<a href="#
|
|
83
|
+
<a href="#M000115">init</a>
|
|
84
|
+
<a href="#M000116">untranslate_column?</a>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
@@ -110,11 +110,11 @@
|
|
|
110
110
|
<div id="methods">
|
|
111
111
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
112
112
|
|
|
113
|
-
<div id="method-
|
|
114
|
-
<a name="
|
|
113
|
+
<div id="method-M000115" class="method-detail">
|
|
114
|
+
<a name="M000115"></a>
|
|
115
115
|
|
|
116
116
|
<div class="method-heading">
|
|
117
|
-
<a href="#
|
|
117
|
+
<a href="#M000115" class="method-signature">
|
|
118
118
|
<span class="method-name">init</span><span class="method-args">(config)</span>
|
|
119
119
|
</a>
|
|
120
120
|
</div>
|
|
@@ -175,14 +175,14 @@ value is set, :db_yml option is ignored.
|
|
|
175
175
|
</ul>
|
|
176
176
|
<p>
|
|
177
177
|
"ClassName|FieldName" uses <a
|
|
178
|
-
href="../GetText.html#
|
|
178
|
+
href="../GetText.html#M000089">GetText.sgettext</a>. So you don‘t
|
|
179
179
|
need to translate the left-side of "|". See <Documents for
|
|
180
180
|
Translators for more details(<a
|
|
181
181
|
href="http://www.yotabanana.com/hiki/ruby-gettext-translate.html">www.yotabanana.com/hiki/ruby-gettext-translate.html</a>)>.
|
|
182
182
|
</p>
|
|
183
183
|
<p><a class="source-toggle" href="#"
|
|
184
|
-
onclick="toggleCode('
|
|
185
|
-
<div class="method-source-code" id="
|
|
184
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
|
185
|
+
<div class="method-source-code" id="M000115-source">
|
|
186
186
|
<pre>
|
|
187
187
|
<span class="ruby-comment cmt"># File lib/gettext/parser/active_record.rb, line 61</span>
|
|
188
188
|
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>(<span class="ruby-identifier">config</span>)
|
|
@@ -198,19 +198,19 @@ href="http://www.yotabanana.com/hiki/ruby-gettext-translate.html">www.yotabanana
|
|
|
198
198
|
</div>
|
|
199
199
|
</div>
|
|
200
200
|
|
|
201
|
-
<div id="method-
|
|
202
|
-
<a name="
|
|
201
|
+
<div id="method-M000116" class="method-detail">
|
|
202
|
+
<a name="M000116"></a>
|
|
203
203
|
|
|
204
204
|
<div class="method-heading">
|
|
205
|
-
<a href="#
|
|
205
|
+
<a href="#M000116" class="method-signature">
|
|
206
206
|
<span class="method-name">untranslate_column?</span><span class="method-args">(klass, columnname)</span>
|
|
207
207
|
</a>
|
|
208
208
|
</div>
|
|
209
209
|
|
|
210
210
|
<div class="method-description">
|
|
211
211
|
<p><a class="source-toggle" href="#"
|
|
212
|
-
onclick="toggleCode('
|
|
213
|
-
<div class="method-source-code" id="
|
|
212
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
|
213
|
+
<div class="method-source-code" id="M000116-source">
|
|
214
214
|
<pre>
|
|
215
215
|
<span class="ruby-comment cmt"># File lib/gettext/parser/active_record.rb, line 70</span>
|
|
216
216
|
70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_column?</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">columnname</span>)
|
|
@@ -108,8 +108,8 @@ implement another implementation easily to read gettext/erb.rb.
|
|
|
108
108
|
<h3 class="section-bar">Methods</h3>
|
|
109
109
|
|
|
110
110
|
<div class="name-list">
|
|
111
|
-
<a href="#
|
|
112
|
-
<a href="#
|
|
111
|
+
<a href="#M000114">eval_file</a>
|
|
112
|
+
<a href="#M000113">eval_src</a>
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
115
|
|
|
@@ -138,11 +138,11 @@ implement another implementation easily to read gettext/erb.rb.
|
|
|
138
138
|
<div id="methods">
|
|
139
139
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
140
140
|
|
|
141
|
-
<div id="method-
|
|
142
|
-
<a name="
|
|
141
|
+
<div id="method-M000114" class="method-detail">
|
|
142
|
+
<a name="M000114"></a>
|
|
143
143
|
|
|
144
144
|
<div class="method-heading">
|
|
145
|
-
<a href="#
|
|
145
|
+
<a href="#M000114" class="method-signature">
|
|
146
146
|
<span class="method-name">eval_file</span><span class="method-args">(rhtmlpath)</span>
|
|
147
147
|
</a>
|
|
148
148
|
</div>
|
|
@@ -160,8 +160,8 @@ Evaluates ERB file in the instance and returns the result HTML.
|
|
|
160
160
|
</li>
|
|
161
161
|
</ul>
|
|
162
162
|
<p><a class="source-toggle" href="#"
|
|
163
|
-
onclick="toggleCode('
|
|
164
|
-
<div class="method-source-code" id="
|
|
163
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
|
164
|
+
<div class="method-source-code" id="M000114-source">
|
|
165
165
|
<pre>
|
|
166
166
|
<span class="ruby-comment cmt"># File lib/gettext/erb.rb, line 52</span>
|
|
167
167
|
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval_file</span>(<span class="ruby-identifier">rhtmlpath</span>)
|
|
@@ -172,11 +172,11 @@ Evaluates ERB file in the instance and returns the result HTML.
|
|
|
172
172
|
</div>
|
|
173
173
|
</div>
|
|
174
174
|
|
|
175
|
-
<div id="method-
|
|
176
|
-
<a name="
|
|
175
|
+
<div id="method-M000113" class="method-detail">
|
|
176
|
+
<a name="M000113"></a>
|
|
177
177
|
|
|
178
178
|
<div class="method-heading">
|
|
179
|
-
<a href="#
|
|
179
|
+
<a href="#M000113" class="method-signature">
|
|
180
180
|
<span class="method-name">eval_src</span><span class="method-args">(rhtml)</span>
|
|
181
181
|
</a>
|
|
182
182
|
</div>
|
|
@@ -195,8 +195,8 @@ and returns the result HTML.
|
|
|
195
195
|
</li>
|
|
196
196
|
</ul>
|
|
197
197
|
<p><a class="source-toggle" href="#"
|
|
198
|
-
onclick="toggleCode('
|
|
199
|
-
<div class="method-source-code" id="
|
|
198
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
|
199
|
+
<div class="method-source-code" id="M000113-source">
|
|
200
200
|
<pre>
|
|
201
201
|
<span class="ruby-comment cmt"># File lib/gettext/erb.rb, line 43</span>
|
|
202
202
|
43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval_src</span>(<span class="ruby-identifier">rhtml</span>)
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
|
81
81
|
|
|
82
82
|
<div class="name-list">
|
|
83
|
-
<a href="#
|
|
83
|
+
<a href="#M000120">init</a>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
<div id="methods">
|
|
103
103
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
104
104
|
|
|
105
|
-
<div id="method-
|
|
106
|
-
<a name="
|
|
105
|
+
<div id="method-M000120" class="method-detail">
|
|
106
|
+
<a name="M000120"></a>
|
|
107
107
|
|
|
108
108
|
<div class="method-heading">
|
|
109
|
-
<a href="#
|
|
109
|
+
<a href="#M000120" class="method-signature">
|
|
110
110
|
<span class="method-name">init</span><span class="method-args">(config)</span>
|
|
111
111
|
</a>
|
|
112
112
|
</div>
|
|
@@ -127,8 +127,8 @@ Sets some preferences to parse ERB files.
|
|
|
127
127
|
</li>
|
|
128
128
|
</ul>
|
|
129
129
|
<p><a class="source-toggle" href="#"
|
|
130
|
-
onclick="toggleCode('
|
|
131
|
-
<div class="method-source-code" id="
|
|
130
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
|
131
|
+
<div class="method-source-code" id="M000120-source">
|
|
132
132
|
<pre>
|
|
133
133
|
<span class="ruby-comment cmt"># File lib/gettext/parser/erb.rb, line 25</span>
|
|
134
134
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>(<span class="ruby-identifier">config</span>)
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
|
87
87
|
|
|
88
88
|
<div class="name-list">
|
|
89
|
-
<a href="#
|
|
89
|
+
<a href="#M000137">_reduce_none</a>
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
@@ -131,19 +131,19 @@
|
|
|
131
131
|
<div id="methods">
|
|
132
132
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
133
133
|
|
|
134
|
-
<div id="method-
|
|
135
|
-
<a name="
|
|
134
|
+
<div id="method-M000137" class="method-detail">
|
|
135
|
+
<a name="M000137"></a>
|
|
136
136
|
|
|
137
137
|
<div class="method-heading">
|
|
138
|
-
<a href="#
|
|
138
|
+
<a href="#M000137" class="method-signature">
|
|
139
139
|
<span class="method-name">_reduce_none</span><span class="method-args">( val, _values, result )</span>
|
|
140
140
|
</a>
|
|
141
141
|
</div>
|
|
142
142
|
|
|
143
143
|
<div class="method-description">
|
|
144
144
|
<p><a class="source-toggle" href="#"
|
|
145
|
-
onclick="toggleCode('
|
|
146
|
-
<div class="method-source-code" id="
|
|
145
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
|
146
|
+
<div class="method-source-code" id="M000137-source">
|
|
147
147
|
<pre>
|
|
148
148
|
<span class="ruby-comment cmt"># File lib/gettext/poparser.rb, line 335</span>
|
|
149
149
|
335: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_reduce_none</span>( <span class="ruby-identifier">val</span>, <span class="ruby-identifier">_values</span>, <span class="ruby-identifier">result</span> )
|
|
@@ -93,9 +93,9 @@ href="http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html">www.yotabana
|
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
|
94
94
|
|
|
95
95
|
<div class="name-list">
|
|
96
|
-
<a href="#
|
|
97
|
-
<a href="#
|
|
98
|
-
<a href="#
|
|
96
|
+
<a href="#M000118">available_locales</a>
|
|
97
|
+
<a href="#M000117">bindtextdomain</a>
|
|
98
|
+
<a href="#M000119">normalized_locale</a>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
|
|
@@ -150,11 +150,11 @@ href="http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html">www.yotabana
|
|
|
150
150
|
<div id="methods">
|
|
151
151
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
152
152
|
|
|
153
|
-
<div id="method-
|
|
154
|
-
<a name="
|
|
153
|
+
<div id="method-M000118" class="method-detail">
|
|
154
|
+
<a name="M000118"></a>
|
|
155
155
|
|
|
156
156
|
<div class="method-heading">
|
|
157
|
-
<a href="#
|
|
157
|
+
<a href="#M000118" class="method-signature">
|
|
158
158
|
<span class="method-name">available_locales</span><span class="method-args">()</span>
|
|
159
159
|
</a>
|
|
160
160
|
</div>
|
|
@@ -166,8 +166,8 @@ an reversed array of the locale strings under RAILS_ROOT/locale/*. It is
|
|
|
166
166
|
used for restriction such as caching files.
|
|
167
167
|
</p>
|
|
168
168
|
<p><a class="source-toggle" href="#"
|
|
169
|
-
onclick="toggleCode('
|
|
170
|
-
<div class="method-source-code" id="
|
|
169
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
|
170
|
+
<div class="method-source-code" id="M000118-source">
|
|
171
171
|
<pre>
|
|
172
172
|
<span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 67</span>
|
|
173
173
|
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">available_locales</span>
|
|
@@ -181,11 +181,11 @@ used for restriction such as caching files.
|
|
|
181
181
|
</div>
|
|
182
182
|
</div>
|
|
183
183
|
|
|
184
|
-
<div id="method-
|
|
185
|
-
<a name="
|
|
184
|
+
<div id="method-M000117" class="method-detail">
|
|
185
|
+
<a name="M000117"></a>
|
|
186
186
|
|
|
187
187
|
<div class="method-heading">
|
|
188
|
-
<a href="#
|
|
188
|
+
<a href="#M000117" class="method-signature">
|
|
189
189
|
<span class="method-name">bindtextdomain(domainname, options = {})<br />
|
|
190
190
|
</span>
|
|
191
191
|
</a>
|
|
@@ -223,7 +223,7 @@ of Cookie > HTTP_ACCEPT_LANGUAGE value > Default locale(en).
|
|
|
223
223
|
</li>
|
|
224
224
|
<li>:charset - the charset. Generally UTF-8 is recommanded. And the charset is
|
|
225
225
|
set order by "the argument of <a
|
|
226
|
-
href="Rails.html#
|
|
226
|
+
href="Rails.html#M000117">bindtextdomain</a>" > HTTP_ACCEPT_CHARSET
|
|
227
227
|
> Default charset(UTF-8).
|
|
228
228
|
|
|
229
229
|
</li>
|
|
@@ -231,8 +231,8 @@ href="Rails.html#M000115">bindtextdomain</a>" > HTTP_ACCEPT_CHARSET
|
|
|
231
231
|
</li>
|
|
232
232
|
</ul>
|
|
233
233
|
<p><a class="source-toggle" href="#"
|
|
234
|
-
onclick="toggleCode('
|
|
235
|
-
<div class="method-source-code" id="
|
|
234
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
|
235
|
+
<div class="method-source-code" id="M000117-source">
|
|
236
236
|
<pre>
|
|
237
237
|
<span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 58</span>
|
|
238
238
|
58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bindtextdomain</span>(<span class="ruby-identifier">domainname</span>, <span class="ruby-identifier">options</span> = {})
|
|
@@ -244,11 +244,11 @@ href="Rails.html#M000115">bindtextdomain</a>" > HTTP_ACCEPT_CHARSET
|
|
|
244
244
|
</div>
|
|
245
245
|
</div>
|
|
246
246
|
|
|
247
|
-
<div id="method-
|
|
248
|
-
<a name="
|
|
247
|
+
<div id="method-M000119" class="method-detail">
|
|
248
|
+
<a name="M000119"></a>
|
|
249
249
|
|
|
250
250
|
<div class="method-heading">
|
|
251
|
-
<a href="#
|
|
251
|
+
<a href="#M000119" class="method-signature">
|
|
252
252
|
<span class="method-name">normalized_locale</span><span class="method-args">(locale = nil)</span>
|
|
253
253
|
</a>
|
|
254
254
|
</div>
|
|
@@ -256,7 +256,7 @@ href="Rails.html#M000115">bindtextdomain</a>" > HTTP_ACCEPT_CHARSET
|
|
|
256
256
|
<div class="method-description">
|
|
257
257
|
<p>
|
|
258
258
|
Returns a normalized locale which is in <a
|
|
259
|
-
href="Rails.html#
|
|
259
|
+
href="Rails.html#M000118">available_locales</a>.
|
|
260
260
|
</p>
|
|
261
261
|
<ul>
|
|
262
262
|
<li>locale: a <a href="../Locale/Object.html">Locale::Object</a> or nil.
|
|
@@ -264,8 +264,8 @@ href="Rails.html#M000116">available_locales</a>.
|
|
|
264
264
|
</li>
|
|
265
265
|
</ul>
|
|
266
266
|
<p><a class="source-toggle" href="#"
|
|
267
|
-
onclick="toggleCode('
|
|
268
|
-
<div class="method-source-code" id="
|
|
267
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
|
268
|
+
<div class="method-source-code" id="M000119-source">
|
|
269
269
|
<pre>
|
|
270
270
|
<span class="ruby-comment cmt"># File lib/gettext/rails.rb, line 76</span>
|
|
271
271
|
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">normalized_locale</span>(<span class="ruby-identifier">locale</span> = <span class="ruby-keyword kw">nil</span>)
|
|
@@ -105,6 +105,11 @@
|
|
|
105
105
|
<td>=</td>
|
|
106
106
|
<td class="context-item-value">['pgettext', 'p_']</td>
|
|
107
107
|
</tr>
|
|
108
|
+
<tr class="top-aligned-row context-row">
|
|
109
|
+
<td class="context-item-name">MSGCTXT_PLURAL_ID</td>
|
|
110
|
+
<td>=</td>
|
|
111
|
+
<td class="context-item-value">['npgettext', 'np_']</td>
|
|
112
|
+
</tr>
|
|
108
113
|
</table>
|
|
109
114
|
</div>
|
|
110
115
|
</div>
|
|
@@ -99,14 +99,14 @@ Notice: This class is unstable. APIs will be changed.
|
|
|
99
99
|
<h3 class="section-bar">Methods</h3>
|
|
100
100
|
|
|
101
101
|
<div class="name-list">
|
|
102
|
-
<a href="#
|
|
103
|
-
<a href="#
|
|
104
|
-
<a href="#
|
|
105
|
-
<a href="#
|
|
106
|
-
<a href="#
|
|
107
|
-
<a href="#
|
|
108
|
-
<a href="#
|
|
109
|
-
<a href="#
|
|
102
|
+
<a href="#M000131">add_default_locale_path</a>
|
|
103
|
+
<a href="#M000130">check_mo=</a>
|
|
104
|
+
<a href="#M000129">check_mo?</a>
|
|
105
|
+
<a href="#M000134">gettext</a>
|
|
106
|
+
<a href="#M000132">new</a>
|
|
107
|
+
<a href="#M000135">ngettext</a>
|
|
108
|
+
<a href="#M000136">same_property?</a>
|
|
109
|
+
<a href="#M000133">set_locale</a>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
|
|
@@ -179,11 +179,11 @@ The default locale paths.
|
|
|
179
179
|
<div id="methods">
|
|
180
180
|
<h3 class="section-bar">Public Class methods</h3>
|
|
181
181
|
|
|
182
|
-
<div id="method-
|
|
183
|
-
<a name="
|
|
182
|
+
<div id="method-M000131" class="method-detail">
|
|
183
|
+
<a name="M000131"></a>
|
|
184
184
|
|
|
185
185
|
<div class="method-heading">
|
|
186
|
-
<a href="#
|
|
186
|
+
<a href="#M000131" class="method-signature">
|
|
187
187
|
<span class="method-name">add_default_locale_path</span><span class="method-args">(path)</span>
|
|
188
188
|
</a>
|
|
189
189
|
</div>
|
|
@@ -191,22 +191,22 @@ The default locale paths.
|
|
|
191
191
|
<div class="method-description">
|
|
192
192
|
<p>
|
|
193
193
|
Add default locale path. Usually you should use <a
|
|
194
|
-
href="../GetText.html#
|
|
194
|
+
href="../GetText.html#M000103">GetText.add_default_locale_path</a> instead.
|
|
195
195
|
</p>
|
|
196
196
|
<ul>
|
|
197
|
-
<li>path: a <a href="TextDomain.html#
|
|
197
|
+
<li>path: a <a href="TextDomain.html#M000132">new</a> locale path. (e.g.)
|
|
198
198
|
"/usr/share/locale/%{locale}/LC_MESSAGES/%{name}.mo"
|
|
199
199
|
(‘locale’ => "ja_JP", ‘name’ =>
|
|
200
200
|
"textdomain")
|
|
201
201
|
|
|
202
202
|
</li>
|
|
203
|
-
<li>Returns: the <a href="TextDomain.html#
|
|
203
|
+
<li>Returns: the <a href="TextDomain.html#M000132">new</a> DEFAULT_LOCALE_PATHS
|
|
204
204
|
|
|
205
205
|
</li>
|
|
206
206
|
</ul>
|
|
207
207
|
<p><a class="source-toggle" href="#"
|
|
208
|
-
onclick="toggleCode('
|
|
209
|
-
<div class="method-source-code" id="
|
|
208
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
|
209
|
+
<div class="method-source-code" id="M000131-source">
|
|
210
210
|
<pre>
|
|
211
211
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 63</span>
|
|
212
212
|
63: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_default_locale_path</span>(<span class="ruby-identifier">path</span>)
|
|
@@ -217,11 +217,11 @@ href="../GetText.html#M000102">GetText.add_default_locale_path</a> instead.
|
|
|
217
217
|
</div>
|
|
218
218
|
</div>
|
|
219
219
|
|
|
220
|
-
<div id="method-
|
|
221
|
-
<a name="
|
|
220
|
+
<div id="method-M000130" class="method-detail">
|
|
221
|
+
<a name="M000130"></a>
|
|
222
222
|
|
|
223
223
|
<div class="method-heading">
|
|
224
|
-
<a href="#
|
|
224
|
+
<a href="#M000130" class="method-signature">
|
|
225
225
|
<span class="method-name">check_mo=</span><span class="method-args">(val)</span>
|
|
226
226
|
</a>
|
|
227
227
|
</div>
|
|
@@ -240,8 +240,8 @@ details.
|
|
|
240
240
|
</li>
|
|
241
241
|
</ul>
|
|
242
242
|
<p><a class="source-toggle" href="#"
|
|
243
|
-
onclick="toggleCode('
|
|
244
|
-
<div class="method-source-code" id="
|
|
243
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
|
244
|
+
<div class="method-source-code" id="M000130-source">
|
|
245
245
|
<pre>
|
|
246
246
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 47</span>
|
|
247
247
|
47: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_mo=</span>(<span class="ruby-identifier">val</span>)
|
|
@@ -252,11 +252,11 @@ details.
|
|
|
252
252
|
</div>
|
|
253
253
|
</div>
|
|
254
254
|
|
|
255
|
-
<div id="method-
|
|
256
|
-
<a name="
|
|
255
|
+
<div id="method-M000129" class="method-detail">
|
|
256
|
+
<a name="M000129"></a>
|
|
257
257
|
|
|
258
258
|
<div class="method-heading">
|
|
259
|
-
<a href="#
|
|
259
|
+
<a href="#M000129" class="method-signature">
|
|
260
260
|
<span class="method-name">check_mo?</span><span class="method-args">()</span>
|
|
261
261
|
</a>
|
|
262
262
|
</div>
|
|
@@ -273,8 +273,8 @@ is true, mo-file is checked even if this value is false.
|
|
|
273
273
|
</li>
|
|
274
274
|
</ul>
|
|
275
275
|
<p><a class="source-toggle" href="#"
|
|
276
|
-
onclick="toggleCode('
|
|
277
|
-
<div class="method-source-code" id="
|
|
276
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
|
277
|
+
<div class="method-source-code" id="M000129-source">
|
|
278
278
|
<pre>
|
|
279
279
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 40</span>
|
|
280
280
|
40: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_mo?</span>
|
|
@@ -285,18 +285,18 @@ is true, mo-file is checked even if this value is false.
|
|
|
285
285
|
</div>
|
|
286
286
|
</div>
|
|
287
287
|
|
|
288
|
-
<div id="method-
|
|
289
|
-
<a name="
|
|
288
|
+
<div id="method-M000132" class="method-detail">
|
|
289
|
+
<a name="M000132"></a>
|
|
290
290
|
|
|
291
291
|
<div class="method-heading">
|
|
292
|
-
<a href="#
|
|
292
|
+
<a href="#M000132" class="method-signature">
|
|
293
293
|
<span class="method-name">new</span><span class="method-args">(name, topdir = nil, locale = nil)</span>
|
|
294
294
|
</a>
|
|
295
295
|
</div>
|
|
296
296
|
|
|
297
297
|
<div class="method-description">
|
|
298
298
|
<p>
|
|
299
|
-
Creates a <a href="TextDomain.html#
|
|
299
|
+
Creates a <a href="TextDomain.html#M000132">new</a> <a
|
|
300
300
|
href="TextDomain.html">GetText::TextDomain</a>.
|
|
301
301
|
</p>
|
|
302
302
|
<ul>
|
|
@@ -316,8 +316,8 @@ object.
|
|
|
316
316
|
</li>
|
|
317
317
|
</ul>
|
|
318
318
|
<p><a class="source-toggle" href="#"
|
|
319
|
-
onclick="toggleCode('
|
|
320
|
-
<div class="method-source-code" id="
|
|
319
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
|
320
|
+
<div class="method-source-code" id="M000132-source">
|
|
321
321
|
<pre>
|
|
322
322
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 72</span>
|
|
323
323
|
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">topdir</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">locale</span> = <span class="ruby-keyword kw">nil</span>)
|
|
@@ -358,11 +358,11 @@ object.
|
|
|
358
358
|
|
|
359
359
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
360
360
|
|
|
361
|
-
<div id="method-
|
|
362
|
-
<a name="
|
|
361
|
+
<div id="method-M000134" class="method-detail">
|
|
362
|
+
<a name="M000134"></a>
|
|
363
363
|
|
|
364
364
|
<div class="method-heading">
|
|
365
|
-
<a href="#
|
|
365
|
+
<a href="#M000134" class="method-signature">
|
|
366
366
|
<span class="method-name">gettext</span><span class="method-args">(msgid)</span>
|
|
367
367
|
</a>
|
|
368
368
|
</div>
|
|
@@ -380,8 +380,8 @@ Gets the translated string.
|
|
|
380
380
|
</li>
|
|
381
381
|
</ul>
|
|
382
382
|
<p><a class="source-toggle" href="#"
|
|
383
|
-
onclick="toggleCode('
|
|
384
|
-
<div class="method-source-code" id="
|
|
383
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
|
384
|
+
<div class="method-source-code" id="M000134-source">
|
|
385
385
|
<pre>
|
|
386
386
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 117</span>
|
|
387
387
|
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gettext</span>(<span class="ruby-identifier">msgid</span>)
|
|
@@ -417,11 +417,11 @@ Gets the translated string.
|
|
|
417
417
|
</div>
|
|
418
418
|
</div>
|
|
419
419
|
|
|
420
|
-
<div id="method-
|
|
421
|
-
<a name="
|
|
420
|
+
<div id="method-M000135" class="method-detail">
|
|
421
|
+
<a name="M000135"></a>
|
|
422
422
|
|
|
423
423
|
<div class="method-heading">
|
|
424
|
-
<a href="#
|
|
424
|
+
<a href="#M000135" class="method-signature">
|
|
425
425
|
<span class="method-name">ngettext</span><span class="method-args">(msgid, msgid_plural, n)</span>
|
|
426
426
|
</a>
|
|
427
427
|
</div>
|
|
@@ -446,8 +446,8 @@ directly)
|
|
|
446
446
|
</li>
|
|
447
447
|
</ul>
|
|
448
448
|
<p><a class="source-toggle" href="#"
|
|
449
|
-
onclick="toggleCode('
|
|
450
|
-
<div class="method-source-code" id="
|
|
449
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
|
450
|
+
<div class="method-source-code" id="M000135-source">
|
|
451
451
|
<pre>
|
|
452
452
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 151</span>
|
|
453
453
|
151: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ngettext</span>(<span class="ruby-identifier">msgid</span>, <span class="ruby-identifier">msgid_plural</span>, <span class="ruby-identifier">n</span>)
|
|
@@ -477,11 +477,11 @@ directly)
|
|
|
477
477
|
</div>
|
|
478
478
|
</div>
|
|
479
479
|
|
|
480
|
-
<div id="method-
|
|
481
|
-
<a name="
|
|
480
|
+
<div id="method-M000136" class="method-detail">
|
|
481
|
+
<a name="M000136"></a>
|
|
482
482
|
|
|
483
483
|
<div class="method-heading">
|
|
484
|
-
<a href="#
|
|
484
|
+
<a href="#M000136" class="method-signature">
|
|
485
485
|
<span class="method-name">same_property?</span><span class="method-args">(name, topdir, locale)</span>
|
|
486
486
|
</a>
|
|
487
487
|
</div>
|
|
@@ -505,8 +505,8 @@ Compare this object has the same name, topdir and locale.
|
|
|
505
505
|
</li>
|
|
506
506
|
</ul>
|
|
507
507
|
<p><a class="source-toggle" href="#"
|
|
508
|
-
onclick="toggleCode('
|
|
509
|
-
<div class="method-source-code" id="
|
|
508
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
|
509
|
+
<div class="method-source-code" id="M000136-source">
|
|
510
510
|
<pre>
|
|
511
511
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 198</span>
|
|
512
512
|
198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">same_property?</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">topdir</span>, <span class="ruby-identifier">locale</span>)
|
|
@@ -517,18 +517,18 @@ Compare this object has the same name, topdir and locale.
|
|
|
517
517
|
</div>
|
|
518
518
|
</div>
|
|
519
519
|
|
|
520
|
-
<div id="method-
|
|
521
|
-
<a name="
|
|
520
|
+
<div id="method-M000133" class="method-detail">
|
|
521
|
+
<a name="M000133"></a>
|
|
522
522
|
|
|
523
523
|
<div class="method-heading">
|
|
524
|
-
<a href="#
|
|
524
|
+
<a href="#M000133" class="method-signature">
|
|
525
525
|
<span class="method-name">set_locale</span><span class="method-args">(locale, reload = false)</span>
|
|
526
526
|
</a>
|
|
527
527
|
</div>
|
|
528
528
|
|
|
529
529
|
<div class="method-description">
|
|
530
530
|
<p>
|
|
531
|
-
Sets a <a href="TextDomain.html#
|
|
531
|
+
Sets a <a href="TextDomain.html#M000132">new</a> <a
|
|
532
532
|
href="../Locale/Object.html">Locale::Object</a>.
|
|
533
533
|
</p>
|
|
534
534
|
<ul>
|
|
@@ -543,8 +543,8 @@ href="../Locale/Object.html">Locale::Object</a>.
|
|
|
543
543
|
</li>
|
|
544
544
|
</ul>
|
|
545
545
|
<p><a class="source-toggle" href="#"
|
|
546
|
-
onclick="toggleCode('
|
|
547
|
-
<div class="method-source-code" id="
|
|
546
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
|
547
|
+
<div class="method-source-code" id="M000133-source">
|
|
548
548
|
<pre>
|
|
549
549
|
<span class="ruby-comment cmt"># File lib/gettext/textdomain.rb, line 108</span>
|
|
550
550
|
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_locale</span>(<span class="ruby-identifier">locale</span>, <span class="ruby-identifier">reload</span> = <span class="ruby-keyword kw">false</span>)
|