diff options
author | Damien Picard <dam.pic@free.fr> | 2022-07-16 21:39:30 +0300 |
---|---|---|
committer | Damien Picard <dam.pic@free.fr> | 2022-08-28 16:00:09 +0300 |
commit | 0b6aaad9be3862f98fe4acc376a084c95f531669 (patch) | |
tree | f397005078b93f26cbb18152e51614038000d048 /animation_animall | |
parent | 0e3978e17a45b95ad746b8090ac11fafc9ba6886 (diff) |
AnimAll and Sun Position: update translations for regeneration ease
Bring back the auto-generated block delimiters
Also: sort unregister() in reverse order to register()
Diffstat (limited to 'animation_animall')
-rw-r--r-- | animation_animall/__init__.py | 4 | ||||
-rw-r--r-- | animation_animall/translations.py | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/animation_animall/__init__.py b/animation_animall/__init__.py index 1ff7bc69..3088a1a6 100644 --- a/animation_animall/__init__.py +++ b/animation_animall/__init__.py @@ -662,14 +662,12 @@ def register(): register_classes() bpy.types.Scene.animall_properties = bpy.props.PointerProperty(type=AnimallProperties) update_panel(None, bpy.context) - bpy.app.translations.register(__name__, translations.translations_dict) def unregister(): + bpy.app.translations.unregister(__name__) del bpy.types.Scene.animall_properties unregister_classes() - bpy.app.translations.unregister(__name__) - if __name__ == "__main__": register() diff --git a/animation_animall/translations.py b/animation_animall/translations.py index 9ced1807..f81dd7c2 100644 --- a/animation_animall/translations.py +++ b/animation_animall/translations.py @@ -1,11 +1,16 @@ # SPDX-License-Identifier: GPL-2.0-or-later +# ##### BEGIN AUTOGENERATED I18N SECTION ##### +# NOTE: You can safely move around this auto-generated block (with the begin/end markers!), +# and edit the translations by hand. +# Just carefully respect the format of the tuple! + # Tuple of tuples: # ((msgctxt, msgid), (sources, gen_comments), (lang, translation, (is_fuzzy, comments)), ...) translations_tuple = ( (("*", ""), ((), ()), - ("fr_FR", "Project-Id-Version: AnimAll 0.9.6 (0)\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2022-06-24 00:41:10.347798\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL@ADDRESS>\nLanguage-Team: LANGUAGE <LL@li.org>\nLanguage: __POT__\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit", + ("fr_FR", "Project-Id-Version: AnimAll 0.9.6 (0)\n", (False, ("Blender's translation file (po format).", "Copyright (C) 2022 The Blender Foundation.", @@ -248,3 +253,5 @@ for msg in translations_tuple: for lang, trans, (is_fuzzy, comments) in msg[2:]: if trans and not is_fuzzy: translations_dict.setdefault(lang, {})[key] = trans + +# ##### END AUTOGENERATED I18N SECTION ##### |