Grammar and spelling

Improved grammar and corrected spelling.
Update lang.php
Unify the handling of detailed exception messages
Merge pull request #832 from andreas-bergstrom/patch-1

Grammar and spelling
showExternalParameter -> showExternalParam
setComponentPropertiesFromParameters -> setComponentPropertiesFromParams
Add new methods propertyName() and paramName() to Component base class for accessing names of external properties.