[GH-ISSUE #416] [BUG] badge text messed up #312

Closed
opened 2026-02-25 23:41:59 +03:00 by kerem · 3 comments
Owner

Originally created by @LsHallo on GitHub (Aug 25, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/416

With the last 2 updates I've noticed that all of my badges look like this:
image
image

which is not correct.
I'm using the linuxserver docker image to self host.

Originally created by @LsHallo on GitHub (Aug 25, 2020). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/416 With the last 2 updates I've noticed that all of my badges look like this: ![image](https://user-images.githubusercontent.com/22171518/91204035-d1437a80-e703-11ea-87ec-5570c96ef66b.png) ![image](https://user-images.githubusercontent.com/22171518/91204066-d7d1f200-e703-11ea-8134-a1e112e22289.png) which is not correct. I'm using the linuxserver docker image to self host.
kerem closed this issue 2026-02-25 23:42:00 +03:00
Author
Owner

@cuu508 commented on GitHub (Aug 26, 2020):

Thanks for reporting this!

Do badges also look like this on healthchecks.io? How do they look in different browsers? Can you post an example of the generated SVG here?

<!-- gh-comment-id:680719680 --> @cuu508 commented on GitHub (Aug 26, 2020): Thanks for reporting this! Do badges also look like this on healthchecks.io? How do they look in different browsers? Can you post an example of the generated SVG here?
Author
Owner

@LsHallo commented on GitHub (Aug 26, 2020):

Here is the raw svg as a gist since github doesn't support uploading svg. https://gist.github.com/LsHallo/ee4c73baf364a03c93ccd19a6a30cc27

I have no clue if it looks the same on healthchecks.io I'm running my own version on my server. Have restarted the docker container and cleared my cache. Also tried firefox and chrome and still looks the same.

I should also say that it worked before.

<!-- gh-comment-id:680849140 --> @LsHallo commented on GitHub (Aug 26, 2020): Here is the raw svg as a gist since github doesn't support uploading svg. https://gist.github.com/LsHallo/ee4c73baf364a03c93ccd19a6a30cc27 I have no clue if it looks the same on healthchecks.io I'm running my own version on my server. Have restarted the docker container and cleared my cache. Also tried firefox and chrome and still looks the same. I should also say that it worked before.
Author
Owner

@cuu508 commented on GitHub (Aug 26, 2020):

Managed to reproduce the isssue.

With USE_L10N = True, in some locales the decimal values in templates get formatted as 15,0, not 15.0. This results in broken SVG.

There are problems in other places too, for example the sliders in the "Edit Timeout & Grace Time" dialog don't initialize properly.

I'll change USE_L10N back to False. We can set it to True after we've caught and fixed this and similar issues.

@LsHallo if you can modify local_settings.py, as a short term fix you can put USE_L10N = False there.

<!-- gh-comment-id:680865214 --> @cuu508 commented on GitHub (Aug 26, 2020): Managed to reproduce the isssue. With `USE_L10N = True`, in some locales the decimal values in templates get formatted as `15,0`, not `15.0`. This results in broken SVG. There are problems in other places too, for example the sliders in the "Edit Timeout & Grace Time" dialog don't initialize properly. I'll change `USE_L10N` back to `False`. We can set it to `True` after we've caught and fixed this and similar issues. @LsHallo if you can modify `local_settings.py`, as a short term fix you can put `USE_L10N = False` there.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#312
No description provided.