rich_i18n 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Rich-i18n CHANGELOG
2
2
 
3
+ == Version 1.2.2 (October 9, 2010)
4
+
5
+ * Fixed cached translations (adding I18n.locale as criteria just now, doh!)
6
+
3
7
  == Version 1.2.1 (October 2, 2010)
4
8
 
5
9
  * Altered the default delimiter (separator) of Array.join
@@ -244,12 +244,12 @@ This Rails gem / plugin depends on:
244
244
  i18n<br>
245
245
  "http://github.com/svenfuchs/i18n":http://github.com/svenfuchs/i18n
246
246
 
247
- Formtastic (optional)<br>
248
- "http://github.com/justinfrench/formtastic":http://github.com/justinfrench/formtastic
249
-
250
247
  Hpricot<br>
251
248
  "http://github.com/whymirror/hpricot":http://github.com/whymirror/hpricot (thanks Why!)
252
249
 
250
+ Formtastic (optional)<br>
251
+ "http://github.com/justinfrench/formtastic":http://github.com/justinfrench/formtastic
252
+
253
253
  Rich-CMS (optional)<br>
254
254
  "http://codehero.es/rails_gems_plugins/rich_cms":http://codehero.es/rails_gems_plugins/rich_cms <br>
255
255
  "http://github.com/archan937/rich_cms":http://github.com/archan937/rich_cms
@@ -260,9 +260,10 @@ SeatHolder (optional)<br>
260
260
 
261
261
  h2. ToDo's
262
262
 
263
- * Provide a rake task to create the Translation model and migration files
263
+ * Handle the click on inputs with seatholders better
264
264
  * Use a better implementation to tackle String interpolation (e.g. "foo #{"bar".t}") to preserve meta data
265
265
  * Most String inflection methods are also defined in rich_pluralization (keep it DRY)
266
+ * Make Rich-i18n compatible with Rails 3
266
267
 
267
268
  h2. Enrichments
268
269
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -82,7 +82,7 @@ module Rich
82
82
 
83
83
  k = "#{I18n.locale} #{key.inspect}, #{options.inspect}"
84
84
  translation = if Engine.cache_translations
85
- (@@i18n_translations[k] ||= I18n.t(key, options)).try :dup
85
+ ((@@i18n_translations[I18n.locale.to_s.downcase] ||= {})[k] ||= I18n.t(key, options)).try :dup
86
86
  else
87
87
  I18n.t key, options
88
88
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_i18n}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
12
- s.date = %q{2010-10-02}
12
+ s.date = %q{2010-10-09}
13
13
  s.description = %q{Rich-i18n is a module of E9s (http://github.com/archan937/e9s) which enriches I18n, Formtastic, the String and Symbol classes. This simplifies internationalization of your Rails application making a Rails developers life much easier.}
14
14
  s.email = %q{paul.engel@holder.nl}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich_i18n
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-02 00:00:00 +02:00
18
+ date: 2010-10-09 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency