id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 14164 Automatic localization of numbers (L10N) in templates can cause invalid sitemap priorities Mathijs de Bruin nobody "When specifying priorities for a sitemap as a float (as is suggested by the official documentation) and `USE_L10N = True`, it can happen that requested sitemaps contain comma's in the priority values for items when the server detects certain locales. As the sitemaps specification requires a dot as a separator for float values this yields an invalid sitemap and has been confirmed to prohibit the indexing of certain sites. The problem can be reproduced as follows: 1. Make sure `USE_L10N = True` in `settings.py`. 2. Create a Sitemap object with a priority and expose it somewhere in the URL space. (For example: `priority = 0.5`) 3. Request the sitemap with a browser for which the decimal separator is something other than a dot. (This holds for many European locales.) 4. Priority value should now be rendered wrongly. (For example: `0,5`) As this problem is likely to occur for other situations where templates are used to render machine-parseable content, a structural solution should be in order. " closed Internationalization 1.2 fixed internationalization L10N sitemaps comma Unreviewed 1 0 0 1 0 0