July 7, 2011

sfjam sfjam
Lab Rat
41 posts

how to solve QML internationalization?

 

hi everyone:can you tell me how to implement QML internationalization?i want to implement display chinese!

5 replies

July 7, 2011

Alexandr Ekimov Alexandr Ekimov
Lab Rat
7 posts

http://doc.qt.nokia.com/4.7-snapshot/qdeclarativei18n.html

 Signature 

Ekimov Alexander,
http://www.ekimoff.com

July 8, 2011

mbrasser mbrasser
Ant Farmer
452 posts

Hi,

You should be able to add Chinese directly into your QML file (if it doesn’t display correctly when you run, you might need to change the file’s encoding to UTF-8).

Regards,
Michael

July 8, 2011

1+1=2 1+1=2
Hobby Entomologist
309 posts

mbrasser wrote:
Hi,

You should be able to add Chinese directly into your QML file (if it doesn’t display correctly when you run, you might need to change the file’s encoding to UTF-8).

Regards,
Michael

Hello Mcihael,

Does this mean .qml files always use utf-8 codec.

Thanks,

Debao

July 9, 2011

sfjam sfjam
Lab Rat
41 posts

it successed when use qmlviewer,but when i use Qt run directly,it failed,but in main.cpp i have installed QTranslator,i followed the Qt Internationalization,so who can help me solve this problem?thanks very much!

July 10, 2011

changsheng230 changsheng230
Lab Rat
128 posts

This has been discussed, please refer to the threads [developer.qt.nokia.com]:

 Signature 

Chang Sheng
常升

 
  ‹‹ How can I use qml items from another project ?      drawing with units like mm instead of pixels ››

You must log in to post a reply. Not a member yet? Register here!