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.
@@ -31,8 +31,14 @@ module WhowishWord
31
31
 
32
32
  I18n::MissingTranslation::Base.class_eval do
33
33
  def html_message
34
- key = keys.last.to_s.gsub('_', ' ').gsub(/\b('?[a-z])/) { $1 }
35
- I18n.interpolate_hash(key, options)
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "whowish_word"
6
- s.version = "0.6.3"
6
+ s.version = "0.6.4"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Tanin Na Nakorn"]
9
9
  s.email = ["tanin47@yahoo.com"]
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.3
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-11 00:00:00.000000000 Z
12
+ date: 2012-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip