sprintf — Return a formatted string
Example Code :
[code] echo ''.sprintf(( 'Follow %s on Demo!'), strip_tags($demo_account_name)).'
'; [/code]
Joomla Code :
[code] echo ''.JTEXT::sprintf(( 'Follow %s on Demo!'), strip_tags($demo_account_name)).'
'; echo ''.JTEXT::sprintf('MOD_DEMO_FOLLOW', strip_tags($snapchat_account_name)).'
'; [/code]
In Language File you must Use in .ini file :
[code] MOD_DEMO_FOLLOW = "Follow %s on Demo!" [/code]
Sample Module : AA Snapchat Snapcode Widget
Example :
https://docs.joomla.org/Formatted_fields_in_language_translation_strings