slide 40
Copyright © 2005 W3C (MIT, ERCIM, Keio)
Handling variables
Composite messages
echo "There were " . $errors . " validation errors in the file " . $filename . "." ;
echo "Die Datei " . $errors . " enthält " . $filename .
" Gültigkeitsfehler." ;
Die Datei 268 enthält myFirst.html Gültigkeitsfehler.
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 40 of 53
Typically translators have no access to the actual code, to avoid them introducing bugs into the page. Either the text is extracted or a translation tool masks the code.
Although we are fortunate that we were able to add words after the second variable, due to the English string containing a period, this still didn't produce the right result. The German reads "File 268 contains myFirst.html validation errors."