Results 1 to 2 of 2

Thread: How to populate text entries to ts file from some other FIles

  1. #1
    Join Date
    Mar 2009
    Location
    delhi India
    Posts
    56
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default How to populate text entries to ts file from some other FIles

    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....

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,710
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to populate text entries to ts file from some other FIles

    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.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 0
    Last Post: 2nd August 2010, 09:37
  2. Replies: 0
    Last Post: 16th April 2010, 11:16
  3. Replies: 3
    Last Post: 3rd May 2009, 08:58
  4. Replies: 1
    Last Post: 3rd September 2008, 14:16
  5. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 00:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.