Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

log missing translation keys on a MissingTranslation(was MissingTrans…

…lationData) exception in i18n
  • Loading branch information...
commit 3798c9e653cbd718c7da2676a043bcb4479ee797 1 parent 6f89e99
Raphaela Wrede authored February 19, 2012
2  Gemfile
... ...
@@ -1,4 +1,2 @@
1 1
 source :rubygems
2 2
 gemspec
3  
-
4  
-gem 'i18n', :git => 'git://github.com/svenfuchs/i18n.git', :ref => '0.5.0'
10  Gemfile.lock
... ...
@@ -1,24 +1,18 @@
1  
-GIT
2  
-  remote: git://github.com/svenfuchs/i18n.git
3  
-  revision: 23c9feffea8f23f686020b64770ca4dae030b545
4  
-  ref: 0.5.0
5  
-  specs:
6  
-    i18n (0.4.2)
7  
-
8 1
 PATH
9 2
   remote: .
10 3
   specs:
11 4
     i18n-missing_translations (0.0.1)
  5
+      i18n (~> 0.6.0)
12 6
 
13 7
 GEM
14 8
   remote: http://rubygems.org/
15 9
   specs:
  10
+    i18n (0.6.0)
16 11
     test_declarative (0.0.4)
17 12
 
18 13
 PLATFORMS
19 14
   ruby
20 15
 
21 16
 DEPENDENCIES
22  
-  i18n!
23 17
   i18n-missing_translations!
24 18
   test_declarative
2  i18n-missing_translations.gemspec
@@ -17,6 +17,6 @@ Gem::Specification.new do |s|
17 17
   s.require_path = 'lib'
18 18
   s.rubyforge_project = '[none]'
19 19
 
20  
-  # s.add_dependency 'i18n', '~> 0.5.0'
  20
+  s.add_dependency 'i18n', '~> 0.6.0'
21 21
   s.add_development_dependency 'test_declarative'
22 22
 end
2  lib/i18n/missing_translations/handler.rb
@@ -2,7 +2,7 @@ module I18n
2 2
   class MissingTranslations
3 3
     module Handler
4 4
       def call(exception, locale, key, options)
5  
-        I18n.missing_translations.log(exception.keys) if MissingTranslationData === exception
  5
+        I18n.missing_translations.log(exception.keys) if MissingTranslation === exception
6 6
         super
7 7
       end
8 8
     end

0 notes on commit 3798c9e

Please sign in to comment.
Something went wrong with that request. Please try again.