Fred/Ricardo,
I'd like to have a more thorough conversation about this, but I do not
think this thread is the right place to do so. As Ricardo pointed out, it's
not an uncomplicated issue, particular since, as I've hinted at, we have to
think about compatibility with older language names (English,
AmericanEnglish, etc).

To answer Edwin's original question, I found that the correct default to
set is "Locale". That should be enough to get the correct answer out of
-currentLocale. The -systemLocale method always return the locale set by
the system variables. You can see what that is by using the "locale"
command in the terminal.

Edwin, just run:
defaults write NSGlobalDomain Locale nl_BE
in a terminal. That should be all you need to do.

Regards
Stefan

On Aug 20, 2017 17:03, "Fred Kiefer" <[email protected]> wrote:

> Please have a look at the code inside of NSLocale. After selecting the
> locale all the different settings you are referring to will be extracted
> from that locale. And applications that rely on the Foundation
> functionality will respect these settings. At least for the case where ICU
> gets used.
>
> On the other hand, the time zone is completely unrelated to the the
> locale. That way I am able to use my German settings even when in a foreign
> country.
>
> Selecting the different setting separately will get complicate, as you may
> have to create a new locale with ICU.
>
> Hope this helps,
> Fred
>
>
> > Am 20.08.2017 um 22:01 schrieb Riccardo Mottola <
> [email protected]>:
> > On 20/08/2017 16:58, Stefan Bidigaray wrote:
> >> Absolutely! What I was trying to say before is that I don't know how
> locales are set. I don't think SystemPreferences has a pane for locale,
> though, does it? That leads me to the other part of my question, which
> default sets this?
> >
> > well, let's assert which preference to write and we can write a new
> Module!
> >
> > Also, can we confirm first that the Time Zone Panel is writing the
> correct thing? @"Local Time Zone" ?
> > Just to be sure that there is no bug and we are speaking of a new
> "feature"
> >
> > I think it is not totally easy, because it the timezone (and other
> locales) will be specific to GS apps.
> > I suppose we need settings for:
> > 1) language (which we already support, we need the PrefPane for it)
> > 2) date and time formats
> > 3) numbers
> > 4) currency
> > 5) measurement units
> >
> > do we have settings for any of those, support at all? would it make any
> effects on apps?
> > Before working on a Panel we need to assess what we already support
> through existing preference in the global domain.
> >
> > Often you choose a "cluster" of settings, e.g. you say "Italy" or "UK"
> or "US" and set all those above, this is I guess why Edwin thought it was
> or could be combined with the Time Zone.
> >
> > Riccardo
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to