gettext 1.2.0 → 1.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.
Files changed (71) hide show
  1. data/ChangeLog +74 -0
  2. data/NEWS +16 -0
  3. data/README +9 -9
  4. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  5. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  6. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  7. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  8. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  9. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  10. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  11. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  12. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  13. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  14. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  15. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  16. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  17. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  24. data/lib/gettext.rb +9 -4
  25. data/lib/gettext/locale.rb +11 -5
  26. data/lib/gettext/locale_cgi.rb +2 -5
  27. data/lib/gettext/locale_object.rb +68 -21
  28. data/lib/gettext/poparser.rb +2 -2
  29. data/lib/gettext/rails.rb +150 -30
  30. data/lib/gettext/version.rb +1 -1
  31. data/po/cs/rails.po +27 -27
  32. data/po/cs/rgettext.po +8 -8
  33. data/po/de/rails.po +28 -28
  34. data/po/de/rgettext.po +8 -8
  35. data/po/el/rails.po +25 -25
  36. data/po/el/rgettext.po +8 -8
  37. data/po/es/rails.po +25 -25
  38. data/po/es/rgettext.po +8 -8
  39. data/po/fr/rails.po +26 -26
  40. data/po/fr/rgettext.po +8 -8
  41. data/po/it/rgettext.po +8 -8
  42. data/po/ja/rails.po +23 -23
  43. data/po/ja/rgettext.po +8 -8
  44. data/po/ko/rails.po +23 -23
  45. data/po/ko/rgettext.po +8 -8
  46. data/po/nl/rails.po +25 -25
  47. data/po/nl/rgettext.po +8 -8
  48. data/po/pt_BR/rails.po +25 -25
  49. data/po/pt_BR/rgettext.po +8 -8
  50. data/po/rails.pot +25 -25
  51. data/po/rgettext.pot +8 -8
  52. data/po/sv/rgettext.po +8 -8
  53. data/samples/rails/README +3 -2
  54. data/samples/rails/Rakefile +6 -217
  55. data/samples/rails/app/controllers/application.rb +1 -0
  56. data/samples/rails/app/models/article.rb +7 -16
  57. data/samples/rails/config/database.yml +1 -0
  58. data/samples/rails/lib/tasks/gettext.rake +18 -0
  59. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  60. data/samples/rails/po/ja/blog.po +12 -0
  61. data/samples/rails/public/index.html +15 -17
  62. data/samples/rails/public/javascripts/controls.js +30 -1
  63. data/samples/rails/public/javascripts/dragdrop.js +210 -145
  64. data/samples/rails/public/javascripts/effects.js +261 -399
  65. data/samples/rails/public/javascripts/prototype.js +131 -72
  66. data/test/gettext_test.rb +5 -0
  67. data/test/gettext_test_locale.rb +133 -9
  68. metadata +5 -5
  69. data/pkg/ruby-gettext-package-1.2.0/ext/gettext/extconf.rb +0 -20
  70. data/samples/rails/script/benchmarker +0 -19
  71. data/samples/rails/script/profiler +0 -34
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: gettext
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.0
7
- date: 2006-02-24 00:00:00 +09:00
6
+ version: 1.3.0
7
+ date: 2006-03-11 00:00:00 +09:00
8
8
  summary: Ruby-GetText-Package is a libary and tools to localize messages.
9
9
  require_paths:
10
10
  - lib
@@ -110,6 +110,7 @@ files:
110
110
  - samples/rails/script
111
111
  - samples/rails/db
112
112
  - samples/rails/po
113
+ - samples/rails/lib
113
114
  - samples/rails/public
114
115
  - samples/rails/app
115
116
  - samples/rails/Rakefile
@@ -124,13 +125,11 @@ files:
124
125
  - samples/rails/config/environments/production.rb
125
126
  - samples/rails/config/environments/test.rb
126
127
  - samples/rails/config/environments/development.rb
127
- - samples/rails/script/profiler
128
128
  - samples/rails/script/plugin
129
129
  - samples/rails/script/server
130
130
  - samples/rails/script/performance
131
131
  - samples/rails/script/process
132
132
  - samples/rails/script/generate
133
- - samples/rails/script/benchmarker
134
133
  - samples/rails/script/runner
135
134
  - samples/rails/script/about
136
135
  - samples/rails/script/destroy
@@ -174,6 +173,8 @@ files:
174
173
  - samples/rails/po/en/blog.po
175
174
  - samples/rails/po/fr/blog.po
176
175
  - samples/rails/po/fr/gettext_plugin.po
176
+ - samples/rails/lib/tasks
177
+ - samples/rails/lib/tasks/gettext.rake
177
178
  - samples/rails/public/stylesheets
178
179
  - samples/rails/public/index.html
179
180
  - samples/rails/public/favicon.ico
@@ -750,7 +751,6 @@ executables:
750
751
  extensions:
751
752
  - ext/gettext/extconf.rb
752
753
  - ext/gettext/extconf.rb
753
- - pkg/ruby-gettext-package-1.2.0/ext/gettext/extconf.rb
754
754
  requirements: []
755
755
 
756
756
  dependencies: []
@@ -1,20 +0,0 @@
1
- =begin
2
- extconf.rb
3
-
4
- Copyright (C) 2002-2006 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 2006/02/07 00:24:45 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_system'
@@ -1,19 +0,0 @@
1
- #!/usr/bin/ruby
2
-
3
- if ARGV.empty?
4
- puts "Usage: benchmarker times 'Person.expensive_way' 'Person.another_expensive_way' ..."
5
- exit
6
- end
7
-
8
- require File.dirname(__FILE__) + '/../config/environment'
9
- require 'benchmark'
10
- include Benchmark
11
-
12
- # Don't include compilation in the benchmark
13
- ARGV[1..-1].each { |expression| eval(expression) }
14
-
15
- bm(6) do |x|
16
- ARGV[1..-1].each_with_index do |expression, idx|
17
- x.report("##{idx + 1}") { ARGV[0].to_i.times { eval(expression) } }
18
- end
19
- end
@@ -1,34 +0,0 @@
1
- #!/usr/bin/ruby
2
- if ARGV.empty?
3
- $stderr.puts "Usage: profiler 'Person.expensive_method(10)' [times]"
4
- exit(1)
5
- end
6
-
7
- # Keep the expensive require out of the profile.
8
- $stderr.puts 'Loading Rails...'
9
- require File.dirname(__FILE__) + '/../config/environment'
10
-
11
- # Define a method to profile.
12
- if ARGV[1] and ARGV[1].to_i > 1
13
- eval "def profile_me() #{ARGV[1]}.times { #{ARGV[0]} } end"
14
- else
15
- eval "def profile_me() #{ARGV[0]} end"
16
- end
17
-
18
- # Use the ruby-prof extension if available. Fall back to stdlib profiler.
19
- begin
20
- require 'prof'
21
- $stderr.puts 'Using the ruby-prof extension.'
22
- Prof.clock_mode = Prof::GETTIMEOFDAY
23
- Prof.start
24
- profile_me
25
- results = Prof.stop
26
- require 'rubyprof_ext'
27
- Prof.print_profile(results, $stderr)
28
- rescue LoadError
29
- $stderr.puts 'Using the standard Ruby profiler.'
30
- Profiler__.start_profile
31
- profile_me
32
- Profiler__.stop_profile
33
- Profiler__.print_profile($stderr)
34
- end