基本方案:
= will_paginate @products, :previous_label => t("previous_label"), :next_label => t("next_label")
de.yml
will_paginate:
page_gap: "…"
previous_label: "word for back"
next_label: "word for next"
en.yml en: will_paginate: page_gap: "..." previous_label: "previous" next_label: "next"
但在输出中仍然是名为Previous Label
and的标签Next Label
。还有什么问题?另外,我以为我没有重新启动服务器...但是重新启动后仍然是相同的标签,而不是我的翻译