Browse Source

Fixed missing translations

development
Godwin 9 years ago
parent
commit
a049108229
  1. 2
      app/helpers/application_helper.rb
  2. 3
      config/locales/en.yml

2
app/helpers/application_helper.rb

@ -709,7 +709,7 @@ module ApplicationHelper
def interest_button(workshop) def interest_button(workshop)
interested = workshop.interested?(current_user) ? :remove_interest : :show_interest interested = workshop.interested?(current_user) ? :remove_interest : :show_interest
id = "#{interested.to_s.gsub('_', '-')}-#{workshop.id}" id = "#{interested.to_s.gsub('_', '-')}-#{workshop.id}"
return (off_screen (_"forms.actions.aria.generic.#{interested.to_s}"), id) + return (off_screen (_"forms.actions.aria.#{interested.to_s}"), id) +
(button_tag interested, :value => :toggle_interest, :class => (workshop.interested?(current_user) ? :delete : :add), aria: { labelledby: id }) (button_tag interested, :value => :toggle_interest, :class => (workshop.interested?(current_user) ? :delete : :add), aria: { labelledby: id })
end end

3
config/locales/en.yml

@ -5616,8 +5616,7 @@ en:
next: Next next: Next
continue: Continue continue: Continue
facebook_sign_in: Facebook Sign In facebook_sign_in: Facebook Sign In
aria: aria:
generic:
remove_interest: Click if you are no longer interested in this workshop remove_interest: Click if you are no longer interested in this workshop
show_interest: Click if you are interested in this workshop show_interest: Click if you are interested in this workshop
add: Add new add: Add new

Loading…
Cancel
Save