Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#7502 closed (fixed)

Changeset 7694 breaks I18N translation

Reported by: Fraser Nevett Owned by: nobody
Component: contrib.admin Version: newforms-admin
Severity: Keywords: nfa
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

It looks like part of the change made in in [7694] will inadvertently break I18N translation.

I think

	                        message = _("Your e-mail address is not your username." 
	                                    " Try '%s' instead." % user.username)

should probably be

	                        message = _("Your e-mail address is not your username." 
	                                    " Try '%s' instead.") % user.username

so that the string substitution is done after the translated version of the text is loaded. Otherwise there would have to be a translated version of this string for every possible username.

Attachments (1)

7502.diff (707 bytes) - added by arien 8 years ago.
patch as per description

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by Marc Fargas

Keywords: nfa added
milestone: 1.0 alpha
Triage Stage: UnreviewedAccepted

Changed 8 years ago by arien

Attachment: 7502.diff added

patch as per description

comment:2 Changed 8 years ago by arien

Has patch: set
Version: SVNnewforms-admin

comment:3 Changed 8 years ago by Brian Rosner

Resolution: fixed
Status: newclosed

(In [7711]) newforms-admin: Fixed #7502 -- Fixed an i18n breakge introduced in [7694]. Thanks frasern.

comment:4 Changed 5 years ago by Jacob

milestone: 1.0 alpha

Milestone 1.0 alpha deleted

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