LinuxMCE Forums

General => Developers => Topic started by: nite_man on October 13, 2009, 03:31:26 pm

Title: X Progress Window and UTF8
Post by: nite_man on October 13, 2009, 03:31:26 pm
Hi,

Another problem appears with localization LinuxMCE UI. The progress window where some messages are displayed during loading the core is developed using Xlib. I didn't find a way to show messages correctly. As I understand the function  XDrawString() doesn't support UFT8 at all. Some other one should be use such XmbDrawString() or so. But I didn't find the actual solution. If somebody who has better experience with X programming can help me I'll be very very appreciated!

TIA
Title: Re: X Progress Window and UTF8
Post by: tschak909 on October 13, 2009, 03:58:47 pm
The correct course of action here would be to pick a UI toolkit, either GTK+ or Qt, and rewrite the OrbiterLinux portions that use the xlib calls, to use the toolkit calls, because xlib does NOT support unicode, and the amount of infrastructure required to graft such support on (think Pango) would be better spent basically just rewriting the code to use proper calls anyway. There are far too many weird little bugs with this code to continue using it in its current state.

Go for it.

-Thom
Title: Re: X Progress Window and UTF8
Post by: nite_man on October 13, 2009, 10:00:51 pm
You confirmed my thoughts, Tom :) I vote Qt since LinuxMCE is based on KDE. If so I'll try to implement it.