gettext 1.1.1 → 1.2.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 +128 -0
- data/NEWS +10 -0
- data/README +21 -23
- data/Rakefile +39 -20
- 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/fr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rgettext.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/sv/LC_MESSAGES/rgettext.mo +0 -0
- data/ext/gettext/extconf.rb +20 -0
- data/ext/gettext/{gettext/_locale.c → locale_system.c} +15 -19
- data/lib/gettext.rb +186 -38
- data/lib/gettext/cgi.rb +35 -69
- data/lib/gettext/container.rb +14 -5
- data/lib/gettext/erb.rb +30 -2
- data/lib/gettext/iconv.rb +19 -4
- data/lib/gettext/locale.rb +188 -39
- data/lib/gettext/locale_cgi.rb +102 -0
- data/lib/gettext/locale_object.rb +131 -0
- data/lib/gettext/locale_posix.rb +50 -0
- data/lib/gettext/locale_table_win32.rb +224 -182
- data/lib/gettext/locale_win32.rb +59 -35
- data/lib/gettext/mo.rb +2 -2
- data/lib/gettext/parser/activerecord.rb +19 -5
- data/lib/gettext/parser/erb.rb +6 -3
- data/lib/gettext/parser/glade.rb +5 -5
- data/lib/gettext/parser/ruby.rb +6 -6
- data/lib/gettext/poparser.rb +7 -6
- data/lib/gettext/rails.rb +122 -44
- data/lib/gettext/rgettext.rb +21 -8
- data/lib/gettext/rmsgfmt.rb +16 -8
- data/lib/gettext/rmsgmerge.rb +172 -50
- data/lib/gettext/string.rb +25 -3
- data/lib/gettext/textdomain.rb +89 -90
- data/lib/gettext/utils.rb +63 -3
- data/lib/gettext/version.rb +2 -2
- data/pkg/ruby-gettext-package-1.2.0/ext/gettext/extconf.rb +20 -0
- data/po/cs/rails.po +28 -28
- data/po/cs/rgettext.po +14 -14
- data/po/de/rails.po +29 -26
- data/po/de/rgettext.po +24 -17
- data/po/el/rails.po +26 -26
- data/po/el/rgettext.po +18 -15
- data/po/es/rails.po +26 -26
- data/po/es/rgettext.po +16 -16
- data/po/fr/rails.po +27 -27
- data/po/fr/rgettext.po +14 -14
- data/po/it/rgettext.po +14 -14
- data/po/ja/rails.po +24 -24
- data/po/ja/rgettext.po +14 -14
- data/po/ko/rails.po +24 -24
- data/po/ko/rgettext.po +17 -18
- data/po/nl/rails.po +27 -27
- data/po/nl/rgettext.po +18 -18
- data/po/pt_BR/rails.po +26 -26
- data/po/pt_BR/rgettext.po +14 -14
- data/po/rails.pot +26 -26
- data/po/rgettext.pot +14 -14
- data/po/sv/rgettext.po +14 -14
- data/post-setup.rb +8 -3
- data/pre-setup.rb +14 -1
- data/samples/cgi/http.rb +2 -1
- data/samples/makemo.rb +1 -1
- data/samples/rails/app/models/article.rb +15 -1
- data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/el/LC_MESSAGES/gettext_plugin.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/es/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/po/blog.pot +1 -1
- data/samples/rails/po/cs/blog.po +1 -2
- data/samples/rails/po/cs/gettext_plugin.po +1 -1
- data/samples/rails/po/de/blog.po +1 -2
- data/samples/rails/po/de/gettext_plugin.po +1 -1
- data/samples/rails/po/el/blog.po +1 -1
- data/samples/rails/po/el/gettext_plugin.po +1 -1
- data/samples/rails/po/en/blog.po +1 -1
- data/samples/rails/po/es/blog.po +1 -2
- data/samples/rails/po/es/gettext_plugin.po +1 -1
- data/samples/rails/po/fr/blog.po +1 -1
- data/samples/rails/po/fr/gettext_plugin.po +1 -1
- data/samples/rails/po/gettext_plugin.pot +1 -1
- data/samples/rails/po/ja/blog.po +2 -1
- data/samples/rails/po/ja/gettext_plugin.po +1 -1
- data/samples/rails/po/ko/blog.po +1 -2
- data/samples/rails/po/ko/gettext_plugin.po +1 -1
- data/samples/rails/po/nl/blog.po +1 -3
- data/samples/rails/po/nl/gettext_plugin.po +1 -1
- data/samples/rails/po/pt_BR/blog.po +1 -1
- data/samples/rails/po/pt_BR/gettext_plugin.po +1 -1
- data/setup.rb +799 -574
- data/src/poparser.ry +6 -5
- data/test/gettext_runner.rb +3 -1
- data/test/gettext_test.rb +40 -24
- data/test/gettext_test_cgi.rb +60 -6
- data/test/gettext_test_locale.rb +136 -0
- data/test/gettext_test_parser.rb +12 -12
- data/test/locale/la/LC_MESSAGES/plural_error.mo +0 -0
- data/test/po/la/plural_error.po +21 -0
- data/test/test.bat +2 -0
- data/test/test.sh +2 -4
- data/test/{test_rubyparser_n.rb → test_rubyparser_n_.rb} +0 -0
- metadata +17 -12
- data/ext/gettext/gettext/MANIFEST +0 -3
- data/ext/gettext/gettext/extconf.rb +0 -20
- data/lib/gettext/locale_default.rb +0 -35
data/test/test.bat
ADDED
data/test/test.sh
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -3,13 +3,13 @@ rubygems_version: 0.8.11
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: gettext
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 1.
|
|
7
|
-
date: 2006-
|
|
8
|
-
summary: Ruby-GetText-Package is
|
|
6
|
+
version: 1.2.0
|
|
7
|
+
date: 2006-02-24 00:00:00 +09:00
|
|
8
|
+
summary: Ruby-GetText-Package is a libary and tools to localize messages.
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
11
11
|
email: mutoh@highway.ne.jp
|
|
12
|
-
homepage: http://
|
|
12
|
+
homepage: http://www.yotabanana.com/hiki/ruby-gettext.html
|
|
13
13
|
rubyforge_project: gettext
|
|
14
14
|
description: Ruby-GetText-Package is a GNU GetText-like program for Ruby. The catalog file(po-file) is same format with GNU GetText. So you can use GNU GetText tools for maintaining.
|
|
15
15
|
autorequire:
|
|
@@ -584,10 +584,8 @@ files:
|
|
|
584
584
|
- samples/locale/fr/LC_MESSAGES/hello_noop.mo
|
|
585
585
|
- samples/locale/fr/LC_MESSAGES/hellogtk.mo
|
|
586
586
|
- ext/gettext
|
|
587
|
-
- ext/gettext/
|
|
588
|
-
- ext/gettext/
|
|
589
|
-
- ext/gettext/gettext/MANIFEST
|
|
590
|
-
- ext/gettext/gettext/_locale.c
|
|
587
|
+
- ext/gettext/extconf.rb
|
|
588
|
+
- ext/gettext/locale_system.c
|
|
591
589
|
- po/rgettext.pot
|
|
592
590
|
- po/de
|
|
593
591
|
- po/ko
|
|
@@ -626,16 +624,18 @@ files:
|
|
|
626
624
|
- lib/gettext.rb
|
|
627
625
|
- lib/gettext/locale_win32.rb
|
|
628
626
|
- lib/gettext/rmsgmerge.rb
|
|
629
|
-
- lib/gettext/
|
|
627
|
+
- lib/gettext/locale_posix.rb
|
|
630
628
|
- lib/gettext/poparser.rb
|
|
631
629
|
- lib/gettext/string.rb
|
|
632
630
|
- lib/gettext/container.rb
|
|
633
631
|
- lib/gettext/textdomain.rb
|
|
632
|
+
- lib/gettext/locale_cgi.rb
|
|
634
633
|
- lib/gettext/rgettext.rb
|
|
635
634
|
- lib/gettext/locale.rb
|
|
636
635
|
- lib/gettext/locale_table_win32.rb
|
|
637
636
|
- lib/gettext/iconv.rb
|
|
638
637
|
- lib/gettext/parser
|
|
638
|
+
- lib/gettext/locale_object.rb
|
|
639
639
|
- lib/gettext/utils.rb
|
|
640
640
|
- lib/gettext/mo.rb
|
|
641
641
|
- lib/gettext/version.rb
|
|
@@ -658,8 +658,10 @@ files:
|
|
|
658
658
|
- test/test_erb.rhtml
|
|
659
659
|
- test/test.sh
|
|
660
660
|
- test/testlib3.rb
|
|
661
|
-
- test/test_rubyparser_n.rb
|
|
662
661
|
- test/test_rubyparser_N.rb
|
|
662
|
+
- test/test.bat
|
|
663
|
+
- test/gettext_test_locale.rb
|
|
664
|
+
- test/test_rubyparser_n_.rb
|
|
663
665
|
- test/gettext_test_string.rb
|
|
664
666
|
- test/po
|
|
665
667
|
- test/test_rubyparser.rb
|
|
@@ -676,6 +678,7 @@ files:
|
|
|
676
678
|
- test/po/da
|
|
677
679
|
- test/po/sl
|
|
678
680
|
- test/po/fr
|
|
681
|
+
- test/po/la/plural_error.po
|
|
679
682
|
- test/po/la/plural.po
|
|
680
683
|
- test/po/ja/plural_error.po
|
|
681
684
|
- test/po/ja/plural.po
|
|
@@ -704,6 +707,7 @@ files:
|
|
|
704
707
|
- test/locale/sl
|
|
705
708
|
- test/locale/fr
|
|
706
709
|
- test/locale/la/LC_MESSAGES
|
|
710
|
+
- test/locale/la/LC_MESSAGES/plural_error.mo
|
|
707
711
|
- test/locale/la/LC_MESSAGES/plural.mo
|
|
708
712
|
- test/locale/ja/LC_MESSAGES
|
|
709
713
|
- test/locale/ja/LC_MESSAGES/test_rubyparser.mo
|
|
@@ -744,8 +748,9 @@ executables:
|
|
|
744
748
|
- rmsgmerge
|
|
745
749
|
- rgettext
|
|
746
750
|
extensions:
|
|
747
|
-
- ext/gettext/
|
|
748
|
-
- ext/gettext/
|
|
751
|
+
- ext/gettext/extconf.rb
|
|
752
|
+
- ext/gettext/extconf.rb
|
|
753
|
+
- pkg/ruby-gettext-package-1.2.0/ext/gettext/extconf.rb
|
|
749
754
|
requirements: []
|
|
750
755
|
|
|
751
756
|
dependencies: []
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
extconf.rb
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2002,2003 Masao Mutoh <mutoh@highway.ne.jp>
|
|
5
|
-
|
|
6
|
-
You may redistribute it and/or modify it under the same
|
|
7
|
-
license terms as Ruby.
|
|
8
|
-
|
|
9
|
-
$Id: extconf.rb,v 1.1.1.1 2005/08/13 02:38:09 mutoh Exp $
|
|
10
|
-
=end
|
|
11
|
-
|
|
12
|
-
require 'mkmf'
|
|
13
|
-
|
|
14
|
-
if RUBY_PLATFORM =~ /cygwin|mingw|mswin32|bccwin32/
|
|
15
|
-
have_header 'windows.h'
|
|
16
|
-
else
|
|
17
|
-
have_func 'setlocale'
|
|
18
|
-
have_func 'nl_langinfo'
|
|
19
|
-
end
|
|
20
|
-
create_makefile '_locale'
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
locale_default.rb - Locale module for Default OS(Unix).
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2002-2005 Masao Mutoh <mutoh@highway.ne.jp>
|
|
5
|
-
|
|
6
|
-
You may redistribute it and/or modify it under the same
|
|
7
|
-
license terms as Ruby.
|
|
8
|
-
|
|
9
|
-
$Id: locale_default.rb,v 1.3 2005/09/04 17:47:54 mutoh Exp $
|
|
10
|
-
=end
|
|
11
|
-
|
|
12
|
-
module Locale
|
|
13
|
-
@@locale_initialized = false
|
|
14
|
-
alias :__set :set
|
|
15
|
-
def __get(lctype = Locale::CTYPE)
|
|
16
|
-
# Initialize lctype lazily.
|
|
17
|
-
# This isn't called when 'gettext/cgi' is required.
|
|
18
|
-
unless @@locale_initialized
|
|
19
|
-
Locale.set(lctype, "")
|
|
20
|
-
@@locale_initialized = true
|
|
21
|
-
end
|
|
22
|
-
set(lctype, nil)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def set(lctype, loc)
|
|
26
|
-
ret = __set(lctype, loc)
|
|
27
|
-
if loc and ! @@locale_initialized
|
|
28
|
-
@@locale_initialized = true
|
|
29
|
-
end
|
|
30
|
-
ret
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
module_function :__get, :set, :__set
|
|
34
|
-
end
|
|
35
|
-
|