Re: i10n shutdown dialog problem

Adam Charrett <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
On Sat, 2009-08-29 at 12:24 +0800, XiouXin Huang wrote:
> Hi, list
> 
> Recently I jumped from 1.7.3 to 1.9.0, running upon python 2.6.
> Everything works fine except this:
> When I press "shutdown",
> it should display corresponding localized messages of
> "Do you really want to shut down Freevo?", or
> "Do you really want to shut down the system?", or
> "Do you really want to restart the system?"
> now it show some squres I cannot read.

This  doesn't sound like a problem with translation but with rendering
the message. Perhaps the font used in the default skin doesn't support
Chinese characters?

> If I switch from my locale "zh_TW.UTF-8" to "en_US.UTF-8",
> there's no problem, all shutdown messages displayed correctly.
> 
> In 1.7.3, the "shutdown.py" use gui.ConfirmBox,
> In 1.9.0, it now use dialog.dialogs.ButtonDialog,
> and I can't figure out the new gui.
> How does it process the translated freevo.mo?
The same method is used as was used for gui.ConfirmBox, as is used for all translation, the _() function is used.

> Anybody to show me the hints to study?
I would try changing the font used for the dialogs trying looking in
share/skins/osd/base.fxd, this is currently Vera or VeraBd

Cheers

Adam


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.