Results 1 to 4 of 4

Thread: Is it possible to edit the source string using the linguist

  1. #1
    Join Date
    Jan 2011
    Posts
    2
    Qt products
    Qt4

    Default Is it possible to edit the source string using the linguist

    The problem that I have is that other people (who are not programmers) of my project do the translations. They should use the linguist. Sometimes they have to edit the source strings, but I think there is no possibility to do this in the linguist.

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

    Default Re: Is it possible to edit the source string using the linguist

    There is no need to change strings in the source.
    There are macros (tr("")) for the strings that need to be translated.
    See documentation:
    http://doc.trolltech.com/4.7/internationalization.html
    ==========================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.

  3. #3
    Join Date
    Jan 2011
    Posts
    2
    Qt products
    Qt4

    Default Re: Is it possible to edit the source string using the linguist

    I know the concept of using tr().
    But if our man who translates our program says the source of our tranlation is wrong, he has to tell us by mail.
    And then we have to correct it in our source code, do a lupdate, resend the ts - file to our translator ... and so on.
    He cannot correct this mistake by using linguist because the mistake is in the source code or in ui - files.

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

    Default Re: Is it possible to edit the source string using the linguist

    For translation to work you need to correct the source code as well so your translator has to tell you about the problem by email anyway. Furthermore if you are maintaining more than one translation then correcting the original message by one translator would require all others to correct it as well. It's easier to do it at the level of the source code then you will always be in sync with all other people.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTableView line edit clears the text on edit
    By PlasticJesus in forum Qt Programming
    Replies: 5
    Last Post: 14th March 2015, 19:06
  2. QTextEdit to edit source code
    By peace_comp in forum Qt Programming
    Replies: 1
    Last Post: 5th November 2010, 14:53
  3. Translations Using Linguist
    By QbelcorT in forum Qt Tools
    Replies: 0
    Last Post: 26th March 2009, 15:23
  4. Character encoding in text edit and llne edit
    By greenvirag in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 08:45
  5. How to use Qt Linguist
    By mourad in forum Qt Tools
    Replies: 1
    Last Post: 24th May 2008, 02:18

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.