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
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| UserAdmin.gif | 25.63 KB | Ignored | None | None |

#1
A patch to fix this.
#2
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.
#3
Thanks, committed.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
This patch should be rolled back... see http://drupal.org/node/194594 about the issue.
#6
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
Automatically closed -- issue fixed for two weeks with no activity.