gettext 2.2.1 → 2.3.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/COPYING +2 -1
- data/README.rdoc +9 -9
- data/Rakefile +94 -149
- data/bin/rmsgfmt +23 -20
- data/bin/rmsginit +29 -0
- data/bin/rmsgmerge +22 -20
- data/bin/rxgettext +24 -0
- data/doc/text/news.md +60 -0
- data/gettext.gemspec +7 -4
- data/lib/gettext.rb +3 -3
- data/lib/gettext/core_ext/string.rb +2 -1
- data/lib/gettext/runtime/locale_path.rb +6 -4
- data/lib/gettext/runtime/textdomain.rb +14 -8
- data/lib/gettext/runtime/textdomain_manager.rb +3 -3
- data/lib/gettext/task.rb +203 -0
- data/lib/gettext/tools.rb +33 -24
- data/lib/gettext/tools/msgfmt.rb +104 -0
- data/lib/gettext/tools/msginit.rb +363 -0
- data/lib/gettext/tools/msgmerge.rb +510 -0
- data/lib/gettext/tools/parser/ruby.rb +12 -17
- data/lib/gettext/tools/pomessage.rb +37 -4
- data/lib/gettext/tools/poparser.rb +27 -24
- data/lib/gettext/tools/xgettext.rb +327 -0
- data/lib/gettext/version.rb +2 -2
- data/po/bg/rgettext.po +2 -2
- data/po/bs/rgettext.po +2 -2
- data/po/ca/rgettext.po +2 -2
- data/po/cs/rgettext.po +2 -2
- data/po/de/gettext.po +668 -0
- data/po/de/gettext.po.bak +589 -0
- data/po/de/rgettext.po +2 -2
- data/po/el/gettext.po +571 -0
- data/po/el/rgettext.po +2 -2
- data/po/eo/rgettext.po +2 -2
- data/po/es/rgettext.po +2 -2
- data/po/et/rgettext.po +2 -2
- data/po/fr/gettext.po +589 -0
- data/po/fr/rgettext.po +2 -2
- data/po/gettext.pot +638 -0
- data/po/gettext.pot~ +638 -0
- data/po/hr/rgettext.po +2 -2
- data/po/hu/rgettext.po +2 -2
- data/po/it/gettext.po +589 -0
- data/po/it/rgettext.po +2 -2
- data/po/ja/gettext.po +591 -0
- data/po/ja/rgettext.po +112 -69
- data/po/ko/rgettext.po +2 -2
- data/po/lv/rgettext.po +2 -2
- data/po/nb/rgettext.po +2 -2
- data/po/nl/rgettext.po +2 -2
- data/po/pt_BR/rgettext.po +2 -2
- data/po/ru/rgettext.po +2 -2
- data/po/sr/rgettext.po +2 -2
- data/po/sv/rgettext.po +2 -2
- data/po/uk/gettext.po +571 -0
- data/po/uk/rgettext.po +2 -2
- data/po/vi/rgettext.po +2 -2
- data/po/zh/rgettext.po +2 -2
- data/po/zh_TW/rgettext.po +2 -2
- data/samples/README +2 -4
- data/samples/cgi/README +1 -1
- data/samples/cgi/cookie.cgi +1 -1
- data/samples/cgi/gettext.css +1 -1
- data/samples/cgi/helloerb.rhtml +1 -1
- data/samples/cgi/hellolib.rb +1 -1
- data/samples/cgi/http.rb +2 -2
- data/samples/cgi/index.cgi +1 -1
- 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/main.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ca/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ca/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/ca/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/de/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/de/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/de/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/el/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/el/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/el/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/eo/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/eo/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/eo/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/es/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/es/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/es/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/fr/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/fr/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/hu/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/hu/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/hu/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/it/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/it/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/it/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ja/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ja/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/ja/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/ko/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/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/main.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ru/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ru/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/ru/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/main.mo +0 -0
- data/samples/cgi/locale/uk/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/uk/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/uk/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/main.mo +0 -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/main.mo +0 -0
- data/samples/cgi/other.rhtml +1 -1
- data/samples/cgi/po/bg/helloerb1.po +4 -4
- data/samples/cgi/po/bg/helloerb2.po +4 -4
- data/samples/cgi/po/bg/hellolib.po +2 -2
- data/samples/cgi/po/bg/main.po +4 -4
- data/samples/cgi/po/bs/helloerb1.po +3 -3
- data/samples/cgi/po/bs/helloerb2.po +3 -3
- data/samples/cgi/po/bs/hellolib.po +2 -2
- data/samples/cgi/po/bs/main.po +3 -3
- data/samples/cgi/po/ca/helloerb1.po +4 -4
- data/samples/cgi/po/ca/helloerb2.po +4 -4
- data/samples/cgi/po/ca/hellolib.po +2 -2
- data/samples/cgi/po/ca/main.po +4 -4
- data/samples/cgi/po/cs/helloerb1.po +4 -4
- data/samples/cgi/po/cs/helloerb2.po +4 -4
- data/samples/cgi/po/cs/hellolib.po +2 -2
- data/samples/cgi/po/cs/main.po +4 -4
- data/samples/cgi/po/de/helloerb1.po +3 -3
- data/samples/cgi/po/de/helloerb2.po +3 -3
- data/samples/cgi/po/de/hellolib.po +2 -2
- data/samples/cgi/po/de/main.po +3 -3
- data/samples/cgi/po/el/helloerb1.po +3 -3
- data/samples/cgi/po/el/helloerb2.po +3 -3
- data/samples/cgi/po/el/hellolib.po +2 -2
- data/samples/cgi/po/el/main.po +3 -3
- data/samples/cgi/po/eo/helloerb1.po +3 -3
- data/samples/cgi/po/eo/helloerb2.po +3 -3
- data/samples/cgi/po/eo/hellolib.po +2 -2
- data/samples/cgi/po/eo/main.po +3 -3
- data/samples/cgi/po/es/helloerb1.po +4 -4
- data/samples/cgi/po/es/helloerb2.po +4 -4
- data/samples/cgi/po/es/hellolib.po +2 -2
- data/samples/cgi/po/es/main.po +4 -4
- data/samples/cgi/po/fr/helloerb1.po +4 -4
- data/samples/cgi/po/fr/helloerb2.po +4 -4
- data/samples/cgi/po/fr/hellolib.po +2 -2
- data/samples/cgi/po/fr/main.po +4 -4
- data/samples/cgi/po/hr/helloerb1.po +3 -3
- data/samples/cgi/po/hr/helloerb2.po +3 -3
- data/samples/cgi/po/hr/hellolib.po +2 -2
- data/samples/cgi/po/hr/main.po +3 -3
- data/samples/cgi/po/hu/helloerb1.po +4 -4
- data/samples/cgi/po/hu/helloerb2.po +4 -4
- data/samples/cgi/po/hu/hellolib.po +2 -2
- data/samples/cgi/po/hu/main.po +4 -4
- data/samples/cgi/po/it/helloerb1.po +3 -3
- data/samples/cgi/po/it/helloerb2.po +3 -3
- data/samples/cgi/po/it/hellolib.po +2 -2
- data/samples/cgi/po/it/main.po +3 -3
- data/samples/cgi/po/ja/helloerb1.po +4 -4
- data/samples/cgi/po/ja/helloerb2.po +4 -4
- data/samples/cgi/po/ja/hellolib.po +2 -2
- data/samples/cgi/po/ja/main.po +3 -3
- data/samples/cgi/po/ko/helloerb1.po +3 -3
- data/samples/cgi/po/ko/helloerb2.po +3 -3
- data/samples/cgi/po/ko/hellolib.po +2 -2
- data/samples/cgi/po/ko/main.po +3 -3
- data/samples/cgi/po/lv/helloerb1.po +4 -4
- data/samples/cgi/po/lv/helloerb2.po +4 -4
- data/samples/cgi/po/lv/hellolib.po +2 -2
- data/samples/cgi/po/lv/main.po +4 -4
- data/samples/cgi/po/nb/helloerb1.po +3 -3
- data/samples/cgi/po/nb/helloerb2.po +3 -3
- data/samples/cgi/po/nb/hellolib.po +2 -2
- data/samples/cgi/po/nb/main.po +3 -3
- data/samples/cgi/po/nl/helloerb1.po +4 -4
- data/samples/cgi/po/nl/helloerb2.po +4 -4
- data/samples/cgi/po/nl/hellolib.po +2 -2
- data/samples/cgi/po/nl/main.po +4 -4
- data/samples/cgi/po/pt_BR/helloerb1.po +4 -4
- data/samples/cgi/po/pt_BR/helloerb2.po +4 -4
- data/samples/cgi/po/pt_BR/hellolib.po +2 -2
- data/samples/cgi/po/pt_BR/main.po +4 -4
- data/samples/cgi/po/ru/helloerb1.po +4 -4
- data/samples/cgi/po/ru/helloerb2.po +4 -4
- data/samples/cgi/po/ru/hellolib.po +2 -2
- data/samples/cgi/po/ru/main.po +4 -4
- data/samples/cgi/po/sr/helloerb1.po +4 -4
- data/samples/cgi/po/sr/helloerb2.po +4 -4
- data/samples/cgi/po/sr/hellolib.po +2 -2
- data/samples/cgi/po/sr/main.po +4 -4
- data/samples/cgi/po/uk/helloerb1.po +4 -4
- data/samples/cgi/po/uk/helloerb2.po +4 -4
- data/samples/cgi/po/uk/hellolib.po +2 -2
- data/samples/cgi/po/uk/main.po +4 -4
- data/samples/cgi/po/vi/helloerb1.po +3 -3
- data/samples/cgi/po/vi/helloerb2.po +3 -3
- data/samples/cgi/po/vi/hellolib.po +2 -2
- data/samples/cgi/po/vi/main.po +3 -3
- data/samples/cgi/po/zh/helloerb1.po +4 -4
- data/samples/cgi/po/zh/helloerb2.po +4 -4
- data/samples/cgi/po/zh/hellolib.po +2 -2
- data/samples/cgi/po/zh/main.po +4 -4
- data/samples/cgi/po/zh_TW/helloerb1.po +4 -4
- data/samples/cgi/po/zh_TW/helloerb2.po +4 -4
- data/samples/cgi/po/zh_TW/hellolib.po +2 -2
- data/samples/cgi/po/zh_TW/main.po +4 -4
- data/samples/hello.rb +1 -1
- data/samples/hello2.rb +1 -1
- data/samples/hello_glade2.rb +1 -1
- data/samples/hello_gtk2.rb +2 -2
- data/samples/hello_noop.rb +1 -1
- data/samples/hello_plural.rb +1 -1
- data/samples/hello_tk.rb +1 -1
- data/samples/locale/bg/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/ca/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/de/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/el/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/eo/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/es/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/fr/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/hu/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/it/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/ja/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/ru/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/sv/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/uk/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hello_gtk2.mo +0 -0
- data/samples/po/bg/hello.po +2 -2
- data/samples/po/bg/hello2.po +1 -1
- data/samples/po/bg/hello_glade2.po +1 -1
- data/samples/po/bg/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/bg/hello_noop.po +1 -1
- data/samples/po/bg/hello_plural.po +1 -1
- data/samples/po/bg/hello_tk.po +1 -1
- data/samples/po/bs/hello.po +2 -2
- data/samples/po/bs/hello2.po +1 -1
- data/samples/po/bs/hello_glade2.po +1 -1
- data/samples/po/bs/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/bs/hello_noop.po +1 -1
- data/samples/po/bs/hello_plural.po +1 -1
- data/samples/po/bs/hello_tk.po +1 -1
- data/samples/po/ca/hello.po +2 -2
- data/samples/po/ca/hello2.po +1 -1
- data/samples/po/ca/hello_glade2.po +1 -1
- data/samples/po/ca/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/ca/hello_noop.po +1 -1
- data/samples/po/ca/hello_plural.po +1 -1
- data/samples/po/ca/hello_tk.po +1 -1
- data/samples/po/cs/hello.po +1 -1
- data/samples/po/cs/hello_glade2.po +1 -1
- data/samples/po/cs/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/cs/hello_plural.po +1 -1
- data/samples/po/de/hello.po +1 -1
- data/samples/po/de/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/de/hello_plural.po +1 -1
- data/samples/po/el/hello.po +2 -2
- data/samples/po/el/hello2.po +1 -1
- data/samples/po/el/hello_glade2.po +1 -1
- data/samples/po/el/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/el/hello_noop.po +1 -1
- data/samples/po/el/hello_plural.po +1 -1
- data/samples/po/el/hello_tk.po +1 -1
- data/samples/po/eo/hello.po +2 -2
- data/samples/po/eo/hello2.po +1 -1
- data/samples/po/eo/hello_glade2.po +1 -1
- data/samples/po/eo/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/eo/hello_noop.po +1 -1
- data/samples/po/eo/hello_plural.po +1 -1
- data/samples/po/eo/hello_tk.po +1 -1
- data/samples/po/es/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/fr/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/hello.pot +13 -13
- data/samples/po/hello2.pot +17 -17
- data/samples/po/hello_glade2.pot +12 -13
- data/{test/pot/backslash.pot → samples/po/hello_gtk2.pot} +8 -6
- data/samples/po/hello_noop.pot +13 -13
- data/samples/po/hello_plural.pot +14 -15
- data/samples/po/hello_tk.pot +9 -10
- data/samples/po/hr/hello.po +2 -2
- data/samples/po/hr/hello2.po +1 -1
- data/samples/po/hr/hello_glade2.po +1 -1
- data/samples/po/hr/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/hr/hello_noop.po +1 -1
- data/samples/po/hr/hello_plural.po +1 -1
- data/samples/po/hr/hello_tk.po +1 -1
- data/samples/po/hu/hello.po +2 -2
- data/samples/po/hu/hello2.po +1 -1
- data/samples/po/hu/hello_glade2.po +1 -1
- data/samples/po/hu/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/hu/hello_noop.po +1 -1
- data/samples/po/hu/hello_plural.po +1 -1
- data/samples/po/hu/hello_tk.po +1 -1
- data/samples/po/it/hello.po +1 -1
- data/samples/po/it/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/ja/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/ko/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/ko/hello_plural.po +1 -1
- data/samples/po/lv/hello.po +2 -2
- data/samples/po/lv/hello2.po +1 -1
- data/samples/po/lv/hello_glade2.po +1 -1
- data/samples/po/lv/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/lv/hello_noop.po +1 -1
- data/samples/po/lv/hello_plural.po +1 -1
- data/samples/po/lv/hello_tk.po +1 -1
- data/samples/po/nb/hello.po +2 -2
- data/samples/po/nb/hello2.po +1 -1
- data/samples/po/nb/hello_glade2.po +1 -1
- data/samples/po/nb/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/nb/hello_noop.po +1 -1
- data/samples/po/nb/hello_plural.po +1 -1
- data/samples/po/nb/hello_tk.po +1 -1
- data/samples/po/nl/hello.po +2 -2
- data/samples/po/nl/hello2.po +1 -1
- data/samples/po/nl/hello_glade2.po +1 -1
- data/samples/po/nl/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/nl/hello_noop.po +1 -1
- data/samples/po/nl/hello_plural.po +1 -1
- data/samples/po/nl/hello_tk.po +1 -1
- data/samples/po/pt_BR/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/ru/hello.po +2 -2
- data/samples/po/ru/hello2.po +1 -1
- data/samples/po/ru/hello_glade2.po +1 -1
- data/samples/po/ru/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/ru/hello_noop.po +1 -1
- data/samples/po/ru/hello_plural.po +1 -1
- data/samples/po/ru/hello_tk.po +1 -1
- data/samples/po/sr/hello.po +2 -2
- data/samples/po/sr/hello2.po +1 -1
- data/samples/po/sr/hello_glade2.po +1 -1
- data/samples/po/sr/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/sr/hello_noop.po +1 -1
- data/samples/po/sr/hello_plural.po +1 -1
- data/samples/po/sr/hello_tk.po +1 -1
- data/samples/po/sv/{hello_gtk.po → hello_gtk2.po} +0 -0
- data/samples/po/uk/hello.po +2 -2
- data/samples/po/uk/hello2.po +1 -1
- data/samples/po/uk/hello_glade2.po +1 -1
- data/samples/po/uk/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/uk/hello_noop.po +1 -1
- data/samples/po/uk/hello_plural.po +1 -1
- data/samples/po/uk/hello_tk.po +1 -1
- data/samples/po/vi/hello.po +2 -2
- data/samples/po/vi/hello2.po +1 -1
- data/samples/po/vi/hello_glade2.po +1 -1
- data/samples/po/vi/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/vi/hello_noop.po +1 -1
- data/samples/po/vi/hello_plural.po +1 -1
- data/samples/po/vi/hello_tk.po +1 -1
- data/samples/po/zh/hello.po +2 -2
- data/samples/po/zh/hello2.po +1 -1
- data/samples/po/zh/hello_glade2.po +1 -1
- data/samples/po/zh/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/zh/hello_noop.po +1 -1
- data/samples/po/zh/hello_plural.po +1 -1
- data/samples/po/zh/hello_tk.po +1 -1
- data/samples/po/zh_TW/hello.po +2 -2
- data/samples/po/zh_TW/hello2.po +1 -1
- data/samples/po/zh_TW/hello_glade2.po +1 -1
- data/samples/po/zh_TW/{hello_gtk.po → hello_gtk2.po} +1 -1
- data/samples/po/zh_TW/hello_noop.po +1 -1
- data/samples/po/zh_TW/hello_plural.po +1 -1
- data/samples/po/zh_TW/hello_tk.po +1 -1
- data/src/poparser.ry +18 -14
- data/test/{testlib → fixtures}/N_.rb +0 -0
- data/test/{testlib/gettext.rb → fixtures/_.rb} +27 -1
- data/test/fixtures/_/one_line.rb +32 -0
- data/test/fixtures/backslash.rb +29 -0
- data/test/{testlib → fixtures}/erb.rhtml +0 -0
- data/test/{testlib → fixtures}/erb.rxml +0 -0
- data/test/{testlib → fixtures}/gladeparser.glade +0 -0
- data/test/{testlib → fixtures}/multi_textdomain.rb +0 -0
- data/test/{testlib/ngettext.rb → fixtures/n_.rb} +20 -1
- data/test/{testlib → fixtures}/non_ascii.rb +0 -0
- data/test/fixtures/np_.rb +51 -0
- data/test/{testlib/nsgettext.rb → fixtures/ns_.rb} +20 -2
- data/test/fixtures/ns_/custom.rb +32 -0
- data/test/fixtures/p_.rb +57 -0
- data/test/fixtures/s_.rb +66 -0
- data/test/fixtures/s_/custom.rb +32 -0
- data/test/{testlib → fixtures}/simple.rb +0 -0
- data/test/gettext-test-utils.rb +44 -0
- data/test/locale/ja/LC_MESSAGES/_.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/backslash.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/np_.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/ns_.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/p_.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/s_.mo +0 -0
- data/test/parser/test_ruby.rb +121 -0
- data/test/po/_.pot +109 -0
- data/test/{pot/sgettext.pot → po/backslash.pot} +10 -4
- data/test/po/ja/_.po +114 -0
- data/test/po/ja/backslash.po +3 -3
- data/test/po/ja/non_ascii.po +1 -1
- data/test/po/ja/{npgettext.po → np_.po} +6 -6
- data/test/po/ja/{nsgettext.po → ns_.po} +16 -10
- data/test/po/ja/{pgettext.po → p_.po} +5 -5
- data/test/po/ja/{sgettext.po → s_.po} +0 -0
- data/test/{pot → po}/non_ascii.pot +7 -5
- data/test/{pot/npgettext.pot → po/np_.pot} +10 -9
- data/test/{pot/nsgettext.pot → po/ns_.pot} +20 -12
- data/test/{pot/pgettext.pot → po/p_.pot} +12 -10
- data/test/po/s_.pot +55 -0
- data/test/run-test.rb +5 -0
- data/test/test_class_info.rb +0 -1
- data/test/test_gettext.rb +49 -12
- data/test/test_locale_path.rb +1 -4
- data/test/test_mofile.rb +0 -1
- data/test/test_parser.rb +119 -88
- data/test/test_po_generation.rb +32 -9
- data/test/{test_pomessage.rb → test_po_message.rb} +18 -1
- data/test/test_po_parser.rb +117 -0
- data/test/test_string.rb +0 -2
- data/test/test_textdomain_bind.rb +0 -2
- data/test/test_textdomain_multi.rb +1 -2
- data/test/test_textdomain_toplevel.rb +0 -1
- data/test/test_thread.rb +0 -1
- data/test/tools/test_msginit.rb +351 -0
- data/test/tools/test_msgmerge.rb +202 -0
- data/test/tools/test_tools.rb +0 -2
- data/test/tools/test_xgettext.rb +154 -0
- metadata +822 -753
- data/bin/rgettext +0 -23
- data/data/locale/bg/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/et/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/lv/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rgettext.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/uk/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
- data/lib/gettext/tools/rgettext.rb +0 -251
- data/lib/gettext/tools/rmsgfmt.rb +0 -86
- data/lib/gettext/tools/rmsgmerge.rb +0 -500
- data/samples/makemo.rb +0 -6
- data/samples/po/hello_gtk.pot +0 -23
- data/samples/po/test.rb +0 -13
- data/test/testlib/backslash.rb +0 -12
- data/test/testlib/helper.rb +0 -13
- data/test/testlib/npgettext.rb +0 -33
- data/test/testlib/pgettext.rb +0 -38
- data/test/testlib/sgettext.rb +0 -48
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Slobodan Paunović <slobodan.paunovic at gmail.com>, 2008.
|
|
8
8
|
#
|
data/samples/cgi/po/sr/main.po
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Slobodan Paunović <slobodan.paunovic at gmail.com>, 2008.
|
|
8
8
|
#
|
|
@@ -34,8 +34,8 @@ msgid "an ERB/CGI sample (Auto-Detect charset)."
|
|
|
34
34
|
msgstr "један ERB/CGI пример (Auto-Detect charset)."
|
|
35
35
|
|
|
36
36
|
#: index.cgi:50 cookie.cgi:44
|
|
37
|
-
msgid "Sample script for CGI/ERB and
|
|
38
|
-
msgstr "Пример скрипта за CGI/ERB и
|
|
37
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
38
|
+
msgstr "Пример скрипта за CGI/ERB и gettext"
|
|
39
39
|
|
|
40
40
|
#: index.cgi:55
|
|
41
41
|
msgid "Ruby-GetText CGI sample scripts"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Alex Rootoff <rootoff at pisem.net>, 2007.
|
|
8
8
|
#
|
|
@@ -26,8 +26,8 @@ msgid "Sample script for CGI/ERB (UTF-8)."
|
|
|
26
26
|
msgstr "Зразок сценарію для CGI/ERB (UTF-8)."
|
|
27
27
|
|
|
28
28
|
#: helloerb.rhtml:5 other.rhtml:5
|
|
29
|
-
msgid "Sample script for CGI/ERB and
|
|
30
|
-
msgstr "Зразок сценарію для CGI/ERB (UTF-8) і
|
|
29
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
30
|
+
msgstr "Зразок сценарію для CGI/ERB (UTF-8) і gettext"
|
|
31
31
|
|
|
32
32
|
#: helloerb.rhtml:12
|
|
33
33
|
msgid "Hello World"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Alex Rootoff <rootoff at pisem.net>, 2007.
|
|
8
8
|
#
|
|
@@ -26,8 +26,8 @@ msgid "Sample script for CGI/ERB (Auto-Detect charset)."
|
|
|
26
26
|
msgstr "Зразок сценарію для CGI/ERB (автовизначення набору символів)."
|
|
27
27
|
|
|
28
28
|
#: helloerb.rhtml:5
|
|
29
|
-
msgid "Sample script for CGI/ERB and
|
|
30
|
-
msgstr "Зразок сценарію для CGI/ERB і
|
|
29
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
30
|
+
msgstr "Зразок сценарію для CGI/ERB і gettext"
|
|
31
31
|
|
|
32
32
|
#: helloerb.rhtml:12
|
|
33
33
|
msgid "Hello World"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Alex Rootoff <rootoff at pisem.net>, 2007.
|
|
8
8
|
#
|
data/samples/cgi/po/uk/main.po
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Alex Rootoff <rootoff at pisem.net>, 2007.
|
|
8
8
|
#
|
|
@@ -37,8 +37,8 @@ msgid "an ERB/CGI sample (Auto-Detect charset)."
|
|
|
37
37
|
msgstr "Зразок ERB/CGI сценарію (авто-визначення набору символів)"
|
|
38
38
|
|
|
39
39
|
#: index.cgi:50 cookie.cgi:44
|
|
40
|
-
msgid "Sample script for CGI/ERB and
|
|
41
|
-
msgstr "Зразок сценарію для CGI/ERB і
|
|
40
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
41
|
+
msgstr "Зразок сценарію для CGI/ERB і gettext"
|
|
42
42
|
|
|
43
43
|
#: index.cgi:55
|
|
44
44
|
msgid "Ruby-GetText CGI sample scripts"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Ngoc DAO Thanh <ngocdaothanh at gmail.com>, 2007.
|
|
8
8
|
#
|
|
@@ -24,7 +24,7 @@ msgstr "Script ví dụ mẫu về CGI/ERB (UTF-8)."
|
|
|
24
24
|
|
|
25
25
|
#: helloerb.rhtml:5
|
|
26
26
|
#: other.rhtml:5
|
|
27
|
-
msgid "Sample script for CGI/ERB and
|
|
27
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
28
28
|
msgstr "Script ví dụ mẫu về CGI/ERB và gói Ruby-GetText"
|
|
29
29
|
|
|
30
30
|
#: helloerb.rhtml:12
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Ngoc DAO Thanh <ngocdaothanh at gmail.com>, 2007.
|
|
8
8
|
#
|
|
@@ -23,7 +23,7 @@ msgid "Sample script for CGI/ERB (Auto-Detect charset)."
|
|
|
23
23
|
msgstr "Script ví dụ mẫu về CGI/ERB (Auto-Detect charset)."
|
|
24
24
|
|
|
25
25
|
#: helloerb.rhtml:5
|
|
26
|
-
msgid "Sample script for CGI/ERB and
|
|
26
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
27
27
|
msgstr "Script ví dụ mẫu về CGI/ERB và gói Ruby-GetText"
|
|
28
28
|
|
|
29
29
|
#: helloerb.rhtml:12
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Ngoc DAO Thanh <ngocdaothanh at gmail.com>, 2007.
|
|
8
8
|
#
|
data/samples/cgi/po/vi/main.po
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Ngoc DAO Thanh <ngocdaothanh at gmail.com>, 2007.
|
|
8
8
|
#
|
|
@@ -32,7 +32,7 @@ msgstr "ví dụ mẫu về ERB/CGI (Auto-Detect charset)."
|
|
|
32
32
|
|
|
33
33
|
#: index.cgi:50
|
|
34
34
|
#: cookie.cgi:44
|
|
35
|
-
msgid "Sample script for CGI/ERB and
|
|
35
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
36
36
|
msgstr "Script ví dụ mẫu về CGI/ERB và gói Ruby-GetText"
|
|
37
37
|
|
|
38
38
|
#: index.cgi:55
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Yingfeng <blogyingfeng at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -24,8 +24,8 @@ msgid "Sample script for CGI/ERB (UTF-8)."
|
|
|
24
24
|
msgstr "用于CGI/ERB的示例脚本(UTF-8)"
|
|
25
25
|
|
|
26
26
|
#: helloerb.rhtml:5 other.rhtml:5
|
|
27
|
-
msgid "Sample script for CGI/ERB and
|
|
28
|
-
msgstr "用于CGI/ERB和
|
|
27
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
28
|
+
msgstr "用于CGI/ERB和gettext的示例脚本"
|
|
29
29
|
|
|
30
30
|
#: helloerb.rhtml:12
|
|
31
31
|
msgid "Hello World"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Yingfeng <blogyingfeng at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -24,8 +24,8 @@ msgid "Sample script for CGI/ERB (Auto-Detect charset)."
|
|
|
24
24
|
msgstr "用于CGI/ERB的示例脚本(自动检测字符集)"
|
|
25
25
|
|
|
26
26
|
#: helloerb.rhtml:5
|
|
27
|
-
msgid "Sample script for CGI/ERB and
|
|
28
|
-
msgstr "用于CGI/ERB和
|
|
27
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
28
|
+
msgstr "用于CGI/ERB和gettext的示例脚本"
|
|
29
29
|
|
|
30
30
|
#: helloerb.rhtml:12
|
|
31
31
|
msgid "Hello World"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Yingfeng <blogyingfeng at gmail.com>, 2006.
|
|
8
8
|
#
|
data/samples/cgi/po/zh/main.po
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# Yingfeng <blogyingfeng at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -34,8 +34,8 @@ msgid "an ERB/CGI sample (Auto-Detect charset)."
|
|
|
34
34
|
msgstr "一个ERB/CGI示例(自动检测字符集)。"
|
|
35
35
|
|
|
36
36
|
#: index.cgi:50 cookie.cgi:44
|
|
37
|
-
msgid "Sample script for CGI/ERB and
|
|
38
|
-
msgstr "用于CGI/ERB和
|
|
37
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
38
|
+
msgstr "用于CGI/ERB和gettext的示例脚本"
|
|
39
39
|
|
|
40
40
|
#: index.cgi:55
|
|
41
41
|
msgid "Ruby-GetText CGI sample scripts"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# LIN CHUNG-YI <xmarsh at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -26,8 +26,8 @@ msgstr "CGI/ERB (UTF-8) 範例"
|
|
|
26
26
|
|
|
27
27
|
#: helloerb.rhtml:5
|
|
28
28
|
#: other.rhtml:5
|
|
29
|
-
msgid "Sample script for CGI/ERB and
|
|
30
|
-
msgstr "CGI/ERB 與
|
|
29
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
30
|
+
msgstr "CGI/ERB 與 gettext 範例"
|
|
31
31
|
|
|
32
32
|
#: helloerb.rhtml:12
|
|
33
33
|
msgid "Hello World"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# LIN CHUNG-YI <xmarsh at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -25,8 +25,8 @@ msgid "Sample script for CGI/ERB (Auto-Detect charset)."
|
|
|
25
25
|
msgstr "CGI/ERB 範例 (自動偵測字集)"
|
|
26
26
|
|
|
27
27
|
#: helloerb.rhtml:5
|
|
28
|
-
msgid "Sample script for CGI/ERB and
|
|
29
|
-
msgstr "CGI/ERB 與
|
|
28
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
29
|
+
msgstr "CGI/ERB 與 gettext 範例"
|
|
30
30
|
|
|
31
31
|
#: helloerb.rhtml:12
|
|
32
32
|
msgid "Hello World"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# LIN CHUNG-YI <xmarsh at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# CGI/ERB sample for
|
|
1
|
+
# CGI/ERB sample for gettext.
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
4
4
|
#
|
|
5
|
-
# This file is distributed under the same license as the
|
|
5
|
+
# This file is distributed under the same license as the gettext.
|
|
6
6
|
#
|
|
7
7
|
# LIN CHUNG-YI <xmarsh at gmail.com>, 2006.
|
|
8
8
|
#
|
|
@@ -34,8 +34,8 @@ msgstr "ERB/CGI 範例 (字集自動偵測)"
|
|
|
34
34
|
|
|
35
35
|
#: index.cgi:50
|
|
36
36
|
#: cookie.cgi:44
|
|
37
|
-
msgid "Sample script for CGI/ERB and
|
|
38
|
-
msgstr "CGI/ERB 與
|
|
37
|
+
msgid "Sample script for CGI/ERB and gettext"
|
|
38
|
+
msgstr "CGI/ERB 與 gettext 的範例程式"
|
|
39
39
|
|
|
40
40
|
#: index.cgi:55
|
|
41
41
|
msgid "Ruby-GetText CGI sample scripts"
|
data/samples/hello.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# hello.rb - sample for _() and class.
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2001-2009 Masao Mutoh
|
|
5
|
-
# This file is distributed under the same license as
|
|
5
|
+
# This file is distributed under the same license as gettext.
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
8
8
|
require 'gettext'
|
data/samples/hello2.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# hello2.po - sample for _() and module
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2002-2004 Masao Mutoh
|
|
5
|
-
# This file is distributed under the same license as
|
|
5
|
+
# This file is distributed under the same license as gettext.
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
8
8
|
require 'gettext'
|
data/samples/hello_glade2.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# hello_glade2.rb - sample for Ruby/Libglade2
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2004-2008 Masao Mutoh
|
|
5
|
-
# This file is distributed under the same license as
|
|
5
|
+
# This file is distributed under the same license as gettext.
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
8
8
|
require 'libglade2'
|
data/samples/hello_gtk2.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# hello_gtk2.rb - sample for Ruby/GTK2
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2001-2006 Masao Mutoh
|
|
5
|
-
# This file is distributed under the same license as
|
|
5
|
+
# This file is distributed under the same license as gettext.
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
8
8
|
require 'gettext'
|
|
@@ -11,7 +11,7 @@ require 'gtk2'
|
|
|
11
11
|
class LocalizedWindow < Gtk::Window
|
|
12
12
|
include GetText
|
|
13
13
|
|
|
14
|
-
bindtextdomain("
|
|
14
|
+
bindtextdomain("hello_gtk2", :path => "locale", :output_charset => "utf-8")
|
|
15
15
|
|
|
16
16
|
def initialize
|
|
17
17
|
super
|
data/samples/hello_noop.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# hello_noop.rb - sample for N_() and class.
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2002-2006 Masao Mutoh
|
|
5
|
-
# This file is distributed under the same license as
|
|
5
|
+
# This file is distributed under the same license as gettext.
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
8
8
|
require 'gettext'
|
data/samples/hello_plural.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# hello_plural.po - sample for n_() and class.
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2002-2006 Masao Mutoh
|
|
5
|
-
# This file is distributed under the same license as
|
|
5
|
+
# This file is distributed under the same license as gettext.
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
8
8
|
require 'gettext'
|
data/samples/hello_tk.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|