Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !633

Better use of i18n for field names

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/k3rni/i18n_fields into master Jul 29, 2016
  • Overview 9
  • Commits 2
  • Pipelines 0
  • Changes 19

Created by: k3rni

Addresses #625 (closed) by adding the possibility to use activerecord.attributes locale namespace for attribute name translations. Unifies behavior across all places where fields were displayed - index, show and form pages.

As a special fallback, has_many fields also lookup their name with _ids suffix, if the short one is not present. This was the original motivation for change, as their render naively used the field name and ignored all translations present.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/k3rni/i18n_fields