diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-08-20 18:26:46 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-08-20 18:48:32 +0300 |
commit | 207f2137dd0d46505eadceeb2ae3fdf0e02806d0 (patch) | |
tree | 34f2a32cf14b0f4565e4ae6c65c310cd48337464 /release/scripts/startup/bl_ui | |
parent | be002bb57fbdb95811de35dcfad8b724dd8977d6 (diff) |
Fix T68789: Do not use new python format strings thingy in UI code.
This is 100% incompatible with translation...
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 06505c54c9c..f24971347e1 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -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 diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index a4dc61af2a4..19a2ed4186b 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -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' |