[TYPO3-dev] [TYPO3-core] New TYPO3 Coding Guidelines

Dmitry Dulepov dmitry.dulepov at gmail.com
Sun Jul 12 14:02:11 CEST 2009


Hi!

Bastian Waidelich wrote:
> And instead of
> $message = 'This is '.$name.' Name';
> I think
> $message = sprintf('This is %s Name', $name);
> Or (like Benni mentionend)
> $message = sprintf($GLOBALS['LANG']->getLL('message'), $name)

#1 is incorrect from the localization point of view. In different languages the included phrase can be in a different position. Only #3 is correct.

-- 
Dmitry Dulepov
LinkedIn: http://www.linkedin.com/in/dmitrydulepov
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs




More information about the TYPO3-dev mailing list