kontalk / desktopclient-java

Kontalk official platform independent desktop client
https://www.kontalk.org
GNU General Public License v3.0
57 stars 24 forks source link

Chinese characters in UI not shown correctly #56

Closed abika closed 8 years ago

abika commented 8 years ago

... as reported by a user.

Josh4all commented 8 years ago

2015-11-11_00-03-44 As shown above

abika commented 8 years ago

This is a problem with your OS environment: The Chinese fonts are missing (or Java can't find them) . What OS are you using? For me it was fixed by installing opendesktop-fonts (on Arch Linux).

But there is another problem (maybe): Java is converting "zh_Hans" to "zh_hans", so the translation file won't be found. Please test the current master, if it doesn't work for you I'll have to find a solution here.

Josh4all commented 8 years ago

Looks like the characters show well under Ubuntu Mate, but not on Windows 10. Also now met another problem that I can't sign into my Kontalk acc with error prompt "Can't connect to server && Connection to server closed on error" :(

abika commented 8 years ago

don't know about Windows 10, I guess you have to install an extra Asia font package.

About the connection error: please create a new issue and post at least the exceptions from the log file (https://github.com/kontalk/desktopclient-java/wiki#i-found-a-bug-what-to-do)

Josh4all commented 8 years ago

Well, I guess I have no need to install any other Asian Fonts as Win10 itself is already in Simplified Chinese. I still couldn't get it working properly under Windows. :( Also, according to the console output, it shows it needs a translation file named "strings_zh.properties" instead of “strings_zh_Hans.properties”.

abika commented 8 years ago

I renamed the Chinese translation in master. At least it should be used now