Fix T68789: Do not use new python format strings thingy in UI code.
This is 100% incompatible with translation...
This commit is contained in:
parent
be002bb57f
commit
207f2137dd
Notes:
blender-bot
2023-02-14 08:29:54 +01:00
Referenced by issue #68789, 'Zoom d:d' strange string
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue