beautiful_scaffold 0.3.0.rc4 → 0.3.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.3.0.rc5
2
+
3
+ * bugfix
4
+ * avoid to crash if translate limit is overflowed
5
+ * avoid to display log of translation
6
+
1
7
  == 0.3.0.rc4
2
8
 
3
9
  * Bugfix
data/README.rdoc CHANGED
@@ -15,7 +15,7 @@ gem 'beautiful_scaffold', '0.2.7'
15
15
  === RubyOnRails 4.X
16
16
 
17
17
  Add this in your Gemfile :
18
- gem 'beautiful_scaffold', '0.3.0.rc2'
18
+ gem 'beautiful_scaffold', '0.3.0.rc5'
19
19
 
20
20
  === Next
21
21
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "beautiful_scaffold"
6
- s.version = "0.3.0.rc4"
6
+ s.version = "0.3.0.rc5"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.summary = "Beautiful Scaffold generate fully customizable scaffold"
9
9
  s.email = "claudel.sylvain@gmail.com"
@@ -85,9 +85,19 @@ class BeautifulLocaleGenerator < Rails::Generators::Base
85
85
  'bs_attributes' => {},
86
86
  }
87
87
 
88
- hi18n[name.downcase]['app']['models'][model]['bs_caption'] = translate_string(name.downcase, model)
89
- hi18n[name.downcase]['app']['models'][model]['bs_caption_plural'] = translate_string(name.downcase, model.pluralize)
90
- hi18n[name.downcase]['app']['models'][model]['bs_attributes'] ||= {}
88
+ begin
89
+ bs_caption = translate_string(name.downcase, model)
90
+ rescue
91
+ bs_caption = model
92
+ end
93
+ hi18n[name.downcase]['app']['models'][model]['bs_caption'] = bs_caption
94
+ begin
95
+ bs_caption_plural = translate_string(name.downcase, model.pluralize)
96
+ rescue
97
+ bs_caption_plural = model.pluralize
98
+ end
99
+ hi18n[name.downcase]['app']['models'][model]['bs_caption_plural'] = bs_caption_plural
100
+ hi18n[name.downcase]['app']['models'][model]['bs_attributes'] ||= {}
91
101
 
92
102
  sorted_attr.each { |k|
93
103
  if already_processed[name.downcase][k].nil? then
@@ -102,7 +112,6 @@ class BeautifulLocaleGenerator < Rails::Generators::Base
102
112
  attr_translate = already_processed[name.downcase][k]
103
113
  end
104
114
 
105
- puts "====> #{k} / #{attr_translate} / #{hi18n[name.downcase]['app']['models'][model]}"
106
115
  hi18n[name.downcase]['app']['models'][model]['bs_attributes'][k] = attr_translate
107
116
  }
108
117
  }
@@ -38,7 +38,7 @@ fr:
38
38
  sign_in: "Authentification"
39
39
  sign_up: "Inscription"
40
40
  login: "Login"
41
- remember_me: "Ce souvenir de moi"
41
+ remember_me: "Se souvenir de moi"
42
42
  email: "Email"
43
43
  password: "Mot de passe"
44
44
  password_confirmation: "Mot de passe (Confirmation)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beautiful_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.rc4
4
+ version: 0.3.0.rc5
5
5
  prerelease: 6
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-07-12 00:00:00.000000000 Z
12
+ date: 2013-07-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
15
15
  and filter data) http://www.beautiful-scaffold.com