You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work on interactive plots for a German website. Luckily, opts_toolbar(tooltips = list()) takes my translations for a seamless user experience entirely in German. Well, not quite.
What goes wrong
Unfortunately, the custom tooltip label for zoom_offdoes not appear in the plot toolbar! Instead, I see the English default label. All other custom tooltip labels are visible. Not sure what I mean? Please look at your book example or my screenshots below.
Screenshots
English default tooltip appears for zoom_off (crossed out magnifier):
Custom tooltip appears for zoom_on (empty magnifier):
All my custom labels are embedded in the HTML output, but the one for zoom_off apparently is ignored/not used somewhere else in your code:
For now, I force my German label with a literally radical approach: In the <head>of the htmlwidgets::saveWidget()ed HTML code, I search and replace the English default string with my custom tooltip string.
What I do
I work on interactive plots for a German website. Luckily,
opts_toolbar(tooltips = list())
takes my translations for a seamless user experience entirely in German. Well, not quite.What goes wrong
Unfortunately, the custom tooltip label for
zoom_off
does not appear in the plot toolbar! Instead, I see the English default label. All other custom tooltip labels are visible. Not sure what I mean? Please look at your book example or my screenshots below.Screenshots
English default tooltip appears for
zoom_off
(crossed out magnifier):Custom tooltip appears for
zoom_on
(empty magnifier):All my custom labels are embedded in the HTML output, but the one for
zoom_off
apparently is ignored/not used somewhere else in your code:How to escape
For now, I force my German label with a literally radical approach: In the
<head>
of thehtmlwidgets::saveWidget()
ed HTML code, I search and replace the English default string with my custom tooltip string.How to reproduce
zoom_on
button (empty magnifier) in the toolbar to enter panning/zoom mode.zoom_off
button (crossed out magnifier) to trigger the English default tooltip.Created on 2023-07-28 with reprex v2.0.2
Session info
Could you please have a look into this? Many thanks for your work! Great package!
Kind regards
Maximilian
When submitting a new issue:
Provide the code that is producing the error, it has to be a minimal reproducible example.
Provide the results of R command
sessionInfo()
.Make sure you did checked you had the latest version of the package on CRAN (and on github if issue exists with CRAN version).
Make sure you searched in the open and closed issues on the github repository.
The text was updated successfully, but these errors were encountered: