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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render_copy_settings/__init__.py6
-rw-r--r--render_copy_settings/translations.py4
2 files changed, 6 insertions, 4 deletions
diff --git a/render_copy_settings/__init__.py b/render_copy_settings/__init__.py
index 62b0ab30..42003048 100644
--- a/render_copy_settings/__init__.py
+++ b/render_copy_settings/__init__.py
@@ -90,7 +90,8 @@ def register():
bpy.types.Scene.render_copy_settings = PointerProperty(type=RenderCopySettings)
bpy.utils.register_module(__name__)
- bpy.app.translations.register(__name__, translations.translations_dict)
+ if hasattr(bpy.app, "translations"):
+ bpy.app.translations.register(__name__, translations.translations_dict)
def unregister():
@@ -101,7 +102,8 @@ def unregister():
del bpy.types.Scene.render_copy_settings
bpy.utils.unregister_module(__name__)
- bpy.app.translations.unregister(__name__)
+ if hasattr(bpy.app, "translations"):
+ bpy.app.translations.unregister(__name__)
if __name__ == "__main__":
diff --git a/render_copy_settings/translations.py b/render_copy_settings/translations.py
index da9afc1e..9d4bf667 100644
--- a/render_copy_settings/translations.py
+++ b/render_copy_settings/translations.py
@@ -20,9 +20,9 @@
# Tuple of tuples (key, (sources, comments), (lang, translation, (is_fuzzy, comments)), ...)
translations_tuple = (
- (("", "Allows to copy a selection of render settings from current scene to others."),
+ ((None, "Allows to copy a selection of render settings from current scene to others."),
((), ()),
- ("fr", "Permet de copier une sélection des réglages de rendu depuis la scène courante vers d’autres scènes",
+ ("fr", "Permet de copier une sélection des réglages de rendu depuis la scène courante vers d’autres scènes.",
(False, ())),
),
)