Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-05-14 22:16:37 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-05-14 22:16:37 +0400
commit6fc51bf20e48fd0565ccce928693455f6a12551c (patch)
tree9d67102c090150ee2e98951148736ebc7eabe405 /source/blender/python/intern/bpy_app_translations.c
parent8ef3c42f80c2227ece7500c809f44946467e6fab (diff)
Moved main part of bpy.app.translations doc out of C code, as suggested by Campell, thx.
Diffstat (limited to 'source/blender/python/intern/bpy_app_translations.c')
-rw-r--r--source/blender/python/intern/bpy_app_translations.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source/blender/python/intern/bpy_app_translations.c b/source/blender/python/intern/bpy_app_translations.c
index fd913192be8..782a05b68ce 100644
--- a/source/blender/python/intern/bpy_app_translations.c
+++ b/source/blender/python/intern/bpy_app_translations.c
@@ -705,36 +705,9 @@ static void app_translations_free(void *obj)
}
PyDoc_STRVAR(app_translations_doc,
-"Intro\n"
-"-----\n"
-"\n"
"This object contains some data/methods regarding internationalization in Blender, and allows every py script\n"
"to feature translations for its own UI messages.\n"
"\n"
-".. warning::\n"
-" Most of this object should only be useful if you actually manipulate i18n stuff from Python.\n"
-" If you are a regular addon, you should only bother about :const:`contexts` member, \n"
-" and the :func:`register`/:func:`unregister` functions!\n"
-"\n"
-"| To add translations to your python script, you must define a dictionary formatted like that:\n"
-"| ``{locale: {msg_key: msg_translation, ...}, ...}``\n"
-"| where:\n"
-"\n"
-"* locale is either a lang iso code (e.g. ``fr``), a lang+country code (e.g. ``pt_BR``),\n"
-" a lang+variant code (e.g. ``sr@latin``), or a full code (e.g. ``uz_UZ@cyrilic``).\n"
-"* msg_key is a tuple (context, org message) - use, as much as possible, the predefined :const:`contexts`.\n"
-"* msg_translation is the translated message in given language!\n"
-"\n"
-"Then, call ``bpy.app.translations.register(__name__, your_dict)`` in your ``register()`` function, and \n"
-"``bpy.app.translations.unregister(__name__)`` in your ``unregister()`` one.\n"
-"\n"
-"``bl_i18n_utils`` module has several functions to help you collect strings to translate, and generate the needed\n"
-"python code (the translation dictionary), as well as optional intermediary po files if you want some...\n"
-"See its documentation for more details.\n"
-"\n"
-"Module References\n"
-"-----------------\n"
-"\n"
);
static PyTypeObject BlenderAppTranslationsType = {
PyVarObject_HEAD_INIT(NULL, 0)