From a049108229717d5cd3f4c9cac1630c9e7f2287b8 Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 12 Jun 2016 21:09:11 -0700 Subject: [PATCH] Fixed missing translations --- app/helpers/application_helper.rb | 2 +- config/locales/en.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ea9007e..7714f26 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -709,7 +709,7 @@ module ApplicationHelper def interest_button(workshop) interested = workshop.interested?(current_user) ? :remove_interest : :show_interest 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 }) end diff --git a/config/locales/en.yml b/config/locales/en.yml index 09c7843..e4ca1eb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -5616,8 +5616,7 @@ en: next: Next continue: Continue facebook_sign_in: Facebook Sign In - aria: - generic: + aria: remove_interest: Click if you are no longer interested in this workshop show_interest: Click if you are interested in this workshop add: Add new