Bug in account template loading (was: Re: french xml files for accounts)

Christian Stimming stimming@tuhh.de
Tue, 2 Jul 2002 00:35:51 +0200


-----BEGIN PGP SIGNED MESSAGE-----

On Sonntag, 23. Juni 2002 20:56, Yannick LE NY wrote:
> These are the french xml files for the directory accounts.
> These files are the translated files from Gnucash-1.6.6

Thanks a lot for these translated files. Somehow nobody had time to commit it 
earlier, but now they are included in CVS. That's great work. Oh, but by the 
way, gnucash still doesn't load it but this time because of format errors. I 
guess you can easily track those down, so please feel free to submit the then 
corrected account files once you've tested them by yourself.

> I have modified the makefile.am in the repertory /accounts and
> accounts/fr. But when I compile and install Gnucash, I have not the
> files in french when I start Gnucash for the first time.
> I think some other files in the gnucash's source need to be modified.

This is actually a real bug. Gnucash looks for the account templates in the 
directory that is *exactly* named as your LANG. I.e. if LANG=fr_FR then the 
accounts in "fr" are not found. Therefore for now I put them into fr_FR 
instead of fr. 

This needs to be fixed, since LANG might always be a little longer than what 
we'd expect (LANG=de_DE.utf8 or de_DE@euro, for example). Gnucash should 
successively try the first part of LANG as an account directory. 
Unfortunately currently I don't know where to fix that -- anybody?

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQCVAwUBPSDZR2XAi+BfhivFAQHJVQQAnztFGgn+R1DZbVBl+KKsQIk/xiv4KSrM
+Fi3CDNN5+Kj+25eCAHhVtpB7E5vjEh27JVopXsRVyVYCID2NIpwYsSAeSS4vThZ
kmAPIMBx7XiSDoWsny2PAjBhpaoN/MPTTGb1PzI1R3NwI6z0vJ6Oib9lW1ynCtHQ
BRZMOE2CD38=
=rFw+
-----END PGP SIGNATURE-----