Locale/localeapp

how to enforce quotes?

timoschilling opened this issue · 1 comments

Is there a way to enforce that all pulled values have the same quote?

Here is a example from the activeadmin/activeadmin de.yml (pulled form localeapp):

de:
  active_admin:
    batch_actions:
      action_label: "%{title} ausgewählte"
      button_label: Stapelverarbeitung
      delete_confirmation: Sind Sie sicher dass sie diese %{plural_model} löschen wollen?
      selection_toggle_explanation: "(Auswahl umschalten)"

OK, so the syntax for the generated yaml is the result of Ruby's built in Yaml parser Psych.

The idea is to delegate the exact format of the file to Psych rather than make up a new set of arbitrary rules.

There are some variations in formats between Ruby versions but I think consistency trumps personal style preferences in this case.

On 27 Oct 2014, at 14:17, Timo Schilling notifications@github.com wrote:

Is there a way to enforce that all pulled values have the same quote?

Here is a example from the activeadmin/activeadmin de.yml (pulled form localeapp):

de:
active_admin:
batch_actions:
action_label: "%{title} ausgewählte"
button_label: Stapelverarbeitung
delete_confirmation: Sind Sie sicher dass sie diese %{plural_model} löschen wollen?
selection_toggle_explanation: "(Auswahl umschalten)"

Reply to this email directly or view it on GitHub.