rich_i18n 1.2.1 → 1.2.2
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/README.textile +5 -4
- data/VERSION +1 -1
- data/lib/rich/i18n/core/string/internationalization.rb +1 -1
- data/rich_i18n.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
data/README.textile
CHANGED
|
@@ -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
|
-
*
|
|
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.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
|
data/rich_i18n.gemspec
CHANGED
|
@@ -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.
|
|
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-
|
|
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:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 1.2.
|
|
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-
|
|
18
|
+
date: 2010-10-09 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|