Re: [GNC] Editing SCM quesion

2020-04-22 Thread bob_summers
Thanks John
I'm not native Basque but I could probably contribute some translations. 
Just looking at the Wiki now.

Cheers



--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
gnucash-user mailing list
gnucash-user@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.


Re: [GNC] Editing SCM quesion

2020-04-16 Thread John Ralls


> On Apr 15, 2020, at 10:57 AM, bob_summers  wrote:
> 
> Hi
> 
> Ubuntu, gnucash 3.7
> 
> I need to generate invoices (I use the easy invoice template) in an
> unsupported language (Basque/Euskera) so I can't just open Gnucash using the
> locale options.
> 
> Previously I've been doing this by hand editing the easy-invoice.scm file,
> easy enough to find and replace words like Total, Tax, etc (although it's in
> /Usr/Share it gets overwritten with each update, but I just keep a backup).
> 
> With v3.7, the easy-invoice.scm does not work in the same way and I cannot
> find where these variables are kept.  You can see below the part I used to
> change, and I can't find these expressions anywhere now.
> 
> Wondering if in >3.7 it is even possible to change these expressions.
> 
> 
>>  (let* ((col-vector (make-vector columns-used-size #f))
>> (set-col (make-set-col col-vector)))
>>(set-col (opt-val "Display Columns" "Date") 0)
>>(set-col (opt-val "Display Columns" "Description") 1)
>>(set-col (opt-val "Display Columns" "Charge Type") 2)
>>(set-col (opt-val "Display Columns" "Quantity") 3)
>>(set-col (opt-val "Display Columns" "Price") 4)
>>(set-col (opt-val "Display Columns" "Discount") 5)
>>(set-col (opt-val "Display Columns" "Taxable") 6)
>>(set-col (opt-val "Display Columns" "Tax Amount") 7)
>>(set-col (opt-val "Display Columns" "Total") 8)
>>col-vector))
>> 
>> (define (make-heading-list column-vector)
>> 
>>  (let ((heading-list '()))
>>(if (date-col column-vector)
>>(addto! heading-list (_ "Data/Fecha")))
>>(if (description-col column-vector)
>>(addto! heading-list (_ "Azalpena/DescripciĆ³n")))
>>(if (action-col column-vector)
>>  (addto! heading-list (_ "Charge Type")))
>>(if (quantity-col column-vector)
>>  (addto! heading-list (_ "Kop./Cant.")))
>>(if (price-col column-vector)
>>  (addto! heading-list (_ "Prezioa/Precio")))
>>(if (discount-col column-vector)
>>  (addto! heading-list (_ "Dtua./Dto.")))
>>(if (tax-col column-vector)
>>  (addto! heading-list (_ "Taxable")))
>>(if (taxvalue-col column-vector)
>>  (addto! heading-list (_ "Tax Amount")))
>>(if (value-col column-vector)
>>  (addto! heading-list (_ "Zenbat./Importe")))
>>(reverse heading-list)))
> 

We do have a Basque translation, it just hasn't been updated in 15 years:
> msgfmt --statistics po/eu.po
> 1527 translated messages, 2545 fuzzy translations, 1351 untranslated messages.
> 

It's vastly easier and more robust to fix any missing or fuzzy translations, 
recompile it, and install it into share/locale/eu/LC_MESSAGES than to mess with 
the report or stylesheet code. Detailed instructions at 
https://wiki.gnucash.org/wiki/Translation. We'd love it if you'd share your 
updated translation with us.

Regards,
John Ralls


___
gnucash-user mailing list
gnucash-user@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.