rtnpro
rtnpro

Reputation: 233

Should !ruby/symbol in Ruby l10n YAML files be translated

I have come across the following snippet in a Ruby YAML file which is to be localized.

 order:
      - !ruby/symbol day
      - !ruby/symbol month
      - !ruby/symbol year

So, my question is whether I should localize "day", "month" and "year" or not.

Upvotes: 0

Views: 219

Answers (1)

Zabba
Zabba

Reputation: 65497

Short answer: No, you should not.
Long answer: Unless you're localizing some sort of source-code-processing software or something, which does need translation for some reason. (What? Anything's possible, no!)

Those are Ruby symbols serialized to YAML format. Like:

[:day, :month, :year]

Upvotes: 2

Related Questions