Re: Locale issues on OSX

2017-05-31 Thread Axel Essbaum

> It's a wrapper around GtkCalendar which uses strftime, which in turn uses 
> LC_TIME. The catch in your case is that it requires a locale defined in 
> /usr/share/locale, and en_CH isn't one of them, so GnuCash goes looking for 
> something that will work, starting with the country. It apparently finds 
> fr_CH first.
> 
> You can try setting Region to United States and in the advanced sheet change 
> the currency to CHF, but that will probably flip the separators so that 
> thousands is , and decimal is . in places where the number is formatted with 
> LC_NUMERIC instead of LC_MONETARY. Incidentally, Apple's Swiss POSIX locales 
> that has the separator as . instead of ' in LC_MONETARY; they have ' ' 
> (space) as the separator in LC_NUMERIC.

Thank you, John!  This was very helpful.

- Axel

--
Axel Essbaum
a...@essbaum.com

___
gnucash-user mailing list
gnucash-user@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: Locale issues on OSX

2017-05-29 Thread John Ralls

> On May 29, 2017, at 10:09 AM, Axel Essbaum  wrote:
> 
> 
> Can anyone tell me how the language for the date picker is determined in 
> GnuCash?
> 
> Thanks!!
> 
> - Axel
> 
> --
> Axel Essbaum
> a...@essbaum.com
> 
> 
> 
>> On 28 May 2017, at 18:56, Axel Essbaum  wrote:
>> 
>> 
>> Hello all,
>> 
>> I just recently upgraded from GC 2.6.3 to GC 2.6.16 and am having locale 
>> issues under OSX 10.11.
>> 
>> In System Preferences > Language and Region I have Language set to English 
>> (English at the top of the list) and Region set to Switzerland.  Under 
>> Advanced I have Number separators set to ' with Decimal as .  Currency is 
>> Swiss Franc (CHF).  This worked ok in 2.6.3 but in 2.6.16 I am getting 
>> Number separator . with Decimal as ,
>> 
>> I could live with this, except that the calendar (what appears when I click 
>> on a date) is in French (was in English in 2.6.3)!
>> 
>> Changing the setting for GnuCash > Preferences > Accounts > Default Currency 
>> has no effect.
>> 
>> Anyone know whatI can do to fix this?
>> 


It's a wrapper around GtkCalendar which uses strftime, which in turn uses 
LC_TIME. The catch in your case is that it requires a locale defined in 
/usr/share/locale, and en_CH isn't one of them, so GnuCash goes looking for 
something that will work, starting with the country. It apparently finds fr_CH 
first.

You can try setting Region to United States and in the advanced sheet change 
the currency to CHF, but that will probably flip the separators so that 
thousands is , and decimal is . in places where the number is formatted with 
LC_NUMERIC instead of LC_MONETARY. Incidentally, Apple's Swiss POSIX locales 
that has the separator as . instead of ' in LC_MONETARY; they have ' ' (space) 
as the separator in LC_NUMERIC.

Regards,
John Ralls


___
gnucash-user mailing list
gnucash-user@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: Locale issues on OSX

2017-05-29 Thread Axel Essbaum

Can anyone tell me how the language for the date picker is determined in 
GnuCash?

Thanks!!

- Axel

--
Axel Essbaum
a...@essbaum.com



> On 28 May 2017, at 18:56, Axel Essbaum  wrote:
> 
> 
> Hello all,
> 
> I just recently upgraded from GC 2.6.3 to GC 2.6.16 and am having locale 
> issues under OSX 10.11.
> 
> In System Preferences > Language and Region I have Language set to English 
> (English at the top of the list) and Region set to Switzerland.  Under 
> Advanced I have Number separators set to ' with Decimal as .  Currency is 
> Swiss Franc (CHF).  This worked ok in 2.6.3 but in 2.6.16 I am getting Number 
> separator . with Decimal as ,
> 
> I could live with this, except that the calendar (what appears when I click 
> on a date) is in French (was in English in 2.6.3)!
> 
> Changing the setting for GnuCash > Preferences > Accounts > Default Currency 
> has no effect.
> 
> Anyone know whatI can do to fix this?
> 
> Thanks!!
> 
> - Axel
> 
> --
> Axel Essbaum
> a...@essbaum.com
> 
> 
> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Locale issues on OSX

2017-05-28 Thread Axel Essbaum

Hello all,

I just recently upgraded from GC 2.6.3 to GC 2.6.16 and am having locale issues 
under OSX 10.11.

In System Preferences > Language and Region I have Language set to English 
(English at the top of the list) and Region set to Switzerland.  Under Advanced 
I have Number separators set to ' with Decimal as .  Currency is Swiss Franc 
(CHF).  This worked ok in 2.6.3 but in 2.6.16 I am getting Number separator . 
with Decimal as ,

I could live with this, except that the calendar (what appears when I click on 
a date) is in French (was in English in 2.6.3)!

Changing the setting for GnuCash > Preferences > Accounts > Default Currency 
has no effect.

Anyone know whatI can do to fix this?

Thanks!!

- Axel

--
Axel Essbaum
a...@essbaum.com



___
gnucash-user mailing list
gnucash-user@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.