Skip to content

Load translations for application-specific language also on Win and Mac

On Windows and Apple OSs, we cannot use QLocale::system() because on those OSs Qt ignores LANGUAGE (which is set by kxmlgui to the application-specific languages configured by the user). We need to check LANGUAGE ourselves.

CCBUG: 464694

This is basically the same as ki18n!78 (merged). It fixes the bug for translations coming from .qm files in KF libraries.

I have tested this MR (for KF5) with Kate on Windows.

Merge request reports