translations_ennder 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/translations_ennder/locales/fr.yml +1 -1
- data/lib/translations_ennder/rails.rb +10 -6
- data/version.txt +1 -1
- metadata +6 -6
data/History.txt
CHANGED
@@ -50,3 +50,8 @@ RAILS_ROOT au lien de Rails.root, Rails n'est pas encore initalisé
|
|
50
50
|
|
51
51
|
== 1.1.1 / 2011-03-22
|
52
52
|
* correction anomalie dans set_locale
|
53
|
+
|
54
|
+
== 1.1.2 / 2011-03-22
|
55
|
+
* trace changement de locale dans la session
|
56
|
+
format date-heure short: JJ/MM/AASS HHhMM
|
57
|
+
Enfin testé
|
@@ -2,15 +2,18 @@
|
|
2
2
|
|
3
3
|
# Méthode possible ici ?
|
4
4
|
def init_translations_ennder
|
5
|
+
#Ajout des fichiers de traductions communs
|
5
6
|
I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'locales', 'en.yml'))
|
6
7
|
I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'locales', 'fr.yml'))
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
if Rails::VERSION::MAJOR < 3
|
10
|
+
#JBA 2010-09-19, sera caduque avec Rails 3
|
11
|
+
#pour que to_s prenne en compte les formats localisés
|
12
|
+
# Date.send :include, ConversionsWithI18nToS
|
13
|
+
# Time.send :include, ConversionsWithI18nToS
|
14
|
+
ActiveSupport::TimeWithZone.send :include, ConversionsWithI18nToS
|
15
|
+
ActionView::Helpers::FormHelper.send :include, ConversionsWithI18nLabel
|
16
|
+
end
|
14
17
|
end
|
15
18
|
|
16
19
|
|
@@ -73,6 +76,7 @@ module ActionController
|
|
73
76
|
# logger.debug "locale=[#{session[:locale]}]"
|
74
77
|
|
75
78
|
if session[:locale] != I18n.locale
|
79
|
+
logger.debug "locale [#{session[:locale]}]=>[#{I18n.locale}]"
|
76
80
|
session[:locale] = I18n.locale
|
77
81
|
end
|
78
82
|
end
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 2
|
10
|
+
version: 1.1.2
|
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-03-
|
18
|
+
date: 2011-03-23 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements: []
|
105
105
|
|
106
106
|
rubyforge_project: translations_ennder
|
107
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.3.7
|
108
108
|
signing_key:
|
109
109
|
specification_version: 3
|
110
110
|
summary: "Ce plugin apporte des traductions standard en fran\xC3\xA7ais et anglais."
|