Opened 15 years ago

Closed 15 years ago

#11363 closed (invalid)

empty help_text gives some django var

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

Description

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 by anonymous, 15 years ago

milestone: 1.1

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

comment:2 by Dennis Kaarsemaker, 15 years ago

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

comment:3 by Alex Gaynor, 15 years ago

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