Il 25/10/24 10:03, David C. Partridge ha scritto:
While I applaud the thought of using std::format where appropriate, I
can't see what converting the existing tr() mechanism to that will gain
Qt Development or Qt Users

One would be the compile-time check on the format strings and its replacements.

Another, arguably, to avoid mix and match of %n and {} if you want to translate with a plural replacement and then use std::format into the translated string?

  tr("{} bought %n apples", n).format(name);



My 2 c,
--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - Trusted Software Excellence

Attachment: smime.p7s
Description: Firma crittografica S/MIME

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to