How to Change Default GST to HST views for Ontario

If you’re using Dolibarr in Ontario with en_CA language files and would like to change the default views and printouts to show HST instead of GST, edit the following files.

Edit /htdocs/langs/en_CA/main.lang

AmountVAT=Amount HST[/b] AmountLT1=Amount PST TotalVAT=Total HST TotalLT1=Total PST VAT=HST VATRate=HST rate

Edit /htdocs/langs/en_CA/companies.lang

[code]
VATIsUsed=HST is used
VATIsNotUsed=GST is not used
LocalTax1IsUsedES=PST is used
LocalTax1IsNotUsedES=GST is not used

VATIntra=HST number
VATIntraShort=HST number
VATIntraVeryShort=HST[/code]

with new version no need to change language files so you can upgrade and still have you changes. Can add in Setup-translation

1 Like

Thank you quid. I’ve been manually changing after every upgrade and worked like a charm for today’s 6.0.4 update :happy:

To make the permanent changes to the lang files as noted by quid, go to Setup > Translation > Current language set to en_CA then modify the “Key” and “New translation string to show” as shown in the image below.

Not sure why the image didn’t appear above so go to Setup > Translation > if your current language is set to en_CA add each Key and New translation string to show as shown below.

[code]
Lang Key New translation string to show

en_CA AmountVAT Amount HST
en_CA NoVAT No HST for this sale
en_CA OptionVatMode HST due
en_CA TotalVAT Total HST
en_CA VAT HST
en_CA VATRate HST Rate
en_CA VATIsUsed HST is used
en_CA VATIntra HST Number
en_CA VATIntraShort HST Number
en_CA VATManagement HST Management
en_CA OptionVatMode HST due[/code]

Also, like Ontario, New Brunswick, Newfoundland and Labrador, Nova Scotia, Prince Edward Island only use HST as well.