hupe13
hupe13
You are using [`_e()`](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/). When you publish the development tree (trunk) or the stable Release the translators will see this [here](https://translate.wordpress.org/projects/wp-plugins/leaflet-map/). I see the shortcode helper page in German, except...
Actually you don't need a pot file at all, as far as I understand it. I do not have one in my plugin.
> You are using [_e()](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/). The statement is incomplete. Must be: You are using [_e()](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/) with a text domain.
It is not a reset button, but a possibility, I use: ```php if ($setting != $option['default'] ) { echo __("Plugins Default:", "extensions-leaflet-map").' '. $option['default'] . ''; } ``` or similar.
I'm sorry, I merged two things. > You're getting br tags after your script tags? Yes. We are using shortcodes. The users write more than one shortcode in one shortcode...
After I found the solution, it's very simple: ```php label.text(items.length ? L._((items[idx][0].toUpperCase() + items[idx].slice(1))) : ''); ```
Maybe is it to late: hideMarkerOnCollapse does the job. But there is an other problem with it. If I zoom the map, the circle appears again. To prevent this change...
I tested it again with my application, not that it is a special case. ... I changed my code, now sometimes it works and sometimes it doesn't. Sorry for trouble....
I don't remember what I did specifically that the circle is now gone. Maybe this: ```js markerSearchControl.on("search:cancel", function(e) { if (e.target.options.hideMarkerOnCollapse) { //console.log(e.target._map); e.target._map.removeLayer(this._markerSearch); } }); ```
Do you know this [example](https://leafext.de/extra/leaflet-geosearch/)?