WPIntell

Source evidence

% sign in translatable strings

Add to Home Screen & Progressive Web App · support · 2025-10-28T15:32:00+00:00

complaintsentiment
mediumseverity
0.8relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 35 rows with source links

14.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Knut Sparhell unresolved
Please don’t use % signs, except for sprintf placeholders, in translatable strings. They are hard to translate correctly since they indicate a placeholder, and translate.wordpress.org gives warnings. Especially %s (as in %site) or %d (as in %device). Tip: Use real printf placeholders with __( sprintf( 'My %s translatable string here', $arg ), 'domain' ) , or use str_replace with non printf placeholders, like {site_name} or #site_name . You may support old and new in a (long) transition period for en_US sites, since they are also stored in the settings. Hi Thanks a lot for the feedback! I just update the plugin and I replaced the placeholders from % to {} in translatable strings for better compatibility with WordPress translation system. Thanks again for your help!

Comments

2 shown
Knut Sparhell 2025-10-28T16:16:00+00:00

Tip: Use real printf placeholders with __( sprintf( 'My %s translatable string here', $arg ), 'domain' ) , or use str_replace with non printf placeholders, like {site_name} or #site_name . You may support old and new in a (long) transition period for en_US sites, since they are also stored in the settings.

Ziyad Bachalany 2025-10-31T00:37:00+00:00

Hi Thanks a lot for the feedback! I just update the plugin and I replaced the placeholders from % to {} in translatable strings for better compatibility with WordPress translation system. Thanks again for your help!