First time here? Check out the FAQ!
1

Make "answer must be ..." translatable

  • retag add tags

In file forms.py (rows 356,357) need change:

self.length_error_template_singular = 'answer must be > %d character'
self.length_error_template_plural = 'answer must be > %d characters'

on

self.length_error_template_singular = _('answer must be > %d character')
self.length_error_template_plural = _('answer must be > %d characters')
wowas's avatar
1
wowas
asked 2013-05-20 07:06:41 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Not sure if this is exactly the way to go - take a look how this phrase is used - it later becomes an argument to ugettext_lazy. Maybe we should add a dummy _() just within that class on top of your changes.

Maybe there is another way to simplify this.

Evgeny's avatar
13.2k
Evgeny
answered 2013-05-20 13:40:26 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments