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

        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