Locale settings in Plasma Next
Sebastian Kügler
sebas at kde.org
Tue May 6 21:35:59 UTC 2014
On Tuesday, May 06, 2014 19:42:32 John Layt wrote:
> On 5 May 2014 15:44, Sebastian Kügler <sebas at kde.org> wrote:
> > John, you said that you started splitting the locale KCM already, is that
> > work already available somewhere? I could put some time into trying to
> > get it up to scratch for an initial release. (To me, right now, even
> > disabling the locale KCM altogether is better than keeping it as-is.)
Where can I find that KCM? I've looked into the old kde-runtime repo, and the
new location in plasma-desktop, but no branches that look like the code is in
there.
> I started, basically I copied the existing kcm to a new one in
> kcontrol/translations and deleted all the KLocale format code, leaving
> just the languages tab, I've mostly been experimenting with layout
> options. I hadn't started the new Formats kcm yet. Basically feel
> free to do what you like, I'd say disable or delete the existing one,
> and we can add new ones as clean code whenever we get to them.
That sounds good. I'll disable it from the build, but will keep it in the repo
for now, as I might want to salvage some useful code from it. It can be
deleted later.
You can find it in plasma-desktop[sebas/locale], it's quite work-in-progressy.
> If you want to do something, I'd suggest looking at startkde, or
> whatever it is that starts Plasma up, and modify it to export the
> locale envvars if set by the kcm (LC_NUMERIC, LC_TIME, LC_MONETARY,
> LC_MESSAGES, LC_MEASUREMENT, LC_COLLATE, LC_CTYPE, LANGUAGE and LANG,
> but *not* LC_ALL). You'll need first to decide in what config file
> these get saved, just remember that it's a Plasma specific setting,
> not a general KDE Frameworks or Apps setting.
I've started on the Formats KCM, it's very rough (but conceptionally working,
writing out export LC_ALL and sourcing that from startkde has the desired
effect, now on to splitting the variables out and adding more UI for them.
> After that it should be easy enough to do a temporary Formats kcm with
> some combo boxes populated with locales using
> QLocale::matchingLocales(). There would be one combo for "Default
> Format" which defaults to "System Locale" (i.e. don't override
> anything) and populates LANG if a different locale is chosen. The
> other combos would be for example "Number Format" which defaults to
> "Default Format" (i.e. don't override anything). Don't offer
> LC_MESSAGES here, I think that should be set by the Translations KCM.
Thanks for the input, it's really helpful and greatly speeds this up.
Cheers,
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
More information about the Plasma-devel
mailing list