Unwanted word wrap with some translations (system.css)

flebas - January 24, 2007 - 23:07
Project:Drupal
Version:6.x-dev
Component:other
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

In the user management module (and in other modules I presume), some labels are displayed on two lines instead of one.
For example, "permission" translates into "droit d'accès" in French and this text is displayed on two lines and is unreadable (see screenshot).

I have found a fix : I added the line

white-space: nowrap;

in the label.option class definition in system/system.css.

Frederic

AttachmentSizeStatusTest resultOperations
UserAdmin.gif25.63 KBIgnoredNoneNone

#1

spatz4000 - April 24, 2007 - 13:41
Version:5.0» 6.x-dev
Status:active» needs review

A patch to fix this.

AttachmentSizeStatusTest resultOperations
system_nowrap_fix_css.patch483 bytesIgnoredNoneNone

#2

catch - November 2, 2007 - 16:35
Status:needs review» reviewed & tested by the community

still applies with offset. I just took windows line breaks out of the patch. Didn't actually test it since I don't have translation set up, but it seems sensible enough and shouldn't affect anything negatively (and that screenshot is nasty), so RTBCing.

AttachmentSizeStatusTest resultOperations
system_nowrap_fix_css_0.patch468 bytesIgnoredNoneNone

#3

Gábor Hojtsy - November 4, 2007 - 21:09
Status:reviewed & tested by the community» fixed

Thanks, committed.

#4

Anonymous - November 18, 2007 - 21:11
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

hass - November 23, 2007 - 19:39
Status:closed» needs work

This patch should be rolled back... see http://drupal.org/node/194594 about the issue.

#6

Gábor Hojtsy - December 2, 2007 - 16:20
Status:needs work» fixed

Indeed, it was a very silly decision on my part to commit this patch as is. It has quite far reaching implications, which I did not count on. Sorry guys. Rolled back in Drupal 6!

However, I can suggest shipping your translation with a supporting module which can add CSS fixes to Drupal, where your translation requires. The Hungarian translation for example ships as a custom install profile and fixes some stuff (eg. missing date format for Hungarians) this way. CSS issues can be solved just as well this way, unless generic CSS fixes are found. This one was too general, breaking more then fixing, so I needed to roll it back.

#7

Anonymous - December 16, 2007 - 16:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.