i18n-extra_translations 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
|
|
1
|
+
module I18n
|
2
|
+
class ExtraTranslations
|
3
|
+
class Server
|
4
|
+
def call(env)
|
5
|
+
[ 200, { "Content-Type" => "text/plain" }, [ mt_view(I18n::ExtraTranslations.missing_translations) ] ]
|
6
|
+
end
|
7
|
+
|
8
|
+
protected
|
9
|
+
|
10
|
+
def mt_view(mt)
|
11
|
+
if mt.nil? || mt.empty?
|
12
|
+
'No missing translations found' if mt.nil? || mt.empty?
|
13
|
+
else
|
14
|
+
mt.join('\n')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -5,6 +5,7 @@ module I18n
|
|
5
5
|
class ExtraTranslations
|
6
6
|
autoload :Store, 'i18n/extra_translations/store.rb'
|
7
7
|
autoload :SimpleExtension, 'i18n/extra_translations/simple_extension.rb'
|
8
|
+
autoload :Server, 'i18n/extra_translations/server.rb'
|
8
9
|
|
9
10
|
class << self
|
10
11
|
attr_writer :extra_translations
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-extra_translations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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: 2013-03-
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -35,6 +35,7 @@ extensions: []
|
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
37
|
- lib/i18n/extra_translations.rb
|
38
|
+
- lib/i18n/extra_translations/server.rb
|
38
39
|
- lib/i18n/extra_translations/simple_extension.rb
|
39
40
|
- lib/i18n/extra_translations/store.rb
|
40
41
|
homepage: https://github.com/nicoolas25/i18n-extra_translations
|
@@ -49,12 +50,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
49
50
|
- - ! '>='
|
50
51
|
- !ruby/object:Gem::Version
|
51
52
|
version: '0'
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
hash: 4305985978813691680
|
52
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
57
|
none: false
|
54
58
|
requirements:
|
55
59
|
- - ! '>='
|
56
60
|
- !ruby/object:Gem::Version
|
57
61
|
version: '0'
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
hash: 4305985978813691680
|
58
65
|
requirements: []
|
59
66
|
rubyforge_project:
|
60
67
|
rubygems_version: 1.8.23
|