forked from saurabh/orbit4-5
fix I18n label translations in helper
This commit is contained in:
parent
48d66b18e7
commit
06df84df57
|
@ -212,7 +212,7 @@ protected
|
||||||
link_entry_ary = ["##{get_pairing_tab_class({})}","_#{key}"]
|
link_entry_ary = ["##{get_pairing_tab_class({})}","_#{key}"]
|
||||||
link_entry_ary << ".add_more_item_#{add_more_counter}" if can_add_more
|
link_entry_ary << ".add_more_item_#{add_more_counter}" if can_add_more
|
||||||
link_entry = link_entry_ary.join
|
link_entry = link_entry_ary.join
|
||||||
link_to("#{t(locale).to_s}",link_entry,:data=>{:toggle=>"tab"},:class=>"btn #{(key == I18n.locale.to_s ? "active" : nil)}",:for=>key)
|
link_to(I18n.t(key),link_entry,:data=>{:toggle=>"tab"},:class=>"btn #{(key == I18n.locale.to_s ? "active" : nil)}",:for=>key)
|
||||||
end # of VALID_LOCALES.collect for tabs
|
end # of VALID_LOCALES.collect for tabs
|
||||||
|
|
||||||
buff2 << link_to((content_tag :i,'',:class=>'icon-edit'),"##{get_pairing_tab_class({})}_m_window", :role=>"button",:class=>'btn',:data=>{:toggle=>"modal"}) if self.markup == 'address'
|
buff2 << link_to((content_tag :i,'',:class=>'icon-edit'),"##{get_pairing_tab_class({})}_m_window", :role=>"button",:class=>'btn',:data=>{:toggle=>"modal"}) if self.markup == 'address'
|
||||||
|
@ -261,7 +261,7 @@ protected
|
||||||
link_entry_ary = ["##{get_pairing_tab_class({})}","_#{key}"]
|
link_entry_ary = ["##{get_pairing_tab_class({})}","_#{key}"]
|
||||||
link_entry_ary << ".add_more_item_#{add_more_counter}" if can_add_more
|
link_entry_ary << ".add_more_item_#{add_more_counter}" if can_add_more
|
||||||
link_entry = link_entry_ary.join
|
link_entry = link_entry_ary.join
|
||||||
link_to("#{t(locale).to_s}",link_entry,:data=>{:toggle=>"tab"},:class=>"btn #{(key == I18n.locale.to_s ? "active" : nil)}",:for=>key)
|
link_to(I18n.t(key),link_entry,:data=>{:toggle=>"tab"},:class=>"btn #{(key == I18n.locale.to_s ? "active" : nil)}",:for=>key)
|
||||||
end # of VALID_LOCALES.collect for tabs
|
end # of VALID_LOCALES.collect for tabs
|
||||||
|
|
||||||
buff2 << link_to((content_tag :i,'',:class=>'icon-edit'),"#address-field", :role=>"button",:class=>'btn',:data=>{:toggle=>"modal"}) if self.markup == 'address'
|
buff2 << link_to((content_tag :i,'',:class=>'icon-edit'),"#address-field", :role=>"button",:class=>'btn',:data=>{:toggle=>"modal"}) if self.markup == 'address'
|
||||||
|
|
Loading…
Reference in New Issue