2009/8/31 Adam Charrett <a...@dvbstreamer.org>: >> 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
Adam, you are right! I modified share/skins/osd/base.fxd, change Vera/VeraBd to odosung.ttc, the translated shutdown messages were displayed correctly. But, here's what puzzling me: I've always defined "OSD_FORCE_FONTNAME" in local_conf.py, is this not enough to cover all OSD dialogs? Why I ask the above question? Before modifying the "base.fxd", I can read all i10n messages except the shutdown dialog. Thanks to your quick answer, and thanks to awesome Freevo! XiouXin ------------------------------------------------------------------------------ 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 _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel