Is it possible to change decimal and thousands separators?

2,289 views
Skip to first unread message

Vitor Freire

unread,
Jul 28, 2021, 9:47:11 PM7/28/21
to oTree help & discussion
Hi Chris,
In my country the decimal separator is comma instead of point, and thousands are separated by points instead of commas. Is it possible to change this?

Another question related, is it possible to change the next button's text (same for "send" button in the chat), so I can put it in the local language?

Thanks a lot.

Chris @ oTree

unread,
Jul 28, 2021, 11:41:49 PM7/28/21
to Vitor Freire, oTree help & discussion
This is determined by LANGUAGE_CODE in your settings. But oTree has not been translated to every language. What is your language ?

Sent from my phone

On Jul 28, 2021, at 7:47 PM, Vitor Freire <vit...@gmail.com> wrote:

Hi Chris,
In my country the decimal separator is comma instead of point, and thousands are separated by points instead of commas. Is it possible to change this?

Another question related, is it possible to change the next button's text (same for "send" button in the chat), so I can put it in the local language?

Thanks a lot.

--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/0ec0ab3e-bcba-4479-8fd9-3a84bb817779n%40googlegroups.com.

Vitor Freire (vitorbsfreire@gmail.com)

unread,
Jul 29, 2021, 8:25:13 AM7/29/21
to Chris @ oTree, oTree help & discussion
Ah, ok. The language I need is portuguese (Brazil). 

Chris @ oTree

unread,
Jul 29, 2021, 9:09:34 AM7/29/21
to Vitor Freire (vitorbsfreire@gmail.com), ch...@otree.org, oTree help & discussion
If you set LANGUAGE_CODE to "es" it won’t fix the text but at least you will get the comma decimal separator. 

Sent from my phone

On Jul 29, 2021, at 6:25 AM, Vitor Freire (vitorb...@gmail.com) <vitorb...@gmail.com> wrote:



Vitor Freire

unread,
Jul 29, 2021, 11:26:21 AM7/29/21
to oTree help & discussion
Yes, thanks Chris.
I've tried also with "pt-br" (brazilian portuguese) and "pt" (generic portuguese) and it helps to fix the comma/point thing.
The text is not a big issue in my case (my intended audience won't have problem with few common words in english), but looking forward to have the possibility to have it in portuguese in the future. Also, if otree staff needs help with the translation to portuguese, I might be able to help with that (I suppose). Just let me know.

Thanks again.

Reply all
Reply to author
Forward
0 new messages