News:

AbanteCart v1.4.2 is released.

Main Menu

How to translate names of currencies?

Started by OneMore, December 30, 2023, 06:03:46 AM

Previous topic - Next topic

OneMore

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 ?


OneMore

#1
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.

abantecart

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
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Forum Rules Code of conduct
AbanteCart.com 2010 -