mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-08 02:02:33 +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:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user