translations_ennder 0.9.0 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/translations_ennder/rails.rb +12 -1
- data/version.txt +1 -1
- metadata +4 -4
data/History.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
|
-
|
3
|
+
# Méthode possible ici ?
|
4
|
+
def init_translations_ennder
|
4
5
|
I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'locales', 'en.yml'))
|
5
6
|
I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'locales', 'fr.yml'))
|
6
7
|
|
@@ -11,3 +12,13 @@ Rails.configuration.after_initialize do
|
|
11
12
|
ActiveSupport::TimeWithZone.send :include, ConversionsWithI18nToS
|
12
13
|
ActionView::Helpers::FormHelper.send :include, ConversionsWithI18nLabel
|
13
14
|
end
|
15
|
+
|
16
|
+
|
17
|
+
if Rails::VERSION::MAJOR < 3 then
|
18
|
+
Rails::Railtie::Configuration.after_initialize do
|
19
|
+
# Rails.configuration.after_initialize do
|
20
|
+
init_translations_ennder
|
21
|
+
end
|
22
|
+
else
|
23
|
+
init_translations_ennder
|
24
|
+
end
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.5
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translations_ennder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 5
|
10
|
+
version: 0.9.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ennder
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-10 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|