Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indeterminable locale in export files #153

Open
Zimbelstern opened this issue Jun 7, 2023 · 1 comment
Open

Indeterminable locale in export files #153

Zimbelstern opened this issue Jun 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Zimbelstern
Copy link
Contributor

Debian bookworm with gourmand deb package 1.1.0+really1.1.0~rc3-3

When exporting to XML or plain text file, Gourmand uses
a) unlocalised numbers (with dot separator) with translated words
<rating>5.0/5 Sterne</rating>
b) localised numbers with untranslated words
<preptime>0,50 hours</preptime>
c) and sometimes even a dot as a thousands separator
<amount>1.000</amount>
all in the same file.

Localised number formatting causes the floats to be unusable by other programs as the locale is unknown and can not always be determined. I suggest using only dots as decimal separators in exports or to indicate the locale in the file with an attribute (like lang attribute in HTML).

@FriedrichFroebel
Copy link
Contributor

Thanks for the report. Feel free to submit a corresponding PR.

@FriedrichFroebel FriedrichFroebel added the enhancement New feature or request label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants