AbanteCart Community

eCommerce construction => How-to questions => Topic started by: OneMore on December 30, 2023, 06:03:46 AM

Title: How to translate names of currencies?
Post by: OneMore on December 30, 2023, 06:03:46 AM
Is there a way to translate currency names?

So far as I can see, the "currencies" table only contains one monolingual "title" field describing the currency and there is no "currencies_description" table.

----
N.B. I am using Abantecart 1.211. Possibly was this implemented in later versions ?

Title: Re: How to translate names of currencies?
Post by: OneMore on December 30, 2023, 01:32:30 PM
Easiest solution for me has been simply not displaying currency names.

This can be easily achieved by removing the two HTML tags containing $currency[ 'title' ]; in the currency template: "storefront/view/default/template/blocks/currency.tpl"

As all currencies do not have a symbol, for greater consistency, I also recommend replacing the two instances of $currency[ 'symbol' ]; by $currency[ 'code' ]; in currency.tpl.
Title: Re: How to translate names of currencies?
Post by: abantecart on December 31, 2023, 10:10:18 AM
I am sorry, but we do not support v1.2 any longer.

Currencies are not multilingual. If you do not what to see title, yes, you can disable it.
Rather than removing code, I suggest to create a setting and create a pull request to current dev version. We will review and include into future release.

If there is a demand, we can consider to make currencies multilingual or wait for someone to contribute the change.

Thank you