ecm_cms_navigation 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,14 +3,15 @@ module Ecm::CmsNavigationHelper
3
3
 
4
4
  navigation = Ecm::CmsNavigation::Navigation.where(:name => name.to_s, :locale => I18n.locale.to_s).first
5
5
 
6
- return I18n.t('ecm.navigation.navigation_not_found', {:locale => I18n.locale.to_s, :name => name.to_s}) unless navigation
6
+ return I18n.t('ecm.navigation.navigation_not_found', {:lang => I18n.locale.to_s, :name => name.to_s}) unless navigation
7
7
 
8
8
  options[:items] = []
9
9
  navigation.navigation_items.roots.all.each do |navigation_item|
10
10
  options[:items] << build_navigation(navigation_item)
11
11
  end
12
12
 
13
- return I18n.t('ecm.navigation.navigation_empty', :name => name, :locale => I18n.locale.to_s) if options[:items].empty?
13
+ # return I18n.t('ecm.navigation.navigation_empty', {:locale => I18n.locale.to_s, :name => name}) if options[:items].empty?
14
+ return I18n.t('ecm.navigation.navigation_empty', :lang => I18n.locale.to_s, :name => name) if options[:items].empty?
14
15
  render_navigation(options)
15
16
  end
16
17
 
@@ -14,9 +14,9 @@ de:
14
14
  active_admin:
15
15
  menu: "CMS"
16
16
  navigation:
17
- navigation_empty: "Navigation \"%{locale}: %{name}\" ist leer."
17
+ navigation_empty: "Navigation %{name} (%{lang}) ist leer."
18
18
  no_subitems: "Keine Unterpunkte vorhanden"
19
- navigation_not_found: "Navigation \"%{locale}: %{name}\" nicht gefunden."
19
+ navigation_not_found: "Navigation %{name} (%{lang}) nicht gefunden."
20
20
  formtastic:
21
21
  :yes: 'Ja'
22
22
  :no: 'Nein'
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module CmsNavigation
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_cms_navigation
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roberto Vasquez Angel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-08 00:00:00 Z
18
+ date: 2012-09-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -295,3 +295,4 @@ specification_version: 3
295
295
  summary: Provides database backend for simple navigation.
296
296
  test_files: []
297
297
 
298
+ has_rdoc: