Reputation: 233
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
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