Conversation
supportPlease 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!
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!