Results 1 to 5 of 5

Thread: Translation without HTML

  1. #1
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Translation without HTML

    Hi,

    1) How can i tell the desingner translate strings without HTML?
    2) How can i tell the desingner which strings add to the linguist?

    Thanks,

    Marco812

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Translation without HTML

    Quote Originally Posted by Marco812 View Post
    1) How can i tell the desingner translate strings without HTML?
    What do you mean? Inside text edits? Just don't use html there.

    2) How can i tell the desingner which strings add to the linguist?
    Designer (or rather moc) wraps all strings inside tr() calls so they all get pulled to the translation file.

  3. The following user says thank you to wysota for this useful post:

    Marco812 (25th November 2006)

  4. #3
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Translation without HTML

    Quote Originally Posted by wysota View Post
    What do you mean? Inside text edits? Just don't use html there..
    I mean a label with blue textcolor.

    Quote Originally Posted by wysota View Post
    Designer (or rather moc) wraps all strings inside tr() calls so they all get pulled to the translation file.
    Can i not define which strings wraps inside a tr()?

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Translation without HTML

    Quote Originally Posted by Marco812 View Post
    I mean a label with blue textcolor.
    Don't use html tags if you don't want them to be included in the translation or set the text in code and not in Designer, you'll then have complete control over it.


    Can i not define which strings wraps inside a tr()?
    Not from within Designer. But you can always ignore certain strings during translation. You can even set a comment from within Designer (most or even all textual properties allow setting a comment) so that your translators know they are to ignore that particular string while translating.

  6. The following user says thank you to wysota for this useful post:

    Marco812 (25th November 2006)

  7. #5
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Translation without HTML

    Hi,

    that's bad. I have do it without designer and the program work fine.

    Thank's for your help.

    Marco812

Similar Threads

  1. Replies: 1
    Last Post: 18th July 2006, 12:06
  2. Need Basic html Browser
    By awalesminfo in forum Newbie
    Replies: 6
    Last Post: 21st March 2006, 17:14
  3. Replies: 1
    Last Post: 17th March 2006, 08:01
  4. Splitting Translation Files
    By Jimmy2775 in forum Qt Programming
    Replies: 9
    Last Post: 3rd February 2006, 19:23
  5. [Qt 4.1]using html in QTextEdit from designer
    By patcito in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2006, 22:36

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.