diff --git a/app/helpers/uploads_helper.rb b/app/helpers/uploads_helper.rb index 48e749ee3..1352152b7 100644 --- a/app/helpers/uploads_helper.rb +++ b/app/helpers/uploads_helper.rb @@ -2,7 +2,7 @@ module UploadsHelper def library_select_title(l) title = [l.name] if current_user.is_administrator? - title << t(".free_space", + title << t("uploads.index.free_space", available: number_to_human_size(l.free_space), precision: 2) end diff --git a/config/locales/uploads/en.yml b/config/locales/uploads/en.yml index 029eaf10b..1098bbd7d 100644 --- a/config/locales/uploads/en.yml +++ b/config/locales/uploads/en.yml @@ -7,7 +7,7 @@ en: files: help: 'Supported file types: %{types}' label: Select File - free_space: '(%{available} free)' + free_space: "(%{available} free)" library: help: The library to upload to. scan: