]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/shared/_pagination.html.erb
Guess translation scope from controller name if not provided
[rails.git] / app / views / shared / _pagination.html.erb
index be701bc23bd571e54e1cca2a7938af99f70a9078..f10d0a9dc36648527306da667cdb764494c71d37 100644 (file)
@@ -1,3 +1,4 @@
+<% translation_scope ||= "shared.pagination.#{controller.controller_name}" %>
 <nav>
   <% link_class = "page-link icon-link text-center" %>
   <ul class="pagination">