ruby on rails - String constant for use in en.yml file -


in locales/en.yml, have following:

en:   activerecord:     attributes:       ticket:         customer_name: "customer name"       inventory:         quantity: 'quantity'       resources:         quantity: 'quantity'       hours:         quantity: 'quantity' 

is there way me define string 'quantity' string constant can re-use constant in en.yml?

example:

default: &default   adapter: mysql2   encoding: utf8   username: username   password: yourdbpassword  development:   <<: *default  test:   <<: *default 

also see answer: reuse block of code in yaml


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -