I18n: fix printf-style format translation in release/scripts/startup

Many reports and a few labels used string formatting without
explicitly calling tip_() or iface_(), so the untranslated message
was used instead of the translated one, even when it was extracted.

Differential Revision: https://developer.blender.org/D16405
This commit is contained in:
Damien Picard
2022-11-16 12:06:14 +01:00
committed by Bastien Montagne
parent 2683b74cb3
commit f415051a57
20 changed files with 139 additions and 103 deletions

View File

@@ -6,6 +6,7 @@ from mathutils import (
Vector,
Matrix,
)
from bpy.app.translations import pgettext_tip as tip_
def CLIP_spaces_walk(context, all_screens, tarea, tspace, callback, *args):
@@ -193,7 +194,7 @@ class CLIP_OT_filter_tracks(Operator):
def execute(self, context):
num_tracks = self._filter_values(context, self.track_threshold)
self.report({'INFO'}, "Identified %d problematic tracks" % num_tracks)
self.report({'INFO'}, tip_("Identified %d problematic tracks") % num_tracks)
return {'FINISHED'}