Ask Your Question

Make "answer must be ..." translatable

asked 2013-05-20 07:06:41 -0500

wowas's avatar

In file (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'


self.length_error_template_singular = _('answer must be > %d character')
self.length_error_template_plural = _('answer must be > %d characters')
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-20 13:40:26 -0500

Evgeny's avatar

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-05-20 07:06:41 -0500

Seen: 82 times

Last updated: May 20 '13