I think the following code would be better:

```php
throw new CException(Yii::t('yii','Invalid XML: Detected use of illegal DOCTYPE.')); // note trailing dot
```

Yii's common approach is to localize exception messages too.