Fix T68789: Do not use new python format strings thingy in UI code.
This is 100% incompatible with translation...
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user