Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Best Strategy for Webkit Apps & Translation?
Forum Update on Tuesday, May 27th 2025

Best Strategy for Webkit Apps & Translation?

Scheduled Pinned Locked Moved Unsolved General and Desktop
webkitlinguisttranslationslanguagejapanese
1 Posts 1 Posters 955 Views
  • 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.
  • M Offline
    M Offline
    maximo
    wrote on last edited by
    #1

    My Japanese investor wants me to make not just an English application, but a Japanese version too. (He can translate for me, he said.) So I'm just now learning these:

    http://doc.qt.io/qt-5/internationalization.html
    http://doc.qt.io/qt-5/qtlinguist-index.html

    However, what would you recommend that I do for a Webkit widget application, where most of the content is stored in local web pages (accessed with file://) ? I guess I can traverse the Webkit bridge to be able to use the tr() statement, and then use jQuery to put the translated text in its place. However, that might run a little slow.

    Another strategy, perhaps, could be that one file:// URLs pull from an "lang/en" directory inside my .app, while another "lang/jp" directory could be there for the other file:// URLs. That will run a whole lot faster unless you can think of a better idea.

    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