kriss-gettext_i18n 0.2.2 → 0.2.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.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.2.3
2
+ * Fixed error messages for missing translation
3
+
1
4
  == 0.2.2
2
5
  * Fixed rails extend for ActionController
3
6
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  minor: 2
3
- patch: 2
3
+ patch: 3
4
4
  major: 0
data/gettext_i18n.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gettext_i18n'
3
- s.version = '0.2.2'
3
+ s.version = '0.2.3'
4
4
  s.date = '2009-09-25'
5
5
 
6
6
  s.summary = "Extended Globalize2 which is acting like gettext translations"
@@ -18,7 +18,11 @@ module Globalize
18
18
  interpolate locale, key, options
19
19
  end
20
20
  else
21
- translate locale, key, options
21
+ begin
22
+ translate locale, key, options
23
+ rescue I18n::MissingTranslationData
24
+ $1
25
+ end
22
26
  end
23
27
  end
24
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kriss-gettext_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kriss Kowalik