[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: Loading Qt 5 translations
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2014-05-26 14:17:59
Message-ID: 1401113879.1109.121627369.4C8D31BA () webmail ! messagingengine ! com
[Download RAW message or body]

On Sun, May 25, 2014, at 2:05, Albert Astals Cid wrote:
> El Dissabte, 17 de maig de 2014, a les 18:21:16, Lasse Liehu va escriure:
> > Hi
> > 
> > Translations for frameworks are loaded automatically when they are
> > used, but what about Qt 5 itself? Are those translations loaded and if
> > not, how should they be loaded?
> 
> They are loaded "manually", i.e. if you look at qt designer code it does
> 
>     translatorFileName = QStringLiteral("qt_");
>     translatorFileName += localSysName;
>     qtTranslator->load(translatorFileName, resourceDir);
> 
> Now i think we should do this automagically, since well, we need this for
> all 
> apps and people will forget. The big question is where to put this code.
> 
> Aurelien any idea?

Not sure where we could put this. Frameworks load their translations, I
believe it should be up to Qt to load its own translations. The only
framework where it could maybe make sense to add such feature is in
KI18n, but even there it feels a bit out of place.

Aurélien
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic