Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78148

How to let qtwebengine use system locale language and load correct .pak file?

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.13.1
    • WebEngine
    • None
    • win32 vs2017 qt5.13.1

    • Windows

    Description

      I use zh_CN, I want my qtwebengine use chinese as default ui, but I don't know how to achieve this.

      For example, in chrome, alert() shows like:

      but in qtwebengineview, it shows like

       

      and, chrome show like:

      but qtwebengine shows like:

      Every ui in qtwebengine seems to use english as default, but when i try to print my view->locale(), it shows: QLocale(Chinese, Default, China), and although I delete everything in qtwebengine_locales, this does not seem to have any effect.

      So, how to let qtwebengine load zh-CN.pak correctly?

      Attachments

        1. image-2019-09-10-10-57-05-987.png
          7 kB
          fan shijie
        2. image-2019-09-10-10-57-56-387.png
          6 kB
          fan shijie
        3. image-2019-09-10-11-07-18-743.png
          39 kB
          fan shijie
        4. image-2019-09-10-11-07-41-931.png
          9 kB
          fan shijie
        5. image-2019-09-18-09-52-54-421.png
          3 kB
          fan shijie
        6. image-2019-09-18-09-53-16-504.png
          34 kB
          fan shijie
        7. image-2019-09-18-09-55-08-378.png
          13 kB
          fan shijie
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            lalalacampanella fan shijie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes