gettext 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +139 -0
- data/NEWS +31 -0
- data/README +31 -15
- data/Rakefile +3 -30
- data/bin/rgettext +1 -1
- data/bin/rmsgfmt +1 -1
- data/bin/rmsgmerge +1 -1
- 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/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/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/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/sv/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/lib/gettext.rb +50 -23
- data/lib/gettext/active_record.rb +275 -0
- data/lib/gettext/container.rb +0 -4
- data/lib/gettext/locale.rb +9 -2
- data/lib/gettext/locale_cgi.rb +5 -4
- data/lib/gettext/locale_object.rb +5 -4
- data/lib/gettext/parser/{activerecord.rb → active_record.rb} +31 -14
- data/lib/gettext/parser/ruby.rb +48 -44
- data/lib/gettext/poparser.rb +3 -3
- data/lib/gettext/rails.rb +111 -253
- data/lib/gettext/rgettext.rb +34 -6
- data/lib/gettext/string.rb +3 -2
- data/lib/gettext/textdomain.rb +3 -3
- data/lib/gettext/version.rb +1 -1
- data/pkg/ruby-gettext-package-1.8.0/ext/gettext/extconf.rb +20 -0
- data/po/cs/rails.po +61 -61
- data/po/cs/rgettext.po +37 -55
- data/po/de/rails.po +73 -72
- data/po/de/rgettext.po +39 -56
- data/po/el/rails.po +60 -60
- data/po/el/rgettext.po +26 -44
- data/po/es/rails.po +60 -60
- data/po/es/rgettext.po +28 -52
- data/po/et/rails.po +118 -0
- data/po/fr/rails.po +60 -60
- data/po/fr/rgettext.po +26 -46
- data/po/it/rails.po +68 -68
- data/po/it/rgettext.po +35 -53
- data/po/ja/rails.po +62 -61
- data/po/ja/rgettext.po +27 -45
- data/po/ko/rails.po +61 -60
- data/po/ko/rgettext.po +34 -54
- data/po/nl/rails.po +59 -60
- data/po/nl/rgettext.po +35 -55
- data/po/pt_BR/rails.po +74 -73
- data/po/pt_BR/rgettext.po +36 -52
- data/po/rails.pot +61 -61
- data/po/rgettext.pot +25 -43
- data/po/ru/rails.po +61 -62
- data/po/ru/rgettext.po +26 -51
- data/po/sv/rgettext.po +27 -44
- data/po/zh/rails.po +62 -60
- data/po/zh/rgettext.po +28 -47
- data/po/zh_TW/rails.po +114 -0
- data/po/zh_TW/rgettext.po +121 -0
- data/samples/cgi/locale/zh_TW/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/zh_TW/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/zh_TW/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/zh_TW/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/zh_TW/helloerb1.po +67 -0
- data/samples/cgi/po/zh_TW/helloerb2.po +54 -0
- data/samples/cgi/po/zh_TW/hellolib.po +26 -0
- data/samples/cgi/po/zh_TW/main.po +79 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/po/hellogtk.pot +1 -1
- data/samples/po/zh_TW/hello.po +26 -0
- data/samples/po/zh_TW/hello2.po +34 -0
- data/samples/po/zh_TW/hello_noop.po +30 -0
- data/samples/po/zh_TW/hello_plural.po +28 -0
- data/samples/po/zh_TW/helloglade2.po +40 -0
- data/samples/po/zh_TW/hellogtk.po +25 -0
- data/samples/po/zh_TW/hellotk.po +26 -0
- data/samples/rails/README +8 -11
- data/samples/rails/app/controllers/application.rb +6 -9
- data/samples/rails/app/views/layouts/blog.rhtml +1 -1
- data/samples/rails/config/database.yml +1 -1
- data/samples/rails/config/environment.rb +1 -0
- data/samples/rails/db/schema.rb +90 -0
- data/samples/rails/lib/tasks/gettext.rake +1 -1
- 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/es/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/fr/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/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/zh/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/blog.pot +106 -110
- data/samples/rails/po/cs/blog.po +110 -115
- data/samples/rails/po/de/blog.po +107 -112
- data/samples/rails/po/el/blog.po +105 -109
- data/samples/rails/po/en/blog.po +107 -111
- data/samples/rails/po/es/blog.po +105 -110
- data/samples/rails/po/fr/blog.po +105 -109
- data/samples/rails/po/it/blog.po +105 -109
- data/samples/rails/po/ja/blog.po +105 -109
- data/samples/rails/po/ko/blog.po +105 -109
- data/samples/rails/po/nl/blog.po +105 -110
- data/samples/rails/po/pt_BR/blog.po +105 -109
- data/samples/rails/po/ru/blog.po +105 -107
- data/samples/rails/po/zh/blog.po +105 -109
- data/samples/rails/po/zh_TW/blog.po +107 -0
- data/samples/rails/vendor/plugins/gettext/locale/zh_TW/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/po/zh_TW/gettext_plugin.po +30 -0
- data/test/Rakefile +44 -0
- data/test/fixtures/developer.rb +5 -0
- data/test/fixtures/developers.yml +21 -0
- data/test/fixtures/reply.rb +40 -0
- data/test/fixtures/topic.rb +23 -0
- data/test/fixtures/topics.yml +22 -0
- data/test/gettext_test.rb +2 -2
- data/test/gettext_test_active_record.rb +1479 -0
- data/test/gettext_test_rails.rb +2 -0
- data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
- data/test/po/active_record.pot +295 -0
- data/test/po/ja/active_record.po +294 -0
- data/test/test.sh +1 -0
- data/test/test_rubyparser.rb +10 -2
- metadata +68 -236
- data/doc/classes/ActionController/Base.html +0 -169
- data/doc/classes/ActionController/Base.src/M000014.html +0 -37
- data/doc/classes/ActionController/Base.src/M000015.html +0 -30
- data/doc/classes/ActiveRecord/Base.html +0 -210
- data/doc/classes/ActiveRecord/Base.src/M000114.html +0 -30
- data/doc/classes/ActiveRecord/Base.src/M000115.html +0 -30
- data/doc/classes/ActiveRecord/Base.src/M000116.html +0 -30
- data/doc/classes/ActiveRecord/Base.src/M000117.html +0 -30
- data/doc/classes/ActiveRecord/Base.src/M000118.html +0 -37
- data/doc/classes/ActiveRecord/Base.src/M000119.html +0 -30
- data/doc/classes/ActiveRecord/Base.src/M000120.html +0 -30
- data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +0 -117
- data/doc/classes/ActiveRecord/ConnectionAdapters/Column.src/M000113.html +0 -30
- data/doc/classes/ActiveRecord/Migration.html +0 -96
- data/doc/classes/GetText.html +0 -863
- data/doc/classes/GetText.src/M000017.html +0 -30
- data/doc/classes/GetText.src/M000018.html +0 -31
- data/doc/classes/GetText.src/M000019.html +0 -46
- data/doc/classes/GetText.src/M000020.html +0 -42
- data/doc/classes/GetText.src/M000021.html +0 -32
- data/doc/classes/GetText.src/M000022.html +0 -30
- data/doc/classes/GetText.src/M000023.html +0 -30
- data/doc/classes/GetText.src/M000024.html +0 -31
- data/doc/classes/GetText.src/M000025.html +0 -30
- data/doc/classes/GetText.src/M000026.html +0 -49
- data/doc/classes/GetText.src/M000027.html +0 -38
- data/doc/classes/GetText.src/M000028.html +0 -35
- data/doc/classes/GetText.src/M000029.html +0 -44
- data/doc/classes/GetText.src/M000030.html +0 -30
- data/doc/classes/GetText.src/M000031.html +0 -30
- data/doc/classes/GetText.src/M000032.html +0 -36
- data/doc/classes/GetText.src/M000033.html +0 -53
- data/doc/classes/GetText.src/M000034.html +0 -46
- data/doc/classes/GetText.src/M000035.html +0 -31
- data/doc/classes/GetText.src/M000036.html +0 -31
- data/doc/classes/GetText.src/M000037.html +0 -30
- data/doc/classes/GetText.src/M000038.html +0 -30
- data/doc/classes/GetText.src/M000039.html +0 -30
- data/doc/classes/GetText.src/M000040.html +0 -30
- data/doc/classes/GetText.src/M000041.html +0 -48
- data/doc/classes/GetText.src/M000042.html +0 -18
- data/doc/classes/GetText.src/M000043.html +0 -34
- data/doc/classes/GetText.src/M000044.html +0 -30
- data/doc/classes/GetText.src/M000045.html +0 -20
- data/doc/classes/GetText/ActiveRecordParser.html +0 -148
- data/doc/classes/GetText/ActiveRecordParser.src/M000048.html +0 -35
- data/doc/classes/GetText/ActiveRecordParser.src/M000049.html +0 -30
- data/doc/classes/GetText/ErbContainer.html +0 -161
- data/doc/classes/GetText/ErbContainer.src/M000046.html +0 -31
- data/doc/classes/GetText/ErbContainer.src/M000047.html +0 -30
- data/doc/classes/GetText/ErbParser.html +0 -113
- data/doc/classes/GetText/ErbParser.src/M000051.html +0 -32
- data/doc/classes/GetText/GetText.html +0 -89
- data/doc/classes/GetText/GetText/Container.html +0 -95
- data/doc/classes/GetText/GladeParser.html +0 -109
- data/doc/classes/GetText/NoboundTextDomainError.html +0 -98
- data/doc/classes/GetText/PoParser.html +0 -121
- data/doc/classes/GetText/PoParser.src/M000068.html +0 -30
- data/doc/classes/GetText/Rails.html +0 -172
- data/doc/classes/GetText/Rails.src/M000050.html +0 -43
- data/doc/classes/GetText/RubyParser.html +0 -99
- data/doc/classes/GetText/TextDomain.html +0 -345
- data/doc/classes/GetText/TextDomain.src/M000052.html +0 -30
- data/doc/classes/GetText/TextDomain.src/M000053.html +0 -30
- data/doc/classes/GetText/TextDomain.src/M000054.html +0 -30
- data/doc/classes/GetText/TextDomain.src/M000055.html +0 -58
- data/doc/classes/GetText/TextDomain.src/M000056.html +0 -32
- data/doc/classes/GetText/TextDomain.src/M000057.html +0 -35
- data/doc/classes/GetText/TextDomain.src/M000058.html +0 -49
- data/doc/classes/GetText/TextDomain.src/M000059.html +0 -30
- data/doc/classes/GetText/TextDomain.src/M000060.html +0 -18
- data/doc/classes/GetText/TextDomain.src/M000061.html +0 -18
- data/doc/classes/GetText/TextDomain.src/M000062.html +0 -18
- data/doc/classes/GetText/TextDomain.src/M000063.html +0 -46
- data/doc/classes/GetText/TextDomain.src/M000064.html +0 -20
- data/doc/classes/GetText/TextDomain.src/M000065.html +0 -23
- data/doc/classes/GetText/TextDomain.src/M000066.html +0 -37
- data/doc/classes/GetText/TextDomain.src/M000067.html +0 -18
- data/doc/classes/GetText/TextDomainManager.html +0 -253
- data/doc/classes/GetText/TextDomainManager.src/M000052.html +0 -18
- data/doc/classes/GetText/TextDomainManager.src/M000053.html +0 -18
- data/doc/classes/GetText/TextDomainManager.src/M000054.html +0 -20
- data/doc/classes/GetText/TextDomainManager.src/M000055.html +0 -18
- data/doc/classes/GetText/TextDomainManager.src/M000056.html +0 -20
- data/doc/classes/GetText/TextDomainManager.src/M000057.html +0 -31
- data/doc/classes/GetText/TextDomainManager.src/M000058.html +0 -21
- data/doc/classes/GetText/TextDomainManager.src/M000059.html +0 -24
- data/doc/classes/GetText/TextDomainManager.src/M000060.html +0 -30
- data/doc/classes/GetText/TextDomainManager.src/M000061.html +0 -30
- data/doc/classes/GetText/TextDomainManager.src/M000062.html +0 -32
- data/doc/classes/GetText/TextDomainManager.src/M000063.html +0 -30
- data/doc/classes/GetText/TextDomainManager.src/M000064.html +0 -32
- data/doc/classes/GetText/TextDomainManager.src/M000065.html +0 -43
- data/doc/classes/GetText/TextDomainManager.src/M000066.html +0 -33
- data/doc/classes/GetText/TextDomainManager.src/M000067.html +0 -36
- data/doc/classes/Iconv.html +0 -140
- data/doc/classes/Iconv.src/M000016.html +0 -41
- data/doc/classes/Iconv/Failure.html +0 -86
- data/doc/classes/Iconv/IllegalSequence.html +0 -96
- data/doc/classes/Iconv/InvalidCharacter.html +0 -96
- data/doc/classes/Iconv/InvalidEncoding.html +0 -96
- data/doc/classes/Locale.html +0 -648
- data/doc/classes/Locale.src/M000069.html +0 -32
- data/doc/classes/Locale.src/M000070.html +0 -31
- data/doc/classes/Locale.src/M000071.html +0 -30
- data/doc/classes/Locale.src/M000072.html +0 -34
- data/doc/classes/Locale.src/M000073.html +0 -31
- data/doc/classes/Locale.src/M000074.html +0 -30
- data/doc/classes/Locale.src/M000075.html +0 -30
- data/doc/classes/Locale.src/M000076.html +0 -31
- data/doc/classes/Locale.src/M000077.html +0 -40
- data/doc/classes/Locale.src/M000078.html +0 -31
- data/doc/classes/Locale.src/M000079.html +0 -46
- data/doc/classes/Locale.src/M000080.html +0 -32
- data/doc/classes/Locale.src/M000081.html +0 -31
- data/doc/classes/Locale.src/M000082.html +0 -30
- data/doc/classes/Locale.src/M000083.html +0 -30
- data/doc/classes/Locale.src/M000084.html +0 -30
- data/doc/classes/Locale.src/M000085.html +0 -32
- data/doc/classes/Locale.src/M000086.html +0 -31
- data/doc/classes/Locale.src/M000087.html +0 -31
- data/doc/classes/Locale.src/M000088.html +0 -30
- data/doc/classes/Locale/Object.html +0 -420
- data/doc/classes/Locale/Object.src/M000104.html +0 -53
- data/doc/classes/Locale/Object.src/M000105.html +0 -34
- data/doc/classes/Locale/Object.src/M000106.html +0 -32
- data/doc/classes/Locale/Object.src/M000107.html +0 -32
- data/doc/classes/Locale/Object.src/M000108.html +0 -33
- data/doc/classes/Locale/Object.src/M000109.html +0 -33
- data/doc/classes/Locale/Object.src/M000110.html +0 -30
- data/doc/classes/Locale/SystemCGI.html +0 -247
- data/doc/classes/Locale/SystemCGI.src/M000094.html +0 -48
- data/doc/classes/Locale/SystemCGI.src/M000095.html +0 -30
- data/doc/classes/Locale/SystemCGI.src/M000096.html +0 -31
- data/doc/classes/Locale/SystemCGI.src/M000097.html +0 -31
- data/doc/classes/Locale/SystemCGI.src/M000098.html +0 -31
- data/doc/classes/Locale/SystemCGI.src/M000099.html +0 -32
- data/doc/classes/Locale/SystemCGI.src/M000100.html +0 -31
- data/doc/classes/Locale/SystemCGI.src/M000101.html +0 -30
- data/doc/classes/Locale/SystemPosix.html +0 -133
- data/doc/classes/Locale/SystemPosix.src/M000102.html +0 -39
- data/doc/classes/Locale/SystemPosix.src/M000103.html +0 -34
- data/doc/classes/Locale/SystemWin32.html +0 -206
- data/doc/classes/Locale/SystemWin32.src/M000089.html +0 -31
- data/doc/classes/Locale/SystemWin32.src/M000090.html +0 -48
- data/doc/classes/Locale/SystemWin32.src/M000091.html +0 -32
- data/doc/classes/Locale/SystemWin32.src/M000092.html +0 -31
- data/doc/classes/Locale/SystemWin32.src/M000093.html +0 -30
- data/doc/classes/MOFile.html +0 -279
- data/doc/classes/MOFile.src/M000001.html +0 -31
- data/doc/classes/MOFile.src/M000002.html +0 -34
- data/doc/classes/MOFile.src/M000003.html +0 -37
- data/doc/classes/MOFile.src/M000004.html +0 -42
- data/doc/classes/MOFile.src/M000005.html +0 -93
- data/doc/classes/MOFile.src/M000006.html +0 -38
- data/doc/classes/MOFile.src/M000007.html +0 -34
- data/doc/classes/MOFile.src/M000008.html +0 -42
- data/doc/classes/MOFile.src/M000009.html +0 -93
- data/doc/classes/MOFile.src/M000010.html +0 -31
- data/doc/classes/MOFile.src/M000011.html +0 -30
- data/doc/classes/MOFile.src/M000012.html +0 -30
- data/doc/classes/MOFile/InvalidFormat.html +0 -92
- data/doc/classes/String.html +0 -150
- data/doc/classes/String.src/M000013.html +0 -44
- data/doc/created.rid +0 -1
- data/doc/files/lib/gettext/cgi_rb.html +0 -98
- data/doc/files/lib/gettext/container_rb.html +0 -96
- data/doc/files/lib/gettext/erb_rb.html +0 -97
- data/doc/files/lib/gettext/iconv_rb.html +0 -97
- data/doc/files/lib/gettext/locale_cgi_rb.html +0 -92
- data/doc/files/lib/gettext/locale_object_rb.html +0 -92
- data/doc/files/lib/gettext/locale_posix_rb.html +0 -92
- data/doc/files/lib/gettext/locale_rb.html +0 -99
- data/doc/files/lib/gettext/locale_table_win32_rb.html +0 -92
- data/doc/files/lib/gettext/locale_win32_rb.html +0 -96
- data/doc/files/lib/gettext/mo_rb.html +0 -96
- data/doc/files/lib/gettext/parser/activerecord_rb.html +0 -103
- data/doc/files/lib/gettext/parser/erb_rb.html +0 -97
- data/doc/files/lib/gettext/parser/glade_rb.html +0 -97
- data/doc/files/lib/gettext/parser/ruby_rb.html +0 -98
- data/doc/files/lib/gettext/poparser_rb.html +0 -96
- data/doc/files/lib/gettext/rails_rb.html +0 -99
- data/doc/files/lib/gettext/rgettext_rb.html +0 -98
- data/doc/files/lib/gettext/rmsgfmt_rb.html +0 -100
- data/doc/files/lib/gettext/rmsgmerge_rb.html +0 -100
- data/doc/files/lib/gettext/string_rb.html +0 -92
- data/doc/files/lib/gettext/textdomain_rb.html +0 -97
- data/doc/files/lib/gettext/textdomainmanager_rb.html +0 -97
- data/doc/files/lib/gettext/utils_rb.html +0 -98
- data/doc/files/lib/gettext/version_rb.html +0 -92
- data/doc/files/lib/gettext_rb.html +0 -101
- data/doc/fr_class_index.html +0 -45
- data/doc/fr_file_index.html +0 -41
- data/doc/fr_method_index.html +0 -135
- data/doc/frame-style.css +0 -33
- data/doc/index.html +0 -26
- data/doc/rdoc-style.css +0 -180
- data/jamis.rb +0 -590
- data/samples/rails/db/mysql.sql +0 -8
- data/samples/rails/db/postgresql.sql +0 -7
@@ -1,34 +0,0 @@
|
|
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>
|
@@ -1,206 +0,0 @@
|
|
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, "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>
|
98
|
-
</tr>
|
99
|
-
<tr valign='top'>
|
100
|
-
<td> </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 > LC_CTYPE > LC_MESSAGES
|
153
|
-
> LANG) > 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’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>
|
@@ -1,31 +0,0 @@
|
|
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">"CP1252"</span>
|
29
|
-
<span class="ruby-keyword kw">end</span></pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,48 +0,0 @@
|
|
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">"LC_ALL"</span>, <span class="ruby-value str">"LC_CTYPE"</span>, <span class="ruby-value str">"LC_MESSAGES"</span>, <span class="ruby-value str">"LANG"</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>
|
@@ -1,32 +0,0 @@
|
|
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">"Wrong parameter: #{locale}"</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>
|
@@ -1,31 +0,0 @@
|
|
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>
|
@@ -1,30 +0,0 @@
|
|
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>
|
data/doc/classes/MOFile.html
DELETED
@@ -1,279 +0,0 @@
|
|
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">"\x95\x04\x12\xde"</td>
|
114
|
-
</tr>
|
115
|
-
<tr valign='top'>
|
116
|
-
<td class="attr-name">MAGIC_LITTLE_ENDIAN</td>
|
117
|
-
<td>=</td>
|
118
|
-
<td class="attr-value">"\xde\x12\x04\x95"</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> </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’ 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>
|