Closed kkmuffme closed 3 months ago
Please provide an actual reproduction case, i.e. all involved files + steps to perform with them.
Start with PHP:
<?php
_e( 'Welcome to %s portal', 'foo' );
...
in the de_DE.po translate the string as Willkommen bei % Portal
Again, can you please actually provide an actual reproduction case, i.e. all involved files + steps to perform with them? Not some censored half-quoted files, and vague hand-waving about what you did, provide actual files to check your settings and outputs, and detailed steps you did.
As expected, Poedit does in fact show an error in this case. xgettext
does correctly extract the string from the provided PHP snippet and flags it asphp-format
, and Poedit reports it:
When developers ask you to be precise, it's not to harass you, it's because you really don't describe the circumstances fully and they can't do much without full information. Going incommunicado in response only wastes everybody's time in the end.
Closing as not reproducible, absent non-vague reproduction instructions form the OP.
3.4.4
original:
translated:
It should a) report an error that it's missing the placeholder in the translation b) generally report errors when a single % is used, as in PHP 8 this will lead to a notice https://3v4l.org/En0lQ and it would be great if this could be caught early