Problems trying to get currency separator correct for CAD

tjoen tjoen at dds.nl
Fri Jul 22 04:14:27 EDT 2011


bunk3m schreef op do 21-07-2011 om 17:58 [-0400]:

> In the earlier part of my post which I guess got lost, I mentioned that
> I had already tried to do this using the wiki post.
> 
> In the FAQ it says to do the following command to customize: "defaults
> write -app Gnucash AppleLocale = "en_US at currency=CAD" "
> 
> This command should actually be:
> 
>     defaults write -app /Applications/Gnucash/Gnucash.app
> AppleLocale="en_US at currency=CAD"
> 
> But I get an error:
>    2011-07-20 13:42:44.553 defaults[4877:10b]
>    Rep argument is not a dictionary
>    Defaults have not been changed.
> 
> Can you help me with understanding why the command didn't work?
> 
> Thanks.
> B
> 
> On 21.07.2011 17:41, John Ralls wrote:
> > On Jul 21, 2011, at 2:54 PM, bunk3m wrote:
> >
> >> Hi Warlord.
> >>
> >> If this is bug in  the locale configuration, then why do Excel, SEE
> >> Finance, Libreoffice-Calc etc. etc. all use the proper currency
> >> separator (ie. "dot")? 
> >>
> >> If the locale had a bug then the other programs would also use "comma"
> >> just like Gnucash.   Yes???
> >>
> >> B
> >>
> >> On 21.07.2011 14:31, Derek Atkins wrote:
> >>> "Vasyĺ V. Vercynśkyj" <fuckel at ukr.net> writes:
> >>>
> >>>> 20.07.2011 21:13, bunk3m wrote:
> >>>>> I'm using Gnucash 2.4.7 on OSX 10.5.8.
> >>>>>
> >>>>> I've been searching but not found how to change the "," (comma) to "."
> >>>>> (decimal) to separate the dollars and cents.  This is not the standard
> >>>>> for Canada (English speaking Canada anyway.  Not sure what our
> >>>>> Francophone cousins use...)
> >>>> […]
> >>>> And I sure that decimal separator for Russia (in accordance with
> >>>> national standard) is comma, but Gnucash insistently inserts periods
> >>>> in spite of:
> >>>>
> >>>> $ echo $LANG
> >>>> ru_RU.UTF-8
> >>>>
> >>>> The bug was registered almost four month ago but nobody cares:
> >>>> https://bugzilla.gnome.org/show_bug.cgi?id=646096
> >>> This would be a bug in the locale configuration, not a bug in GnuCash.
> >>> GnuCash just uses what the locale says to use.
> > Those are all actual OSX applications. Gnucash is a Gtk application which happens to run on OSX.
> >
> > $LANG does absolutely nothing for Gnucash on OSX; all of the environment stuff is set from System Preferences>Language and Text. Number formatting is set from the Formats page on that sheet, but the customizations aren't taken in to account, only the locale. That's because Gnucash uses gettext, which can't handle custom formats, while true OSX applications use ICU, which can.
> >
> > So Bunkum and Vasily, set the format to a country which gives you the format you like without customizing anything.
> > If that's not the country you want to use for everything else, use defaults as described here:
> > http://wiki.gnucash.org/wiki/FAQ#Q:_I.27m_a_Mac_user_and_I_want_to_use_Gnucash_in_a_language_different_from_my_system_settings.

Not a Mac user, but after reading the Wiki there are more possibilities
to try:
en_CA at currency=CAD (CAD is Canadian Dollar?)
or set your system locale to en_CA



More information about the gnucash-user mailing list