- Posts: 25
- Thank you received: 0
How to translate tax rates ?
- mireille76
-
Topic Author
- Offline
Less
More
10 years 9 months ago #224100
by mireille76
How to translate tax rates ? was created by mireille76
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.6
Hi,
Is it possible to translate the tax rates ?
I created different tax rates (i.e. VAT 4%, VAT 12%, ...) and I want to have the detailed tax rates shown at the end of orders. This works fine, but I don't know how to translate "VAT 4%" ...
Thank you in advance for your answer.
Mireille
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.6
Hi,
Is it possible to translate the tax rates ?
I created different tax rates (i.e. VAT 4%, VAT 12%, ...) and I want to have the detailed tax rates shown at the end of orders. This works fine, but I don't know how to translate "VAT 4%" ...
Thank you in advance for your answer.
Mireille
Please Log in or Create an account to join the conversation.
10 years 9 months ago #224109
by nicolas
Replied by nicolas on topic How to translate tax rates ?
Hi,
There is no system to translate the tax rates.
You would have to edit all the places where tax_namekey is displayed and add a JText::_() on it in order to be able to add translation overrides on the namekey of the rate.
It's not a problem if your a developer.
For example, for the checkout cart display, you would edit the file "cart" of the view "checkout" via the menu Display>Views and change the line:
<?php echo $tax->tax_namekey; ?>
to:
<?php echo JText::_($tax->tax_namekey); ?>
Then, if your namekey is VAT, you could just add such translation override:
VAT="TVA"
There is no system to translate the tax rates.
You would have to edit all the places where tax_namekey is displayed and add a JText::_() on it in order to be able to add translation overrides on the namekey of the rate.
It's not a problem if your a developer.
For example, for the checkout cart display, you would edit the file "cart" of the view "checkout" via the menu Display>Views and change the line:
<?php echo $tax->tax_namekey; ?>
to:
<?php echo JText::_($tax->tax_namekey); ?>
Then, if your namekey is VAT, you could just add such translation override:
VAT="TVA"
The following user(s) said Thank You: mireille76
Please Log in or Create an account to join the conversation.
- mireille76
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 0
10 years 9 months ago #224231
by mireille76
Replied by mireille76 on topic How to translate tax rates ?
Hi,
Thank you, this worked fine !
Have a nice day and thanks gain,
Mireille
Thank you, this worked fine !
Have a nice day and thanks gain,
Mireille
Please Log in or Create an account to join the conversation.
Time to create page: 0.158 seconds