Hi Geert, Thanks for your detailed reply. I've hacked the us report in order to do what I need in the short term, and will fix the localisations for it going forward. It seems that the whole process may not work quite as I'd hoped anyway, as I suspect I need to be able to associate a single account to more than one tax code - at the moment, it's set up for many accounts to one line, but I think may I need many to many, since in some cases the same information appears more than once on the UK tax forms. I'll see how well I can do it as it is, and then decide if it's worth fixing the de_DE hack and generalising it.
It's just such a shame for all the international users not to have the capability of using this faclilty, and I'm sure keeps people on proporiety alternatives. Yours, Clint Redwood Screwtape Limited, Registered 06663232, Babington House, 26 College Road, Chilwell, Nottingham NG9 4AS -----Original message----- From:Geert Janssens <janssens-ge...@telenet.be> Sent:Tue 20-05-2014 15:54 Subject:Re: Geting GnuCash to Recognise Localised tax report for UK To:gnucash-devel@gnucash.org; CC:John Ralls <jra...@ceridwen.us>; Clint Redwood <cl...@screwtape.co.uk>; On Tuesday 20 May 2014 07:45:38 John Ralls wrote: > On 19 May 2014, at 23:37, Clint Redwood <cl...@screwtape.co.uk> wrote: > > Hi David, > > > > Thanks for the reply. I'd heard that before, and I didn't expect to > > be able to use the export, but the accompanying report with the tax > > form lines accumulating related accounts, rather than having to use > > a spreadsheet each year and remember which accounts added up to > > what. > > > > There is code in the GnuCash release for a German localisation of > > the report, so I naively assumed I could create a GB localisation > > too. However, it is ignoring my localisation attempt. > > > > I've created -en_GB versions of all the files localised as -de_DE > > and it just loads the us version. > > > > I'd be surprised if a stable release of gnucash ships with code that > > isn't usable so I'm just trying to figure out why my localisation > > for en_GB is ignored. Unfortunately the locale specific tax reports we added via a hack. And the code that should load these reports explicitly checks if the locale is de_DE. If not it will go for the US tax report. This filtering is done in src/tax/us/gncmod-tax-us.c if I remember correctly. You may be able to fix this by special casing en_GB as well, though I'd rather see this mess cleaned up properly by storing locale dependent tax related stuff in separate directories/files per locale/country and load the relevant bits whenever the right locale is active. That may be more than you intended to do here though :( Geert _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel