KLocale QML bindings
notmart at gmail.com
Tue Feb 14 17:10:47 UTC 2012
On Tuesday 14 February 2012, Giorgos Tsiapaliwkas wrote:
> I need some help with the wrapper.
> 1.So, KLocale::setCountry (const QString &country, KConfig *config) and
> KLocale::setLanguage (const QString &language, KConfig *config)
> need a pointer to KConfig. In our case we need the plasmoid's configuration
> file. How can I access that?
i don't think we really want to be able to write into klocale from qml.
in the end will be mostly for formatting strings and dates. is something
different than the default behavior will be needed, just do it from c++ side
> 2.I think KLocale::setLanguage(const QStringList &languages) that will not
> work in QML. Correct? Is there any way to fix it or
> I should just remove it?
> 3.stuff like this one KLocale::codecForEncoding() will not work in
> thanks in advance
yes, just remove all this stuff for now
More information about the Plasma-devel