[ckan-changes] [okfn/ckan] 6e4c91: [#1409] Fix the e-mail bodies' translation strings

GitHub noreply at github.com
Wed Dec 18 20:20:23 UTC 2013


  Branch: refs/heads/1409-reset-password-email-i18n-bug
  Home:   https://github.com/okfn/ckan
  Commit: 6e4c9103bb2a940c13c7d4c68cb7c1d7d4d0dbf8
      https://github.com/okfn/ckan/commit/6e4c9103bb2a940c13c7d4c68cb7c1d7d4d0dbf8
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2013-12-18 (Wed, 18 Dec 2013)

  Changed paths:
    M ckan/lib/mailer.py

  Log Message:
  -----------
  [#1409] Fix the e-mail bodies' translation strings

We ended up creating a string with extra whitespace before the paragraphs,
like "...to be reset\n\n Please click the following...".

But the i18n message key doesn't have these whitespaces, so we always send
that in English. To solve it, we could either fix the message key in all .po
files, or change how we construct the string in mailer.py. I prefer the
latter.




More information about the ckan-changes mailing list