show EUR instead €
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- DavideBrocca1
- Posts: 2
- Joined: 13 Sep 2023, 08:23
show EUR instead €
Hi, I have the site in Italian, and it shows me the writing EUR instead of the € symbol, creating some graphic errors. If instead I set the site in English the symbol appears correctly, but obviously I need the site in Italian. How can I solve it?
I'm using
php_version: "8.1"
aimeos/aimeos-laravel: "2023.04"
Laravelframework: "^10.10"
I'm using
php_version: "8.1"
aimeos/aimeos-laravel: "2023.04"
Laravelframework: "^10.10"
Re: show EUR instead €
There's no translation file for currency symbols for Italian (like for EN and other languages):
https://github.com/aimeos/aimeos-core/b ... ency/en.po
You can add a translation in your ./config/shop.php instead:
https://github.com/aimeos/aimeos-core/b ... ency/en.po
You can add a translation in your ./config/shop.php instead:
Code: Select all
'i18n' => [
'it' => [
'currency' => [
'EUR' => ['€']
]
]
]
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- DavideBrocca1
- Posts: 2
- Joined: 13 Sep 2023, 08:23
Re: show EUR instead €
thank you so much ! it works.
Is there a way to make the symbol appear before the writing?
Is there a way to make the symbol appear before the writing?
- Attachments
-
- Screenshot 2023-09-13 alle 12.14.05.png (16.49 KiB) Viewed 24299 times
Re: show EUR instead €
You can change the order via translation too:
See also: https://github.com/aimeos/ai-client-htm ... ce.php#L55
But that's only half of the truth. There are places in the JS code where the order of price value and currency symbol is determined by the browser and the locale and that is harder to change.
Code: Select all
'i18n' => [
'it' => [
'client' => [
'%1$s %2$s' => ['%2$s %1$s']
]
]
]
See also: https://github.com/aimeos/ai-client-htm ... ce.php#L55
But that's only half of the truth. There are places in the JS code where the order of price value and currency symbol is determined by the browser and the locale and that is harder to change.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- DavideBrocca
- Posts: 2
- Joined: 30 Jun 2023, 08:23
Re: show EUR instead €
thanks for the answer but it doesn't work. this is my code, it's right?
- Attachments
-
- Screenshot 2023-09-18 alle 14.45.50.png (44.57 KiB) Viewed 23517 times
Re: show EUR instead €
Sorry, in the code from the template the link points to prefers another translation first:
Code: Select all
'i18n' => [
'it' => [
'client/code' => [
'price:default' => ['%2$s %1$s']
]
]
]
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star