Qt Multi Language Application on imx6 board (wandboard)
I am trying to create a multi language in qt with language options as Chinese, Korean. I have followed the example from the below link
I have changed the language options in above example from t1_fr, tf_sp to t1_zh (simpiified chinese) and t1_ko (korean) respectively
I have added the t1_zh.ts, t1_zh.qm, t1_ko.ts, t1_ko.qm files as resource files on to my application
Added the below line in my .pro file
TRANSLATIONS += t1_ko.ts
Run the linguist and lrelease on the ts file to apply the translations.
I am able to compile it & run it on my host pc (Ubuntu 14.04) and can see appropriate language when selected from the combo box.
Now I am trying to compile and deploy the same onto my imx6q based board (wandboard-quad). I have cross compiled it successfully and copied to target.
When I started the app on wandboard, I can see english language absolutely perfect. But when selected "zh" (i.e. chinese) from combo box, I can't see anything on the screen. when selected "ko" (i.e. korean) from combo box, I can see some boxes on the screen but not the appropriate font.
Since I have included the qm files as resources in my app, I think there is no need to copy them onto target board.
I am missing something else to get the multi language app running on target board. Can some one please let me know what else needs to be done
Can someone please let me know how to deploy the multi language app on target board (arm based)
Thanks in advance
Hi and welcome to devnet,
You need to take on the same steps you would use to deploy a desktop application. So you can follow the Internationalization chapter in Qt's documentation
I have made some progress in this aspect. After deploying the my application onto wandboard, initially I could see only english.
I made use of makeqpf tool and converted the UnDotum.ttf font (korean font) to qpf format and copied them (both UnDotum.ttf and qpf files) on to target at fonts location (on my board it was /usr/lib/fonts). By doing so, when I select ko from combo box I can see the text translated to korean on my GUI screen and it works fine.
I have tried the same for chinese font also. I have converted wqy-zenhei.ttf font (chinese font) to qpf format and copied them (both wqy-zenhei.ttf and its qpf format) on to target at fonts location. But when I select zh, text simply disappears on the screen and nothing is displayed.
Is there any additional step to be done to display chinese font on the GUI screen.
Please let me know
Thanks in advance
I'd check with QFontDatabase that the font can be found