<?xml version="1.0" encoding="UTF-8"?>
<modification>
    <code>google_translate</code>
    <name>Google Translate</name>
    <version>1.2</version>
    <author>VanStudio</author>
    <link>https://www.opencart.com/index.php?route=marketplace/extension&amp;filter_member=vanstudio</link>
    <file path="catalog/controller/common/header.php">
        <operation error="skip">
            <search><![CDATA[$data['language'] = $this->load->controller('common/language');]]></search>
            <add position="replace"><![CDATA[
        if($this->config->get('module_google_translate_status') == 1){
			$data['language'] = $this->load->controller('extension/module/google_translate');
		} else if($this->config->get('module_google_translate_status') == 2){
			$data['language'] = $this->load->controller('common/language') . $this->load->controller('extension/module/google_translate');
		} else {
			$data['language'] = $this->load->controller('common/language');
		}]]></add>
        </operation>
    </file>
</modification>