refactor: Pick translated string after format

This passes the return value of _() directly to strprintf so the format
string can be checked at compile time in a future commit.
This commit is contained in:
MarcoFalke committed 2024-11-15 17:16:03 +01:00
1 parent ccc2d3abcd
commit faff8403f0
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ import re
import sys
FALSE_POSITIVES = [
("src/clientversion.cpp", "strprintf(_(COPYRIGHT_HOLDERS).translated, COPYRIGHT_HOLDERS_SUBSTITUTION)"),
("src/clientversion.cpp", "strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION)"),
("src/test/translation_tests.cpp", "strprintf(format, arg)"),
]