[GNC] Decimal separator on Gnucash 3.2 Mac
Yves Forget
yves_forget at yahoo.ca
Mon Jul 2 22:36:41 EDT 2018
Hi John,
Running from the terminal I still get period. In the terminal I got
the following trace.
(process:1976): gnc.gui-WARNING **: 18:35:55.003: [mac_set_languages()]
Language list: en:fr_CA:en_CA:C
I just downloaded the sources from GitHub, and looked
at [mac_set_languages()]. Foundation offers global variables
NsLocaleDecimalSeparator, NSLocaleGroupingSeparator and
NSLocaleCurrencySymbol, among others. These variables would bring
directly the values mac_set_languages() is trying to get. Furthermore,
if a user changes the decimal separator in the Advanced panel of the
Language and Region system preferences, gnu cash would get the expected
separator instead of the locale’s default separator. Is it something
that could be changed without breaking a lot of things in the app ?
Please don’t hesitate to tell me if I’m completely wrong…
Thanks,
Yves
Le 2 juill. 2018 à 18:43, John Ralls <[1]jralls at ceridwen.us> a écrit :
I tested this a bit in the debugger and I with French as the primary
language and Canada as the country [currentlocale objectForKey:
NSLocaleLanguageCode] insists that the code in en, not French. If I
tell System Prefs I'm in France it gets the right answer, so it might
be an Apple bug.
Unfortunately setting LANG in the environment, though it will set the
interface language, doesn't seem to change the number display, so there
doesn't seem to be a way to force it at present.
Regards,
John Ralls
On Jul 2, 2018, at 2:59 PM, John Ralls <[2]jralls at ceridwen.us>
wrote:
If you run GnuCash from a Terminal prompt do you get the right
separator?
Regards,
John Ralls
On Jul 2, 2018, at 1:42 PM, Yves Forget via gnucash-user
<[3]gnucash-user at gnucash.org> wrote:
System Preferences/Language and Region says Region = Canada and
language = french. Advanced shows decimal separator is comma and
thousands separator is space. (These are default values for French
Canada).
Environment variable LANG=fr_CA.UTF_8
OpenOffice correctly uses comma as decimal separator.
Is Gnucash supposed to use the parameters from the locale ? Is
there a way to force it ?
Thanks,
Yves Forget
Le lundi 2 juillet 2018 15h48, R. Victor Klassen
<[4]rvklassen at gmail.com> a écrit :
Maybe in Quebec it is a comma. In the rest of the country it is a
period.
There should be a different locale for fr-canada than for en-canada.
I don’t know what else would differ across locales though.
On Jul 2, 2018, at 3:42 PM, Yves Forget via gnucash-user
<[5]gnucash-user at gnucash.org> wrote:
I’m new to GnuCash and just installed GnuCash 3.2 on Mac. OS X 10.13
Gnucash uses the period as decimal separator instead of my locale’s
separator. Here in Canada it should be comma.
Should Gnucash use the decimal separator of my locale, or is it
always
period ? Is there a way to configure it within GnuCash ?
Thanks,
Yves Forget
_______________________________________________
gnucash-user mailing list
[6]gnucash-user at gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
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
[7]gnucash-user at gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
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
[8]gnucash-user at gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
References
1. mailto:jralls at ceridwen.us
2. mailto:jralls at ceridwen.us
3. mailto:gnucash-user at gnucash.org
4. mailto:rvklassen at gmail.com
5. mailto:gnucash-user at gnucash.org
6. mailto:gnucash-user at gnucash.org
7. mailto:gnucash-user at gnucash.org
8. mailto:gnucash-user at gnucash.org
More information about the gnucash-user
mailing list