Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.84 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Give custom messages in page_entries_info of will_paginate in rails
  2. en:
  3.   will_paginate:
  4.     page_entries_info:
  5.       single_page:
  6.         zero:  "No %{model} found"
  7.         one:   "Displaying 1 %{model}"
  8.         other: "Displaying all %{count} %{model}"
  9.       single_page_html:
  10.         zero:  "No %{model} found"
  11.         one:   "Displaying <b>1</b> %{model}"
  12.         other: "Displaying <b>all&nbsp;%{count}</b> %{model}"
  13.  
  14.       multi_page: "Displaying %{model} %{from} - %{to} of %{count} in total"
  15.       multi_page_html: "Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> of <b>%{count}</b> in total"
  16.        
  17. en:
  18.   will_paginate:
  19.     line_item:
  20.       page_entries_info:
  21.         multi_page: "Displaying %{from} - %{to} of %{count} of %{model}"        
  22.         multi_page_html: "Displaying <b>%{from}&nbsp;-&nbsp;%{to}</b> of <b>%{count}</b> of %{model}"