Bug 37 - Error messages are in Japanese!
: Error messages are in Japanese!
Status: RESOLVED FIXED
: Sylpheed-Claws (GTK1)
User Interface
: 0.8.9
: All Linux
: P3 minor
Assigned To:
: http://www.lonox.de/sylpheed.jpg
:
:
  Show dependency treegraph
 
Reported: 2003-02-01 04:21 by
Modified: 2003-07-31 13:17 (History)


Attachments
dialog showing a title (9.57 KB, image/jpeg)
2003-07-31 12:36, Alfons Hoogervorst
no flags Details
Remove title font label widget (695 bytes, patch)
2003-07-31 13:04, Alfons Hoogervorst
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-02-01 04:21:02
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
------- Comment #1 From 2003-07-30 20:48:44 -------
--> WFM
------- Comment #2 From 2003-07-31 08:52:15 -------
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.
------- Comment #3 From 2003-07-31 09:47:13 -------
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 
 
 
------- Comment #4 From 2003-07-31 11:42:54 -------
maybe this would be a bit more universally acceptable:

#define TITLE_FONT      "-*-fixed-medium-r-normal--17-*-*-*-*-*-*-*," \
                        "-*-*-medium-r-normal--*-*-*-*-*-*-*-*,*"

------- Comment #5 From 2003-07-31 11:51:51 -------
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.  
:-) 
 
------- Comment #6 From 2003-07-31 12:13:38 -------
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.

------- Comment #7 From 2003-07-31 12:34:39 -------
| 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.  
  
------- Comment #8 From 2003-07-31 12:36:07 -------
Created an attachment (id=89) [details]
dialog showing a title

Dialog showing a title
------- Comment #9 From 2003-07-31 12:53:53 -------
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!
------- Comment #10 From 2003-07-31 12:57:47 -------
jens: agree with removing it? 
------- Comment #11 From 2003-07-31 13:04:24 -------
Created an attachment (id=90) [details]
Remove title font label widget

Proposed patch.
------- Comment #12 From 2003-07-31 13:12:46 -------
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--*-*-*-*-*-*-*-*,*"


------- Comment #13 From 2003-07-31 13:17:33 -------
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--*-*-*-*-*-*-*-*,*"