Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

East Asian languages not working on Dev Alpha B?

I've been able to get Vietnamese and Thai working, but not Chinese (Traditional & Simplified), Japanese or Korean on the device.

 

I'm running a Mac and don't have VMware for the simulator, only testing on the device.  I have the latest firmware update on the device.

 

Are any of the languages above accessible?  I only see two sets of characters at the bottom of the languages that are probably Chinese, and on one of them it has an X for the first character, which implies the characters are not all installed.

 

Has anyone gotten Chinese, Japanese or Korean working on the Dev Alpha A or B?

Developer
Posts: 87
Registered: ‎07-23-2009
My Device: Z30
My Carrier: XL

Re: East Asian languages not working on Dev Alpha B?

I have succed test Japanese font in dev alpha b, here sample app with japanese text in it:

http://appworld.blackberry.com/webstore/content/43835/?lang=en

 

Blackberry 10 screenshot is't available yet, but it already work (so get approved by appworld storefront)

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: East Asian languages not working on Dev Alpha B?

I was able to switch Display Language to Chinese. I suppose Chinese is two bottom options in list. Both of them work.

Chinese Input Language also works. Couldn't find Japanese.

Dev Alpha A.

Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: East Asian languages not working on Dev Alpha B?

Blackberry 10 screenshot is't available yet

 

Were you able to see the Japanese characters on the dev B screen when you tested?

 

 

Developer
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: East Asian languages not working on Dev Alpha B?

I was able to switch Display Language to Chinese


I can change the languages, but not display localized characters in an app.  Were you able to display localized characters in your app?

Developer
Posts: 87
Registered: ‎07-23-2009
My Device: Z30
My Carrier: XL

Re: East Asian languages not working on Dev Alpha B?

it just I haven't update the graphics screenshot since the app is submitted in the last port-a-thon Smiley Happy

here the screenshot one page of the app (it contain arabic & japanese characters)

 

if you want to display unicode characters (ie. japanese or arabic) in your app, make sure to add 

QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));

 in your app constructor Smiley Happy

IMG_00000084.png

Developer
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: East Asian languages not working on Dev Alpha B?

[ Edited ]

I have your line added in my main file:

 

QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));

I have translations added to bar-descriptor and ts files for zh-CN, zh-TW, ja, and ko.

 

One part of my app shows the localized time correctly, with a few Chinese characters before the numbers.

 

But the rest of the text isn't translated.

 

All of the other languages are working.  Smiley Sad

 

Did you get your screen shot from simulator or device?

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: East Asian languages not working on Dev Alpha B?

[ Edited ]

I've tried this code and I see them both in label and textfield:

 

	Container *container = Container::create()
			.top(16).bottom(16)
			.layout(new StackLayout)
			.add(Label::create()
				 .text(QString::fromUtf8("检查字体")))
			.add(TextField::create()
				 .text(QString::fromUtf8("检查字体")));

 Screenshot (from device): 

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: East Asian languages not working on Dev Alpha B?

 

Well, that doesn't make sense.  I'm using tr() to set strings, and all the other languages are working except East Asian ones.

 

textArea->setText(tr("Some text","comment"));

 

Developer
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
My Carrier: NA

Re: East Asian languages not working on Dev Alpha B?

What's also really weird is that the title under the icon is correctly showing in Chinese.