diff --git a/app/views/restrooms/index.html.haml b/app/views/restrooms/index.html.haml index f1b47566..2b9dd57b 100644 --- a/app/views/restrooms/index.html.haml +++ b/app/views/restrooms/index.html.haml @@ -13,7 +13,7 @@ %i.fa.fa-child .map-toggle-btn.mapToggle.linkbutton.btn-lg.btn-light-purple - Map View + = t('.map-view-button-label') .restrooms-index-content .row diff --git a/app/views/restrooms/show.html.haml b/app/views/restrooms/show.html.haml index a1fc8ce2..77ceee0f 100644 --- a/app/views/restrooms/show.html.haml +++ b/app/views/restrooms/show.html.haml @@ -11,13 +11,13 @@ method: 'put' do %button.btn.btn-lg.btn-success %i.fa.fa-thumbs-up - Thumbs Up + = t('.thumbs-up-button-label') = link_to restroom_path(restroom: { downvote: true }), method: 'put' do %button.btn.btn-lg.btn-danger %i.fa.fa-thumbs-down - Thumbs Down + = t('.thumbs-down-button-label') .row.headroom .col-xs-12 diff --git a/config/locales/restrooms.en.yml b/config/locales/restrooms.en.yml new file mode 100644 index 00000000..32d73db5 --- /dev/null +++ b/config/locales/restrooms.en.yml @@ -0,0 +1,8 @@ +en: + restrooms: + index: + map-view-button-label: 'Map View' + + show: + thumbs-up-button-label: 'Thumbs Up' + thumbs-down-button-label: 'Thumbs Down'