I18n: Use fmt::format() to replace string concatenation in nodes #107260

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_geo_nodes_tooltips_fmt into blender-v3.6-release 2023-06-06 16:27:56 +02:00

1 Commits

Author SHA1 Message Date
Damien Picard 015f915e62 18n: Use fmt::format() to replace string concatenation in nodes
buildbot/vexp-code-patch-coordinator Build done. Details
The UI code for nodes uses `stringstream`s a few times to format
strings. In some cases it is fine, but in others it makes localization
hard or impossible to do properly, as explained in #92758.

This commit replaces some `stringstreams` by `fmt::format()`, a
library that is already used in other parts of Blender and was
suggested by Hans Goudey (@hooglyboogly) in
[D15996](https://archive.blender.org/developer/differential/0015/0015996/#inline-138440).
2023-05-26 21:00:53 +02:00