In active support en.yml, there is a reference to symbols in date.order
([:year, :month, :day]).
I think we should change it to [year, month, day] instead. Symbols are
not part of standard YAML syntax and since it breaks YAML valid syntax,
some third-tools YAML parsers won't load these kind of files.
This matter speacially when trying to integrate Rails I18n locale files
into IDEs such as Netbeans or Eclipse, like this project:
http://groups.google.com/group/rails-i18n/t/5ca05c0650bc0f25
http://www.velhas.net/2010/03/do-you-still-edit-rails-i18n-locale.html
http://github.com/velhas-net/Translations4Rails
This Netbeans plugin uses SnakeYAML Java library (
http://code.google.com/p/snakeyaml/) for parsing locale files and it
fails to load files with symbols on it.
We should make more standardized use of YAML in Rails and avoid symbols
at most. What do you think?
Hoping for Brazil to win today's game! :)
Best regards,
Rodrigo.
P.S.: I tested replacing the symbols with strings in the YAML in Rails 3
beta 4, but it breaks date_select...
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.