Skip to content

Instantly share code, notes, and snippets.

@reyesyang
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyesyang/18e07a4db06f0b2d4c94 to your computer and use it in GitHub Desktop.
Save reyesyang/18e07a4db06f0b2d4c94 to your computer and use it in GitHub Desktop.
Kaminari I18n translation in zh-CN language
# Usage:
# 1. Put this file in config/locales/kaminari/zh-CN.yml
# 2. Set load_path in config/application.rb as below:
# config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
zh-CN:
views:
pagination:
first: "« 首页"
last: "末页 »"
previous: "‹ 上一页"
next: "下一页 ›"
truncate: "…"
helpers:
page_entries_info:
one_page:
display_entries:
zero: "暂时没有相关记录"
one: "正在显示第 <b>1</b> 个"
other: "正在显示 <b>全部 %{count}</b> 个"
more_pages:
display_entries: "当前显示为第 <b>%{first}&nbsp;-&nbsp;%{last}</b> 个,共 <b>%{total}</b> 个"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment