Move changeset element headings to changesets locale

This commit is contained in:
Anton Khorev 2024-02-29 11:02:30 +03:00
parent c1b5ae0aa0
commit 7d4b48f0f8
3 changed files with 33 additions and 8 deletions

View file

@ -72,10 +72,10 @@ module BrowseHelper
def type_and_paginated_count(type, pages)
if pages.page_count == 1
t "browse.changeset.#{type}",
t ".#{type.pluralize}",
:count => pages.item_count
else
t "browse.changeset.#{type}_paginated",
t ".#{type.pluralize}_paginated",
:x => pages.current_page.first_item,
:y => pages.current_page.last_item,
:count => pages.item_count