From 3ff36f928c008aa5c0f114ec0f3b83f1db85766a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 27 Jun 2013 04:18:01 +0000 Subject: 3d text tool - 'insert lorem' was crashing, also add this to the text menu. --- doc/python_api/examples/bpy.app.translations.py | 2 +- doc/python_api/examples/bpy.types.WindowManager.popup_menu.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/python_api') 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") -- cgit v1.2.3