inherited_rails_views 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.md CHANGED
@@ -39,5 +39,6 @@ and tries to look up the translation over different paths. Example:
39
39
  # countries.actions.show
40
40
  # application.index.actions.show
41
41
  # application.actions.show
42
+ # actions.show
42
43
 
43
44
  If none of translation keys are set, `"Show This"` is displayed. The variable `bla` is passed in the localization value.
@@ -36,7 +36,8 @@ module InheritedRailsViews
36
36
  options[:default] = [
37
37
  :"#{params[:controller]}.#{lazy}",
38
38
  :"application.#{params[:action]}.#{lazy}",
39
- :"application.#{lazy}"
39
+ :"application.#{lazy}",
40
+ :"#{lazy}"
40
41
  ] + [*options[:default]]
41
42
 
42
43
  options.reverse_merge!({
@@ -1,3 +1,3 @@
1
1
  module InheritedRailsViews
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -16,6 +16,8 @@ de:
16
16
  save:
17
17
  new: "%{resource} erstellen"
18
18
  edit: "%{resource} aktuallisieren"
19
- errors_msg:
20
- one: "Ein Fehler verhinderte das speichern des Objekts:"
21
- other: "%{count} Fehler verhinderten das speichern des Objekts:"
19
+ errors:
20
+ messages:
21
+ not_saved:
22
+ one: "Ein Fehler verhinderte das speichern des Objekts:"
23
+ other: "%{count} Fehler verhinderten das speichern des Objekts:"
@@ -1,7 +1,7 @@
1
1
  <%= form_for resource do |f| %>
2
2
  <% if resource.errors.any? %>
3
3
  <div id="error_explanation">
4
- <h2><%= irv_t "errors_msg", :count => resource.errors.count, :default => "#{pluralize(resource.errors.count, "error")} prohibited this news from being saved:" %></h2>
4
+ <h2><%= irv_t "errors.messages.not_saved", :count => resource.errors.count, :default => "#{pluralize(resource.errors.count, "error")} prohibited this news from being saved:" %></h2>
5
5
  <ul>
6
6
  <% resource.errors.full_messages.each do |msg| %>
7
7
  <li><%= msg %></li>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inherited_rails_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70325744543520 !ruby/object:Gem::Requirement
16
+ requirement: &70325081555900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70325744543520
24
+ version_requirements: *70325081555900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70325744542920 !ruby/object:Gem::Requirement
27
+ requirement: &70325081555040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70325744542920
35
+ version_requirements: *70325081555040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: actionpack
38
- requirement: &70325744542240 !ruby/object:Gem::Requirement
38
+ requirement: &70325081545720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70325744542240
46
+ version_requirements: *70325081545720
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pry
49
- requirement: &70325744541640 !ruby/object:Gem::Requirement
49
+ requirement: &70325081544700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70325744541640
57
+ version_requirements: *70325081544700
58
58
  description:
59
59
  email:
60
60
  - robin@wenglewski.de