]> cat aescling's git repositories - mastodon.git/commitdiff
Fix reference to non-existing translation in the exports page. (#15894)
authorFilipe Rodrigues <shello@shello.org>
Mon, 15 Mar 2021 01:17:29 +0000 (01:17 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 01:17:29 +0000 (02:17 +0100)
The exports page showed a different "CSV" capitalisation in the
"Bookmarks" row ("Csv") compared to the other rows ("CSV").
This was due to a referece to a translation string that does not exist,
`bookmarks.csv`, defaulting to the key's last segment in title case.

This issue was introduced in commit dcd86204 (PR #14956).

(h/t @meqif for helping with figuring out the bug)

app/views/settings/exports/show.html.haml

index 18b52c0c2c6f8d123295a2ed349cefdb01ea2812..c49613fdc0c61f7077a27a1d9d73d61049180761 100644 (file)
@@ -39,7 +39,7 @@
       %tr
         %th= t('exports.bookmarks')
         %td= number_with_delimiter @export.total_bookmarks
-        %td= table_link_to 'download', t('bookmarks.csv'), settings_exports_bookmarks_path(format: :csv)
+        %td= table_link_to 'download', t('exports.csv'), settings_exports_bookmarks_path(format: :csv)
 
 %hr.spacer/