Why different format in en.yml and others .yml
Added by Ivan Cenov over 12 years ago
The format of some messages is different in en.yml and others .yml, particularly I mean bg.yml:
en.yml:
text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
bg.yml
text_account_destroy_confirmation: |- Are you sure you want to proceed? Your account will be permanently deleted, with no way to reactivate it.
Replies (3)
RE: Why different format in en.yml and others .yml
-
Added by Toshi MARUYAMA over 12 years ago
others.yml is generated from en.yml by "rake locales".
"|-" is new-line.
http://en.wikipedia.org/wiki/YAML#Block_literals
RE: Why different format in en.yml and others .yml
-
Added by Toshi MARUYAMA over 12 years ago
For more details.
http://yaml.org/YAML_for_ruby.html
RE: Why different format in en.yml and others .yml
-
Added by Toshi MARUYAMA over 12 years ago
New-line is preserved.
new-line-br.png (80.4 KB) new-line-br.png |