Jump to content

Currency translation issue


sucknorris

Recommended Posts

Hello together,

i am setting up existing shop in localhost to make it ready for the new update. (PS 8 )

Now i have a "translation" problem with the format with the currencies.

I have following currencies in my shop: curs.thumb.png.2e3fb734d24a93d02fd9112f46153a4f.png

 

Lets say i want to edit the format for euro to each language my shop has, in this example i will use the french language

curs-ov.thumb.png.bbc95cc9e6e3ea59e518303c46a20281.pngcurs-fr.png.528a808004f651e6bd024ce1974b0716.png

 

The Format for the french language is 14 251 999,42 €

But if check for example to english it is like this "14,251,999.42 €"

 

It seems like there are the characters missing, i can add it somewhere in the translation or i need to edit the core files?

 

Thanks

 

Edited by sucknorris (see edit history)
Link to comment
Share on other sites

Generally the price is displayed like 14 251 999,42 €, not like "14,251,999.42 €" (including double Quote)

Even we have checked the same at our end and it works fine, as displayed like 14 251 999,42 €,

If you want to show the price inside the double quotes then you can so the same by editing the below core file (Note: It will change the same everywhere including admin as well as front end)

replace

return $locale->formatPrice($price, $currencyCode);

with

return '"'.$locale->formatPrice($price, $currencyCode).'"';

in class/Tools.php, function  : displayPrice()

Link to comment
Share on other sites

Thanks,

but its not about the double Quote its more about the , and .

e.g. for certain languages its like this 14 251 999,42 but it should be like this 14,251,999.42 € and its weird that it is showing for some languages correctly and for some wrong

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...