German Format

  • amaier161
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #7569 by amaier161
German Format was created by amaier161
Hi Support Team,

I just wonder whether it is possible to change the format of the amounts. Because in Germany we use "," instead of ".".

So "1.00" would be "1,00" or better "1,-". Is this possible?

Thanks in advance, Alex

Please Log in or Create an account to join the conversation.

  • amaier161
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #7596 by amaier161
Replied by amaier161 on topic Re: German Format
No ideas / solution for this topic?

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #7613 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: German Format
Hi

Unfortunately, in the current version, the format for amount is hardcoded to use "." character as the seperator . I will make it configurable for the next release .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • amaier161
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #7615 by amaier161
Replied by amaier161 on topic Re: German Format
Thanks. Is it possible to change it in the code?

Regards, Alex

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #7616 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: German Format
Hi Alex

If you know PHP, then the answer is Yes :

1. You need to know how to use number_format function in PHP ( php.net/manual/en/function.number-format.php ) .

2. Search for number_format function in the code. Some files you need to look at is :


components/com_jdonation/views/donation/tmpl/default.php

components/com_jdonation/views/confirmation/tmpl/default.php

components/com_jdonation/views/confirmation/tmpl/recurring.php

components/com_jdonation/helper/helper/helper.php

Hope this help !

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • amaier161
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #7632 by amaier161
Replied by amaier161 on topic Re: German Format
Found the strings, changed it and it works (till now :blink: :-))

THX, Alex

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #7917 by herzenssache
Replied by herzenssache on topic Re: German Format
Hi,

we also would require this change, but I prefer not to change the files... Looking forward to the update :)

all the best,
Matthias
herzenssache.org

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #7919 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: German Format
Will try to make the format of the amount configurable in the next release !

Thanks,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamDang Dam