</table>
<%= render "shared/pagination",
- :newer_key => "diary_comments.page.newer_comments",
- :older_key => "diary_comments.page.older_comments",
+ :translation_scope => "shared.pagination.diary_comments",
:newer_id => @newer_comments_id,
:older_id => @older_comments_id %>
</turbo-frame>
<%= render @entries %>
<%= render "shared/pagination",
- :newer_key => "diary_entries.page.newer_entries",
- :older_key => "diary_entries.page.older_entries",
+ :translation_scope => "shared.pagination.diary_entries",
:newer_id => @newer_entries_id,
:older_id => @older_entries_id %>
</turbo-frame>
</tbody>
</table>
<%= render "shared/pagination",
- :newer_key => "issues.page.newer_issues",
- :older_key => "issues.page.older_issues",
+ :translation_scope => "shared.pagination.issues",
:newer_id => @newer_issues_id,
:older_id => @older_issues_id %>
<% end %>
<ul class="pagination">
<% newer_link_content = capture do %>
<%= previous_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
- <%= t(newer_key) %>
+ <%= t :newer, :scope => translation_scope %>
<% end %>
<% if newer_id -%>
<li class="page-item d-flex">
<% end -%>
<% older_link_content = capture do %>
- <%= t(older_key) %>
+ <%= t :older, :scope => translation_scope %>
<%= next_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
<% end %>
<% if older_id -%>
<turbo-frame id="pagination" target="_top" data-turbo="false">
<%= render "shared/pagination",
- :newer_key => "traces.page.newer",
- :older_key => "traces.page.older",
+ :translation_scope => "shared.pagination.traces",
:newer_id => @newer_traces_id,
:older_id => @older_traces_id %>
</table>
<%= render "shared/pagination",
- :newer_key => "traces.page.newer",
- :older_key => "traces.page.older",
+ :translation_scope => "shared.pagination.traces",
:newer_id => @newer_traces_id,
:older_id => @older_traces_id %>
</turbo-frame>
</table>
<%= render "shared/pagination",
- :newer_key => "user_blocks.blocks.newer",
- :older_key => "user_blocks.blocks.older",
+ :translation_scope => "shared.pagination.user_blocks",
:newer_id => @newer_user_blocks_id,
:older_id => @older_user_blocks_id %>
</turbo-frame>
<div class="row">
<div class="col">
<%= render "shared/pagination",
- :newer_key => "users.page.newer",
- :older_key => "users.page.older",
+ :translation_scope => "shared.pagination.users",
:newer_id => @newer_users_id,
:older_id => @older_users_id %>
</div>
<div class="row">
<div class="col">
<%= render "shared/pagination",
- :newer_key => "users.page.newer",
- :older_key => "users.page.older",
+ :translation_scope => "shared.pagination.users",
:newer_id => @newer_users_id,
:older_id => @older_users_id %>
</div>
no_entries: No diary entries
page:
recent_entries: "Recent diary entries"
- older_entries: Older Entries
- newer_entries: Newer Entries
edit:
title: Edit Diary Entry
marker_text: Diary entry location
post: Post
when: When
comment: Comment
- newer_comments: "Newer Comments"
- older_comments: "Older Comments"
new:
heading: Add a comment to the following diary entry discussion?
doorkeeper:
ignored: Ignored
open: Open
resolved: Resolved
- older_issues: Older Issues
- newer_issues: Newer Issues
show:
title: "%{status} Issue #%{issue_id}"
reports:
edit: Edit
preview: Preview
help: Help
+ pagination:
+ diary_comments:
+ older: Older Comments
+ newer: Newer Comments
+ diary_entries:
+ older: Older Entries
+ newer: Newer Entries
+ issues:
+ older: Older Issues
+ newer: Newer Issues
+ traces:
+ older: Older Traces
+ newer: Newer Traces
+ user_blocks:
+ older: Older Blocks
+ newer: Newer Blocks
+ users:
+ older: Older Users
+ newer: Newer Users
site:
about:
heading_html: "%{copyright}OpenStreetMap %{br} contributors"
my_traces: "My Traces"
traces_from: "Public Traces from %{user}"
remove_tag_filter: "Remove Tag Filter"
- page:
- older: "Older Traces"
- newer: "Newer Traces"
destroy:
scheduled_for_deletion: "Trace scheduled for deletion"
offline_warning:
summary_no_ip_html: "%{name} created on %{date}"
empty: No matching users found
page:
- older: "Older Users"
- newer: "Newer Users"
found_users:
one: "%{count} user found"
other: "%{count} users found"
reason: "Reason for block"
status: "Status"
revoker_name: "Revoked by"
- older: "Older Blocks"
- newer: "Newer Blocks"
navigation:
all_blocks: "All Blocks"
blocks_on_me: "Blocks on Me"
end
# Second Page
- click_on I18n.t("issues.page.older_issues")
+ click_on "Older Issues"
assert_no_content I18n.t("issues.page.user_not_found")
assert_no_content I18n.t("issues.page.issues_not_found")
4.upto(8).each do |n|
end
# Back to First Page
- click_on I18n.t("issues.page.newer_issues")
+ click_on "Newer Issues"
assert_no_content I18n.t("issues.page.user_not_found")
assert_no_content I18n.t("issues.page.issues_not_found")
4.upto(8).each do |n|