我使用https://github.com/amatsuda/kaminari在我的rails項目分頁。kaminari page_entires_info錯誤與I18n.locale
此頁https://github.com/amatsuda/kaminari/issues/257顯示此幫助程序的問題。
我曾與從主分支添加到我的寶石文件雷檢查:
gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git'
而且我已經與去年的版本kaminari 0.14.1
檢查,但它仍然沒有翻譯成另一種語言:
我可以看到我的觀點的錯誤:
Display Entries
與translation missing: es.helpers.page_entries_info.more_pages.display_entries
我已經加入到我es.yml
下一個代碼:第一
helpers:
page_entries_info:
one_page:
display_entries:
zero: "Ningún %{entry_name} encontrado"
one: "Mostrando <b>1</b> %{entry_name}"
other: "Mostrando <b>todos %{count}</b> %{entry_name}"
more_pages:
display_entries: "Mostrando %{entry_name} <b>%{first} - %{last}</b> de <b>%{total}</b> en total"
views:
pagination:
first: "« Primero"
last: "Último »"
previous: "‹ Anterior"
next: "Siguiente ›"
truncate: "..."
的意見,最後一頁,上一頁...等工作正常,但page_entries_info:
助手不工作的罰款。
如果有人設法解決這個問題,如果您分享解決方案將是很好的。感謝
謝謝,分頁工作正常,問題是'helpers.page_entries_info'等... – hyperrjas