Bug 319316 - Open/save file dialogs aren't translated when run from Qt apps
Summary: Open/save file dialogs aren't translated when run from Qt apps
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Applications
Component: general (show other bugs)
Version: 4.11.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-04 15:46 UTC by Daimonion
Modified: 2014-04-10 23:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daimonion 2013-05-04 15:46:13 UTC
Running for example web browser written in Qt, which uses native KDE dialogs doesn' display those dialogs in system language. Console output gives this error:

KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work

I'm not sure about other non KDE apps, I've just notice this problem with Qt apps.

Reproducible: Always

Steps to Reproduce:
1. Run a Qt program, for example, QupZilla web browser
2. Load a page
3. Press Ctrl + S to save a web page
Actual Results:  
KDE dialog opens, displayed in English.

Expected Results:  
KDE dialog displayed in language defined in systemsettings should open.

It seams that problem is old. I've been seeing writings in forums since 2011. I've been experiencing it for some time, too, but it never bothered me before.
Comment 1 David Smid 2013-09-05 09:29:59 UTC
This problem damages user experience for people that do not understand English.
Any Qt application that uses the static QFileDialog methods looks as half-translated in KDE (e.g.  Qt Creator).
This issue is also very important to our project because we cannot use the non-native dialogs as they do not expose USB storages, network shares and such.
I've seen this on OpenSUSE 12.1 (KDE 4.8.5) and Fedora 19 (KDE 4.10.5).
Comment 2 Christoph Feck 2014-04-10 23:18:08 UTC
Fixed in 4.12.5 with http://commits.kde.org/kdelibs/09d4d52dd9312bdd17ce71cc55df3ce3860de73d