Skip to content

HowTo : Localize column headers

giniedp edited this page Jul 4, 2012 · 5 revisions

Column headers localization go to the fancygrid localization file. The tables have the namespace fancygrid.tables. A table localization for users might look like this

en:
  fancygrid:
    tables:
      # users table localization
      users:                 # <- The fancygrid name
        username: Username   # <- The column name
        # columns of an association
        contact:
          email: E-mail

If a locale is missing, fancygrid will call human_attribute_name or humanize for that column name.