From 5829dc51ecf63e8a4b5293543b08ae07664eb4f0 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 19 Apr 2022 22:31:56 +0200 Subject: [PATCH] Add translations for inbox show view --- app/views/inbox/show.haml | 8 ++++---- config/locales/views.en.yml | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/inbox/show.haml b/app/views/inbox/show.haml index caaf948d..c60a429c 100644 --- a/app/views/inbox/show.haml +++ b/app/views/inbox/show.haml @@ -1,14 +1,14 @@ #entries - @inbox.each do |i| - = render 'inbox/entry', i: i + = render "inbox/entry", i: i - if @inbox.empty? - = t 'views.inbox.empty' + = t(".empty") -= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id += render "shared/cursored_pagination_dummy", more_data_available: @more_data_available, last_id: @inbox_last_id - if @more_data_available .d-flex.justify-content-center.justify-content-sm-start %button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @inbox_last_id } } - = t 'views.actions.load' + = t("vpc.load") diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index fb5ed8ab..e9747a75 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -29,6 +29,9 @@ en: title: "Bugs – Feedback" features: title: "Feature Requests – Feedback" + inbox: + show: + empty: "Nothing to see here." modal: password: title: "Save account changes"