Opened 9 years ago

Closed 9 years ago

#11363 closed (invalid)

empty help_text gives some django var

Reported by: onno Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: help_text, admin
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


intensitiy_met = models.DecimalField(_('intensity met'), max_digits=5, decimal_places=2, null=True, blank=True, help_text=_())

The following line in my code gives this back in the admin:
Project-Id-Version: Django Report-Msgid-Bugs-To: POT-Creation-Date: 2008-09-02 22:36-0700 PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE Last-Translator: FULL NAME Language-Team: LANGUAGE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit

I don't think this is correct

Change History (3)

comment:1 Changed 9 years ago by anonymous

milestone: 1.1

This doesn't need be marked for the 1.1 release, does it?

comment:2 Changed 9 years ago by Dennis Kaarsemaker

Your help text is not empty. You're gettext'ing an empty string, which will give you the PO meta information.

comment:3 Changed 9 years ago by Alex Gaynor

Resolution: invalid
Status: newclosed

That's what gettext does for an empty string, if you dont' want that don't try to translate a , if you just want no need to translate it.

Note: See TracTickets for help on using tickets.
Back to Top