Multi-line "message" variable displays incorrectly

Bug #255556 reported by Matt Layman
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Fix Released
Low
Matt Layman

Bug Description

When users have no content in a directory, the message variable give a paragraph description explaining how to add content. The translation effort converted these message variable to use multi-line strings.

Unfortunately, these multi-line strings inserted random new lines into the paragraph so now they look funny when displayed (read: they start on new lines at seemingly random intervals).

Related branches

Revision history for this message
Joshua Scotton (joshuascotton) wrote :

The multi-line strings are there to conform to the pylint tests.

There are at least two ways to get round this (discussed on irc):
1. Create an exception for the strings so we can put them on one line
2. Do _("LONGMESSAGE001") and then keep a reference list of the LONGMESSAGEs for translators

I would prefer no 1

Changed in entertainer:
status: New → Confirmed
Revision history for this message
Matt Layman (mblayman) wrote :

I would also prefer no 1.

Revision history for this message
Matt Layman (mblayman) wrote :

I'm fixing this as I come across it in my labels branch. I'll be using the format discussed on the mailing list of:
message = _(
   "some stuff"
   "some more stuff"
)

Changed in entertainer:
assignee: nobody → laymansterms
importance: Undecided → Low
status: Confirmed → In Progress
Paul Hummer (rockstar)
Changed in entertainer:
status: In Progress → Fix Committed
Paul Hummer (rockstar)
Changed in entertainer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.