Bug 254291

Summary: Fix early i18n() usage
Product: [Applications] krita Reporter: Christoph Feck <cfeck>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christoph Feck 2010-10-15 19:42:52 UTC
Version:           svn trunk (using Devel) 
OS:                Linux

When you start krita (or any other koffice app that uses libpigment) on current trunk, the following self-explanatory debug message appears:

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

The issue is that in "libs/pigment/KoColorModelStandardIds.cpp" static objects are created using i18n() calls before KDE has a chance to initialize the KGlobal object for the application.


Reproducible: Always
Comment 1 Halla Rempt 2010-11-06 12:00:13 UTC
Duplicate of 251606, see my patch there.

*** This bug has been marked as a duplicate of bug 251606 ***