Project

General

Profile

Why different format in en.yml and others .yml

Added by Ivan Cenov about 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 about 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 about 12 years ago

New-line is preserved.

    (1-3/3)