Long translations of buttons don't word warp, making window too large
Submitted by Sébastien
Assigned to Xfburn Bug Triage
On the welcome tab/area, long translations of button strings don't word warp, which forces the Xfburn window to a minimum size that can go beyond the screen's resolution (e.g. on netbooks and on large GTK themes, with a language that has long strings).
For example: $ LANGUAGE=de xfburn
compared to: $ LANGUAGE=fr xfburn
With the Sans font, size 10, on the Clearlooks theme, Xfburn in German has a minimum window width of 993px (while in French I can decrease it to 653px). It can go to much larger widths depending on the user's GTK theme and font size.
Affected languages are the ones with relatively long strings on a single line. I couldn't decide what is a decent length so I approximately selected those who are more verbose than the original English text: ast ca de el es et eu gl id it ja lv pt_BR pt ru sv tr
Only French and English seem to use newlines on those buttons.
I see two solutions:
- Either add \n in translations of the buttons, in the .po files mentionned above (like in fr.po)
- Or add word wrapping support to xfburn/xfburn-welcome-tab.c:140-:155 so that any single long line word wraps, and remove \n from buttons translations in fr.po.