[TYPO3-core] RFC: prepend '[Translate to XY]' on copy onlyifvalue is set -- extended

Wolfgang Klinger wolfgang at stufenlos.net
Fri Jan 13 12:20:19 CET 2006


 *hiya!*

 On Fri, 13 Jan 2006, Martin Kutschker wrote the following:
> Just a thought: Is it better to use the good ol' ###MARKER### stuff here to prevent errors or possible abuse with sprintf and missing, wrong or superfluos sprintf formatting.

 I don't think so, this is nothing critical here, but to avoid problems
 I might change it to:
----
if (isset($TSConfig['translateToMessage']) && strlen($TSConfig['translateToMessage'])) {
    $translateToMsg = @sprintf($TSConfig['translateToMessage'], $langRec['title']);
}
if (!strlen($translateToMsg)) {
    $translateToMsg = 'Translate to '.$langRec['title'].':';
}
----
 what do you think?


 kind regards
 Wolfgang




More information about the TYPO3-team-core mailing list