feature request: feedback on %s inconsistencies in translations
-
Hi Tim,
I’m the developer of Complianz GDPR and Really Simple SSL.
Since the introduction of PHP 8 the printf and sprintf functions can cause fatal errors when the number of arguments do not match. As a result we’ve been seeing a rise in support questions after updates.
For example: a string like this:
Please see the %sprivacy statement%s
Can cause fatal errors in PHP 8 if a translator makes a mistake and types something like
Please see the %privacy statement%s
Or if the string changes, and the new string has a different number of arguments.
It would really help if Loco Translate could give feedback on this to translators, by counting the number of arguments in the string, and giving a notice if it doesn’t match.
Would be great if this can be added at some point!
Rogier
- The topic ‘feature request: feedback on %s inconsistencies in translations’ is closed to new replies.