Vary COutputCache by language

Pull request according to https://github.com/yiisoft/yii/issues/1847