thousand separator problem.

Hi all.
I need to use “.” dot as thousand separator and “,” as decimal separator.
I have declared it in main.lang file and everything seems to be working until I edit any value in bank transaction tab (ligne.php) (date, or type etc) transaction is updated wit it´s value modified, dot is considered as decimal separator and of course number is very different…
I need to know were I can fix it.
Any one could give me right direction to set permanently dot as thousand separator and comma as decimal separator?
Many thanks in advance.
regards
alejandro

Can you provide me full url showing into browser when you enter your value.

Thanks Eldy
Here is url…
/doli/htdocs/compta/bank/ligne.php?rowid=9930

another info:
this happens only when browser and Dolibarr are using ES_AR (at my partner’s computer…)

I think problem could be in regional config of his Computer…
I’ll check again…

I’ll give another round of tests and repport back here.
Regards
Alejandro

In which file did you change SeparatorThousand (en_US, es_ES or do you add a es_AR) ?
Also do you have problem on other page than bank/ligne ? of only bank/ligne ?

Hi Eldy…
As always I thank you a lot as you gave me the clue to solve this problem!
problem was that my partner had es-AR as deffault language but es_ES as per user default languaje so dolibarr was translating values between languajes.
I could discover this at Menu->Home->system info->Dolibarr:

Variable HTTP_ACCEPT_LANGUAGE es-AR
Idioma actual es_AR
Separador miles dot
Separador decimal ,
=> price2num(1233.56+1) 1234.56
=> price2num(‘1.234,56’) 1234.56
=> price(1234.56) 1.234,56

this was different in the other computer… and the second =>price2num was using dot as decimal separator.
You asked me the right question!
many thanks again.

By the way: file modified was main.lang, inside /langs/es_AR
“es_AR” is a folder I created in my system, based on es_ES.
That’s where I’m adjusting some terms to match our needs, as there are slight differences between some terms in Spain and Argentina… as soon as I have it more completed I’ll upload it to forum.
Regards
Alejandro

hola! podrías darme una mano? leo el post pero no logro resolver el problema

Hola,

Spanish is there : https://www.dolibarr.es/foro/