locale_rails 2.0.2 → 2.0.3
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 +4 -0
- data/Rakefile +1 -1
- data/lib/locale_rails/action_controller/caching.rb +1 -1
- data/lib/locale_rails/version.rb +1 -1
- data/sample/app/controllers/application.rb +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
= locale_rails-2.0.3 (2009-05-09)
|
2
|
+
* Fixed a bug not to work with fragment cache. [Reported by Andy Lo-A-Foe]
|
3
|
+
* Fixed the dependencies. [Reported by Hans de Graaff]
|
4
|
+
|
1
5
|
= locale_rails-2.0.2 (2009-05-04)
|
2
6
|
* Remove I18n.candidates. Use Locale.candidates directly.
|
3
7
|
* Improve documentations.
|
data/Rakefile
CHANGED
@@ -47,7 +47,7 @@ spec = Gem::Specification.new do |s|
|
|
47
47
|
s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|CVS|git/}
|
48
48
|
s.require_path = 'lib'
|
49
49
|
s.bindir = 'bin'
|
50
|
-
s.add_dependency('locale', '>= 2.0.
|
50
|
+
s.add_dependency('locale', '>= 2.0.3')
|
51
51
|
s.has_rdoc = true
|
52
52
|
s.description = <<-EOF
|
53
53
|
Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.
|
@@ -18,7 +18,7 @@ module ActionController #:nodoc:
|
|
18
18
|
def fragment_cache_key_with_locale(name)
|
19
19
|
ret = fragment_cache_key_without_locale(name)
|
20
20
|
if ret.is_a? String
|
21
|
-
ret.gsub(/:/, ".") << "_#{I18n.
|
21
|
+
ret.gsub(/:/, ".") << "_#{I18n.locale}"
|
22
22
|
else
|
23
23
|
ret
|
24
24
|
end
|
data/lib/locale_rails/version.rb
CHANGED
@@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
|
|
16
16
|
# Set the charset of Content-Type.
|
17
17
|
# This is not Ruby-Locale method but useful.
|
18
18
|
# self.default_charset = "iso8859-1"
|
19
|
-
|
19
|
+
# I18n.supported_locales = ["en", "ja", "fr"]
|
20
20
|
|
21
21
|
=begin
|
22
22
|
def before_init_i18n
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locale_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masao Mutoh
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.
|
23
|
+
version: 2.0.3
|
24
24
|
version:
|
25
25
|
description: Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.
|
26
26
|
email: mutomasa at gmail.com
|