Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Dynamic language translation with using qsTranslate

Dynamic language translation with using qsTranslate

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 1 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chiragbprajapati
    wrote on last edited by
    #1

    I want dynamic translation in my application but due to Qt bug currently dynamic translation is not supported so i have used work around solution described "here":http://developer.qt.nokia.com/forums/viewthread/3307/#21454 .In my application i have used ListView in which listmodel is in different file so i have used QT_TR_NOOP() in list model and qsTranslate() in list delegate but it doesn't work and i am also confused about what should be context argument in qsTranslate. can anyone help in this?

    Regards,
    CPra

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chiragbprajapati
      wrote on last edited by
      #2

      got it.
      i manage to work qsTranslate in my application when delegate and listmodel are in different file by specifying context property of qsTranslate() as name of the list element's qml file name, but in my application one deligation is being used by too many list model so does any body knows how to specify context property for different list model file in one deligate?

      Regards,
      CPra

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chiragbprajapati
        wrote on last edited by
        #3

        qsTranslate takes the argument context which is will be file name where our model defined. by default file's context will be same as file name.

        Regards,
        CPra

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved