sal0max / currencies

An exchange rates currency converter for Android
GNU General Public License v3.0
227 stars 23 forks source link

Display the currency symbol before or after the amount, depending on language #41

Closed biuklija closed 1 year ago

biuklija commented 1 year ago

In many languages, the currency symbol or the ISO code follow the amount, not precede it, i.e. 23,1 € or 1$, more information here. Additionally, Croatian has a whitespace before the symbol. Would it be possible to implement this on the main screen, the same way decimal point and separator are handled in the translation?

sal0max commented 1 year ago

Thanks for bringing this up. Definitely something I can imagine. Will try it out a bit how it feels.

sal0max commented 1 year ago

Update: Has been quite some work. Much more than anticipated, to be honest.
But much worth the effort.

Changes will be included in the next release.

The current implementation doesn't rely on translators for grouping and decimal separators any more. Both information just like the position of the symbol is derived by platform methods, now.