whowish_word 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/whowish_word/whowish_word.rb +8 -2
- data/whowish_word.gemspec +1 -1
- metadata +2 -2
@@ -31,8 +31,14 @@ module WhowishWord
|
|
31
31
|
|
32
32
|
I18n::MissingTranslation::Base.class_eval do
|
33
33
|
def html_message
|
34
|
-
|
35
|
-
|
34
|
+
puts @locale
|
35
|
+
if @locale == :en
|
36
|
+
key = keys.last.to_s.gsub('_', ' ').gsub(/\b('?[a-z])/) { $1 }
|
37
|
+
I18n.interpolate_hash(key, options)
|
38
|
+
else
|
39
|
+
@options[:locale] = :en
|
40
|
+
I18n.translate(@key, @options)
|
41
|
+
end
|
36
42
|
end
|
37
43
|
end
|
38
44
|
|
data/whowish_word.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whowish_word
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|