[sip-comm-dev] Re: Chinese translation of SIP communicator/Font handling in (Solution)


#1

Hi, dear all,
after so many tests, it seems the cause of font issue is captured.
According to Dai's words, I found the title of frames can display Chinese
correctly. but other places render squares.
I found TitlePanel.java under "impl.gui.customcontrols" has a little
difference than other SIPcomm gui components:
"this.titleLabel.setFont(this.getFont().deriveFont(Font.BOLD, 14));"

I tried it in AccountRegFirstPage.java, it corrects the Chinese font problem
for its own objects.
Old code:
this.pageTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18));

new code:
this.pageTitleLabel.setFont(this.getFont().deriveFont(Font.BOLD, 18));

To solve the problem completely, the font name in Constants.FONT definition
must be changed to any font family, which includes western and Chinese. More
other supported language would be better. All fonts families and supported
languages on windows can be found in "notepad --> font" option. Currently, i
changed the original "Verdana" to "Arial Unicode MS", and everything works
fine

have a good day

···

--
BR
NIE PIN
TML@HUT, Helsinki, Finland
ANTD@NIST, Gaithersburg, USA
Ph: +1 (301)975-6049


#2

Hi Nie Pin,

Thanks for your this information. In addition, i am working on a Vietnamese
translation of SC. i wonder is anyone doing that or not and could i send
file to this maillist after finishing instead of commit to svn?

Best regards,
Minh Nguyen
Université Pierre et Marie Curie - Paris 6

···

On Fri, Mar 14, 2008 at 1:10 AM, pin nie <peternick13@gmail.com> wrote:

Hi, dear all,
after so many tests, it seems the cause of font issue is captured.
According to Dai's words, I found the title of frames can display Chinese
correctly. but other places render squares.
I found TitlePanel.java under "impl.gui.customcontrols" has a little
difference than other SIPcomm gui components:
"this.titleLabel.setFont(this.getFont().deriveFont(Font.BOLD, 14));"

I tried it in AccountRegFirstPage.java, it corrects the Chinese font
problem for its own objects.
Old code:
this.pageTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18));

new code:
this.pageTitleLabel.setFont(this.getFont().deriveFont(Font.BOLD, 18));

To solve the problem completely, the font name in Constants.FONTdefinition must be changed to any font family, which includes western and
Chinese. More other supported language would be better. All fonts families
and supported languages on windows can be found in "notepad --> font"
option. Currently, i changed the original "Verdana" to "Arial Unicode MS",
and everything works fine

have a good day

--
BR
NIE PIN
TML@HUT, Helsinki, Finland
ANTD@NIST, Gaithersburg, USA
Ph: +1 (301)975-6049


#3

Hi Minh!

Thanks for your this information. In addition,
i am working on a Vietnamese translation of SC.
i wonder is anyone doing that or not and could
i send file to this maillist after finishing
instead of commit to svn?

I don't know of anyone already working on the translation. You can post your
translation to the mailing list. I or one of the other developers will take
care of putting it into svn. We're always happy to get more translations, so
your contribution is very welcome.

Cheers
Michael Koch