mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
PLUGINS.md: Avoid an example implying plugins can set main status text
The 'Error messages' section lays out how to get a message into the main UI status area, and it does *not* say to try setting it directly.
This commit is contained in:
parent
963b115e0e
commit
991f69044c
@ -1138,7 +1138,7 @@ _ = functools.partial(l10n.Translations.translate, context=__file__)
|
||||
Wrap each string that needs translating with the `_()` function, e.g.:
|
||||
|
||||
```python
|
||||
status["text"] = _('Happy!') # Main window status
|
||||
somewidget["text"] = _("Happy!")
|
||||
```
|
||||
|
||||
If you display localized strings in EDMarketConnector's main window you should
|
||||
|
Loading…
x
Reference in New Issue
Block a user