Fix T68789: Do not use new python format strings thingy in UI code.

This is 100% incompatible with translation...
This commit is contained in:
Bastien Montagne 2019-08-20 17:26:46 +02:00
parent be002bb57f
commit 207f2137dd
Notes: blender-bot 2023-02-14 08:29:54 +01:00
Referenced by issue #68789, 'Zoom d:d' strange string
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class IMAGE_MT_view_zoom(Menu):
layout.operator(
"image.view_zoom_ratio",
text=iface_(f"Zoom {a:d}:{b:d}"),
text=iface_("Zoom %d:%d") % (a, b),
translate=False,
).ratio = a / b

View File

@ -200,7 +200,7 @@ class SEQUENCER_MT_preview_zoom(Menu):
layout.operator(
"sequencer.view_zoom_ratio",
text=iface_(f"Zoom {a:d}:{b:d}"),
text=iface_("Zoom %d:%d") % (a, b),
translate=False,
).ratio = a / b
layout.operator_context = 'INVOKE_DEFAULT'