Results 1 to 4 of 4

Thread: QDialogButtonBox - translation of standard button text ("OK", "Cancel" etc.)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    56
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question QDialogButtonBox - translation of standard button text ("OK", "Cancel" etc.)

    I'm using a QDialogButtonBox in an app that will is being translated into Japanese etc. The text for the standard buttons in QDialogButtonBox such as "OK", "Cancel" etc. doesn't show up in my .ts translation files. I assumed the app was going to use the standard localized text for these buttons from the OS, but it doesn't look like this is done.

    Do I have to localize the text for these standard buttons myself? If so, is the correct way to re-set the text for each of the standard buttons with the correct text but use "ts()"? Seems a bit strange to have to do it that way if so.

    Thanks

  2. The following user says thank you to will49 for this useful post:

    Gecsevar (17th April 2011)

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.