diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-25 18:26:56 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-25 18:26:56 +0300 |
commit | 787e2ddbd765609b6b0992585815c4d00e7419bf (patch) | |
tree | 810658da94b0cfcdfc6b02a8707fcedc3935f36a /intern/cycles/blender | |
parent | 24b47c00eaabe12b5262b59a185da154a477bd98 (diff) |
Fix T66065: Missing text in the UI translations files due to 'fstring' usages.
Am not even sure that it is possible to use fstrings at all when UI
translation is required (that is, is a sensible, reasonable way that
does not make things even more complicated than they already are), but
one thing is certain, this won't be trivial to get it working, so
definitively not a job for now.
Instead just do not use fstrings for UI translatable strings.
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r-- | intern/cycles/blender/addon/operators.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/operators.py b/intern/cycles/blender/addon/operators.py index 63c61c4799e..e75d3ab7549 100644 --- a/intern/cycles/blender/addon/operators.py +++ b/intern/cycles/blender/addon/operators.py @@ -20,6 +20,8 @@ import bpy from bpy.types import Operator from bpy.props import StringProperty +from bpy.app.translations import pgettext_tip as tip_ + class CYCLES_OT_use_shading_nodes(Operator): """Enable nodes on a material, world or light""" @@ -98,7 +100,8 @@ class CYCLES_OT_denoise_animation(Operator): if not os.path.isfile(filepath): scene.render.filepath = original_filepath - self.report({'ERROR'}, f"Frame '{filepath}' not found, animation must be complete.") + err_msg = tip_("Frame '%s' not found, animation must be complete") % filepath + self.report({'ERROR'}, err_msg) return {'CANCELLED'} scene.render.filepath = out_filepath |