#15 new
Yaroslav Markin

Improvement: AR I18n: default attribute name translations

Reported by Yaroslav Markin | September 1st, 2008 @ 08:43 PM

Now:

"I want a login attribute in User model to be translated as Логин"


ru-RU:
  activerecord:
    attributes:
      user:
        login: "Логин"

Feature req:

"I want all attributes in my application called login to be translated as Логин by default, except for Admin model -- custom translation"


ru-RU:
  activerecord:
    attributes:
      login: "Логин"
      admin:
        login: "Custom translation"

Comments and changes to this ticket

  • iain

    iain September 1st, 2008 @ 08:46 PM

    • Tag changed from activerecord, yaml to activerecord, tiny, yaml

    I am suggesting a global scope to avoid name clashes

    
    ru-RU:
      activerecord:
        global-attributes:
          login: "Логин"
    
  • Clemens Kofler

    Clemens Kofler September 10th, 2008 @ 04:09 PM

    As far as I know, Globalize 2 will support this kind of translation "inheritance".

  • Diego Carrion

    Diego Carrion November 25th, 2008 @ 10:14 PM

    • Tag changed from activerecord, tiny, yaml to activerecord, i18n, rails-2.2, tiny, yaml

    Hi, i created a plugin with this behaviour, hope that helps:

    http://github.com/dcrec1/activer...

  • JordanByrne

    JordanByrne November 14th, 2020 @ 06:48 AM

    There is a need to keeps on changing the attribute from time to time. Laws are meant to be changed by and for the sake of the convenience of people. By https://www.paraphrasinguk.com/ they are adding new attributes for people's sake.

  • lookpong

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff

Pages