Geting GnuCash to Recognise Localised tax report for UK
janssens-geert at telenet.be
Tue May 20 10:54:46 EDT 2014
On Tuesday 20 May 2014 07:45:38 John Ralls wrote:
> On 19 May 2014, at 23:37, Clint Redwood <clint at 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 :(
More information about the gnucash-devel