PDA

View Full Version : How to populate text entries to ts file from some other FIles



vaibhav
20th April 2011, 09:23
Hi,
I have an application which reads some file which has information about the widgets like below.

Pushbutton
tooltips :"THIS IS TO CREATE THE NAME"
texts :"NAME"
width:100
height:200

.This at run time creates the QPUSHBUTTON with text as NAME and tooltip as "THIS IS TO CREATE THE NAME".

Now I want to provide the localization for these texts and tooltips which are not written in .cpp or .h files.
So running lupdate directly on .pro file wont work.

So guys do you have any approch of populating all texts from such file's to .ts ? .

Thanks....

high_flyer
21st April 2011, 15:20
Getting in to a ts might not be the problem - but where do you get the translation string for each string you load?
You need to know in advance all the possible used words, in order to patch a proper translation for it.
You will have to supply a ts file with each such text file.

Or I completely misunderstood you.