diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/bpy.app.translations.py | 2 | ||||
-rw-r--r-- | doc/python_api/examples/bpy.types.WindowManager.popup_menu.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/python_api/examples/bpy.app.translations.py b/doc/python_api/examples/bpy.app.translations.py index 2c21bb54ba9..01d5a987215 100644 --- a/doc/python_api/examples/bpy.app.translations.py +++ b/doc/python_api/examples/bpy.app.translations.py @@ -4,7 +4,7 @@ Intro .. warning:: Most of this object should only be useful if you actually manipulate i18n stuff from Python. - If you are a regular addon, you should only bother about :const:`contexts` member, + If you are a regular addon, you should only bother about :const:`contexts` member, and the :func:`register`/:func:`unregister` functions! The :func:`pgettext` family of functions should only be used in rare, specific cases (like e.g. complex "composited" UI strings...). diff --git a/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py b/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py index c1887d8b41d..df591521440 100644 --- a/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py +++ b/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py @@ -8,6 +8,7 @@ Note that they will not block the scripts execution, so the caller can't wait fo import bpy + def draw(self, context): self.layout.label("Hello World") |