[openstreetmap/openstreetmap-website] Add Human facing error messages when users without WebGL use (PR #6782)
Frank Elsinga
notifications at github.com
Thu Feb 26 18:10:15 UTC 2026
@CommanderStorm commented on this pull request.
> @@ -0,0 +1,18 @@
+<div class="maplibre-error w-100 h-100 d-flex flex-column align-items-center justify-content-center text-center p-3 fs-5 lh-base bg-info-subtle text-info-emphasis" data-bs-theme="light">
+ <p class="maplibre-error-compact d-none position-absolute bottom-0 start-0 end-0 py-1 px-2 m-0 fw-bold">
+ <%= t("javascripts.map.webgl_error.compact_message") %>
+ </p>
+ <p class="d-none d-md-block">
+ <%= t("javascripts.map.webgl_error.description",
Ok, but lets do it like this instead.
Reason: `t(".` does not work with complex keys such as `webgl_error_pane.description`, only simple keys.
No clue why and also no clue how the translation system works truely.
```suggestion
<%= t("webgl_error_pane.description",
```
Side note: I was unable to find qqq in the codebase, must be somewhere external.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6782#discussion_r2860567956
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6782/review/3862742700 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260226/cc8418ea/attachment.htm>
More information about the rails-dev
mailing list