Added extensionID and fixed bug in localizeMessage()