gettext 1.2.0-mswin32 → 1.3.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) 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 +2 -1
  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 -4
  69. data/samples/rails/script/benchmarker +0 -19
  70. data/samples/rails/script/profiler +0 -34
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
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
6
+ version: 1.3.0
7
+ date: 2006-03-11
8
8
  summary: Ruby-GetText-Package is a libary and tools to localize messages.
9
9
  require_paths:
10
10
  - lib
@@ -504,6 +504,7 @@ files:
504
504
  - samples/rails/app
505
505
  - samples/rails/config
506
506
  - samples/rails/db
507
+ - samples/rails/lib
507
508
  - samples/rails/locale
508
509
  - samples/rails/po
509
510
  - samples/rails/public
@@ -539,6 +540,8 @@ files:
539
540
  - samples/rails/config/environments/test.rb
540
541
  - samples/rails/db/mysql.sql
541
542
  - samples/rails/db/postgresql.sql
543
+ - samples/rails/lib/tasks
544
+ - samples/rails/lib/tasks/gettext.rake
542
545
  - samples/rails/locale/cs
543
546
  - samples/rails/locale/de
544
547
  - samples/rails/locale/el
@@ -628,7 +631,6 @@ files:
628
631
  - samples/rails/public/stylesheets/blog.css
629
632
  - samples/rails/public/stylesheets/scaffold.css
630
633
  - samples/rails/script/about
631
- - samples/rails/script/benchmarker
632
634
  - samples/rails/script/breakpointer
633
635
  - samples/rails/script/console
634
636
  - samples/rails/script/destroy
@@ -636,7 +638,6 @@ files:
636
638
  - samples/rails/script/performance
637
639
  - samples/rails/script/plugin
638
640
  - samples/rails/script/process
639
- - samples/rails/script/profiler
640
641
  - samples/rails/script/runner
641
642
  - samples/rails/script/server
642
643
  - samples/rails/script/performance/benchmarker
@@ -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