gettext 1.2.0-mswin32 → 1.3.0-mswin32
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 +74 -0
- data/NEWS +16 -0
- data/README +9 -9
- 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/lib/gettext.rb +9 -4
- data/lib/gettext/locale.rb +11 -5
- data/lib/gettext/locale_cgi.rb +2 -5
- data/lib/gettext/locale_object.rb +68 -21
- data/lib/gettext/poparser.rb +2 -2
- data/lib/gettext/rails.rb +150 -30
- data/lib/gettext/version.rb +1 -1
- data/po/cs/rails.po +27 -27
- data/po/cs/rgettext.po +8 -8
- data/po/de/rails.po +28 -28
- data/po/de/rgettext.po +8 -8
- data/po/el/rails.po +25 -25
- data/po/el/rgettext.po +8 -8
- data/po/es/rails.po +25 -25
- data/po/es/rgettext.po +8 -8
- data/po/fr/rails.po +26 -26
- data/po/fr/rgettext.po +8 -8
- data/po/it/rgettext.po +8 -8
- data/po/ja/rails.po +23 -23
- data/po/ja/rgettext.po +8 -8
- data/po/ko/rails.po +23 -23
- data/po/ko/rgettext.po +8 -8
- data/po/nl/rails.po +25 -25
- data/po/nl/rgettext.po +8 -8
- data/po/pt_BR/rails.po +25 -25
- data/po/pt_BR/rgettext.po +8 -8
- data/po/rails.pot +25 -25
- data/po/rgettext.pot +8 -8
- data/po/sv/rgettext.po +8 -8
- data/samples/rails/README +3 -2
- data/samples/rails/Rakefile +6 -217
- data/samples/rails/app/controllers/application.rb +1 -0
- data/samples/rails/app/models/article.rb +7 -16
- data/samples/rails/config/database.yml +2 -1
- data/samples/rails/lib/tasks/gettext.rake +18 -0
- data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/ja/blog.po +12 -0
- data/samples/rails/public/index.html +15 -17
- data/samples/rails/public/javascripts/controls.js +30 -1
- data/samples/rails/public/javascripts/dragdrop.js +210 -145
- data/samples/rails/public/javascripts/effects.js +261 -399
- data/samples/rails/public/javascripts/prototype.js +131 -72
- data/test/gettext_test.rb +5 -0
- data/test/gettext_test_locale.rb +133 -9
- metadata +5 -4
- data/samples/rails/script/benchmarker +0 -19
- 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.
|
7
|
-
date: 2006-
|
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
|