From 676e7380b0240e7c30275ed32ec1bf971b65a944 Mon Sep 17 00:00:00 2001 From: Godwin Date: Thu, 24 Aug 2017 10:07:39 -0700 Subject: [PATCH] Development (#265) * Added optional text attribute to location link * Set location title to link text on the schedule * Fixed typo in GeocoderHelper * Fixed an issue with date parsing * Currency traslations --- app/helpers/i18n_helper.rb | 1 + config/locales/en.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/helpers/i18n_helper.rb b/app/helpers/i18n_helper.rb index 1b56ebe..fa39abe 100644 --- a/app/helpers/i18n_helper.rb +++ b/app/helpers/i18n_helper.rb @@ -32,6 +32,7 @@ module I18nHelper end def date(date, format = :long) + return '' unless date.present? I18n.l(date.is_a?(String) ? Date.parse(date) : date, format: format) end diff --git a/config/locales/en.yml b/config/locales/en.yml index 096a7c0..788ad2f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2459,6 +2459,9 @@ en: show_interest: Click if you are interested in this workshop add: Add new options: + currency: + CAD: CAD + USD: USD send_to: registered: Everyone who has completed their registration pre_registered: Everyone who has begun or completed the registration process