Claws Mail Bugzilla – Bug 37
Error messages are in Japanese!
Last modified: 2003-07-31 13:17:33
You need to log in before you can comment on or make changes to this bug.
All error messages are in Japan, at least the first line. I made a screenshot, please check the URL above. It would be very kind of you, if you could send me a patch, or just tell me, where to change. This happend since version 0.8.8 !! Thank you very much, Best Regards, Andreas email: berg@lonox.de
--> WFM
That's an old "bug", it appeared for me and some others too, some time ago. src/alertpanel.c: #define TITLE_FONT "-*-helvetica-medium-r-normal--17-*-*-*-*-*-*-*," \ "-*-*-medium-r-normal--16-*-*-*-*-*-*-*,*" If a helvetica with 17 is not available it takes the first font with 16 and this depends on the installed fonts, when there is a japanese at first position this one is taken. Perhaps we should move TITLE_FONT also into Prefs so it can be changed and use the normal or bold font instead of MESSAGE_FONT.
for a title font??? it's used only here: alertpanel.c:268: titlefont = gtkut_font_load(TITLE_FONT); surely there must be a better solution
maybe this would be a bit more universally acceptable: #define TITLE_FONT "-*-fixed-medium-r-normal--17-*-*-*-*-*-*-*," \ "-*-*-medium-r-normal--*-*-*-*-*-*-*-*,*"
i was actually thinking of getting the locale of the font set (XLocaleOfFontSet(fs)) and checking it against the system locale, but your solution seems to be less tedious and more to the point. :-)
Claws solution wouldn't be successful as the search starts at the beginning and then would use the first font it finds which is a Japanese one again! Perhaps that would be a better solution: #define TITLE_FONT "-*-helvetica-medium-r-normal--17-*-*-*-*-*-*-*," \ "-*-helvetica-medium-r-normal--18-*-*-*-*-*-*-*," \ "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*,*" My helvetica had no fontsize 17 but 18, when I had that problem. But the nices solution would be a prefs option.
| But the nices solution would be a prefs option. i'm opposed against a prefs option for a font that just shows the title of a warning message. we should just take it from a system setting, or get rid of the title. Note: See the attachment about what the title font is used for. it looks kind of obsolete, because it's also used in the window title bar.
Created an attachment (id=89) [details] dialog showing a title Dialog showing a title
or we could just remove it altogether as, iirc, this string is always just a repition of what's in the window title. Even less tedious!
jens: agree with removing it?
Created an attachment (id=90) [details] Remove title font label widget Proposed patch.
No! As it's an alert, the message should be big and alarming. I would stick to: #define TITLE_FONT "-*-helvetica-medium-r-normal--17-*-*-*-*-*-*-*," \ "-*-fixed-medium-r-normal--17-*-*-*-*-*-*-*," \ "-*-*-medium-r-normal--*-*-*-*-*-*-*-*,*"
i think the double text is obsolete, but since we don't seem to agree on this, let's keep the title there with an added "-*-*-medium-r-normal--*-*-*-*-*-*-*-*,*"