diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3a32aa6..e67c212 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -179,7 +179,7 @@ module ApplicationHelper def render_no_items tag.tr id: :no_items do - tag.td t("#{controller_name}.no_items"), colspan: 10, class: 'hint' + tag.td t("#{controller_path.tr('/', '.')}.no_items"), colspan: 10, class: 'hint' end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 3117f1d..84b8cbb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -75,6 +75,7 @@ en: success: Deleted unit "%{unit}" default: units: + no_items: There are no importable defaults or exportable units. unit: delete: Delete export: Export