gettext 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +1 -0
- 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 -5
- data/pkg/ruby-gettext-package-1.2.0/ext/gettext/extconf.rb +0 -20
- data/samples/rails/script/benchmarker +0 -19
- 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.
|
7
|
-
date: 2006-
|
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
|