irmtfan wrote:
Now there is no standard for it too.
definitions are just definitions and it should be a rule for new developed modules that nothing is allowed like this:define('_MD_USER_POSTS', 'Posts: %s');
Why not?
Isn't the use of sprintf() better then doing concatenations? I though this was recommended by all other cms.
Quote from wordpress
http://codex.wordpress.org/Translating_WordPress
Quote:
Messages With Placeholders
Many messages contain special PHP formatting placeholders, which allow the insertion of untranslatable dynamic content into the message after it is translated. The PHP placeholders come in two different formats:
%s
When only one placeholder is present, this marker is used.
%1$s, %2$s, %3$s, …
Numbered placeholders, which allow translations to rearrange the order of the placeholders in the string while maintaining the information each is replaced with.