July 28, 2011

dridk dridk
Lab Rat
48 posts

[SOLVED]QML internalization per file ??

 

Hello,

I read some documentation about qml internalization. It seems I have to provide 1 translation file per qml file…
So my C++ application contain many qml file ( qmlCount) . And I have to internalizate it for many language… ( lngCount)

Does it mean I have to create : qmlCount * lnCount files ??
If I have 20 qml file, and I need to translate my application to 10 language… The translation files will be 200 !!

So my question is : How can I translate my qml application to have 1 translation file per application! Like the translation C++ system!

It’s seems it will be more easy to use an sqlite file! no ?

 Signature 

Nothing in Biology Makes Sense Except in the Light of Evolution

4 replies

July 28, 2011

dridk dridk
Lab Rat
48 posts

Ok I found!

lupdate file1.qml file2.qml -ts translation.ts!

 Signature 

Nothing in Biology Makes Sense Except in the Light of Evolution

July 28, 2011

Stavros Filippidis Stavros Filippidis
Ant Farmer
358 posts

Since you found the solution, please edit your initial post of this thread so that it reads:

[SOLVED] QML internalization per file ??

to indicate that the issue is closed/solved. :-)

July 28, 2011

dridk dridk
Lab Rat
48 posts

Ok ! I had not found the button! Now it’s ok

 Signature 

Nothing in Biology Makes Sense Except in the Light of Evolution

July 28, 2011

Stavros Filippidis Stavros Filippidis
Ant Farmer
358 posts
dridk wrote:
Ok ! I had not found the button! Now it’s ok

Nice! It is an “unofficial” method we use to indicate that the thread addresses a (now) resolved issue! :-)

 
  ‹‹ Creating connections to QML and javascript      [SOLVED] How to apply a font family as default through a Qt Quick app ››

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