Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-06-25 18:26:56 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-06-25 18:26:56 +0300
commit787e2ddbd765609b6b0992585815c4d00e7419bf (patch)
tree810658da94b0cfcdfc6b02a8707fcedc3935f36a /release/scripts/startup/bl_ui/properties_output.py
parent24b47c00eaabe12b5262b59a185da154a477bd98 (diff)
Fix T66065: Missing text in the UI translations files due to 'fstring' usages.
Am not even sure that it is possible to use fstrings at all when UI translation is required (that is, is a sensible, reasonable way that does not make things even more complicated than they already are), but one thing is certain, this won't be trivial to get it working, so definitively not a job for now. Instead just do not use fstrings for UI translatable strings.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_output.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_output.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_output.py b/release/scripts/startup/bl_ui/properties_output.py
index 7a05f13b9f2..9a710fd9419 100644
--- a/release/scripts/startup/bl_ui/properties_output.py
+++ b/release/scripts/startup/bl_ui/properties_output.py
@@ -22,6 +22,8 @@ import bpy
from bpy.types import Menu, Panel, UIList
from bl_ui.utils import PresetPanel
+from bpy.app.translations import pgettext_tip as tip_
+
class RENDER_PT_presets(PresetPanel, Panel):
bl_label = "Render Presets"
@@ -81,10 +83,10 @@ class RENDER_PT_dimensions(RenderOutputButtonsPanel, Panel):
custom_framerate = (fps_rate not in {23.98, 24, 25, 29.97, 30, 50, 59.94, 60})
if custom_framerate is True:
- fps_label_text = f"Custom ({fps_rate!r} fps)"
+ fps_label_text = tip_("Custom (%.4g fps)") % fps_rate
show_framerate = True
else:
- fps_label_text = f"{fps_rate!r} fps"
+ fps_label_text = tip_("%.4g fps") % fps_rate
show_framerate = (preset_label == "Custom")
RENDER_PT_dimensions._frame_rate_args_prev = args