[Development] format-like tr()

Thiago Macieira thiago.macieira at intel.com
Wed Oct 23 20:26:32 CEST 2024


On Wednesday 23 October 2024 05:18:20 Pacific Daylight Time Mathias Hasselmann 
via Development wrote:
> std::format a field of permanent improvement, for instance we've got
> compile-time format-string parsing with C++20.

Which has low value for us. For the case of debugging, it's a meh. For 
translatable strings, since the string itself is runtime, there's little value 
in doing a compile-time evaluation.

It's TBD whether we can parse the template at compile time for some of the 
formatting options. See my original email for what translators are allowed to 
change in the template string.

If possible, yes, I'd like to confirm that the string you typed in the source 
has the correct number of replacement requirements as parameters were passed 
in. Then tooling can verify that the translators have done the correct job and 
not used more than what was present.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20241023/c902c2ff/attachment.bin>


More information about the Development mailing list