Version Notes
First Stable Release
Download this release
Release Info
| Developer | Zealousweb Technologies Pvt Ltd. |
| Extension | Google_Translator_For_Magento |
| Version | 1.0.0.1 |
| Comparing to | |
| See all releases | |
Version 1.0.0.1
- app/code/community/ZealousWeb/GTranslator/Helper/Data.php +14 -0
- app/code/community/ZealousWeb/GTranslator/Model/System/Config/Source/Language.php +98 -0
- app/code/community/ZealousWeb/GTranslator/controllers/IndexController.php +18 -0
- app/code/community/ZealousWeb/GTranslator/etc/adminhtml.xml +23 -0
- app/code/community/ZealousWeb/GTranslator/etc/config.xml +38 -0
- app/code/community/ZealousWeb/GTranslator/etc/system.xml +59 -0
- app/design/frontend/base/default/layout/gtranslator.xml +14 -0
- app/design/frontend/base/default/template/gtranslator/index.phtml +14 -0
- app/design/frontend/base/default/template/gtranslator/language.phtml +19 -0
- app/etc/modules/ZealousWeb_GTranslator.xml +10 -0
- package.xml +18 -0
- skin/frontend/base/default/css/gtrasnlator.css +28 -0
app/code/community/ZealousWeb/GTranslator/Helper/Data.php
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
* NOTICE OF LICENSE
|
| 5 |
+
* @package ZealousWeb
|
| 6 |
+
* @author ZealousWeb
|
| 7 |
+
* @copyright Copyright (c) 2014 Zealousweb Technology. (http://www.zealousweb.com)
|
| 8 |
+
*/
|
| 9 |
+
?>
|
| 10 |
+
<?php
|
| 11 |
+
class ZealousWeb_GTranslator_Helper_Data extends Mage_Core_Helper_Abstract
|
| 12 |
+
{
|
| 13 |
+
}
|
| 14 |
+
|
app/code/community/ZealousWeb/GTranslator/Model/System/Config/Source/Language.php
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
* NOTICE OF LICENSE
|
| 5 |
+
* @package ZealousWeb
|
| 6 |
+
* @author ZealousWeb
|
| 7 |
+
* @copyright Copyright (c) 2014 Zealousweb Technology. (http://www.zealousweb.com)
|
| 8 |
+
*/
|
| 9 |
+
?>
|
| 10 |
+
<?php
|
| 11 |
+
class ZealousWeb_GTranslator_Model_System_Config_Source_Language
|
| 12 |
+
{
|
| 13 |
+
public function toOptionArray()
|
| 14 |
+
{
|
| 15 |
+
$languages = array(
|
| 16 |
+
array('label' => 'Afrikaans','value' => 'af'),
|
| 17 |
+
array('label' => 'Albanian','value' => 'sq'),
|
| 18 |
+
array('label' => 'Arabic','value' => 'ar'),
|
| 19 |
+
array('label' => 'Armenian','value' => 'hy'),
|
| 20 |
+
array('label' => 'Azerbaijani','value' => 'az'),
|
| 21 |
+
array('label' => 'Basque','value' => 'eu'),
|
| 22 |
+
array('label' => 'Belarusian','value' => 'be'),
|
| 23 |
+
array('label' => 'Bengali','value' => 'bn'),
|
| 24 |
+
array('label' => 'Bosnian','value' => 'bs'),
|
| 25 |
+
array('label' => 'Bulgarian','value' => 'bg'),
|
| 26 |
+
array('label' => 'Catalan','value' => 'ca'),
|
| 27 |
+
array('label' => 'Cebuano','value' => 'ceb'),
|
| 28 |
+
array('label' => 'Chinese','value' => 'zh-CN'),
|
| 29 |
+
array('label' => 'Chinese (Traditional)','value' => 'zh-TW'),
|
| 30 |
+
array('label' => 'Croatian','value' => 'hr'),
|
| 31 |
+
array('label' => 'Czech','value' => 'cs'),
|
| 32 |
+
array('label' => 'Danish','value' => 'da'),
|
| 33 |
+
array('label' => 'Dutch','value' => 'nl'),
|
| 34 |
+
array('label' => 'English','value' => 'en'),
|
| 35 |
+
array('label' => 'Esperanto','value' => 'eo'),
|
| 36 |
+
array('label' => 'Estonian','value' => 'et'),
|
| 37 |
+
array('label' => 'Filipino','value' => 'tl'),
|
| 38 |
+
array('label' => 'Finnish','value' => 'fi'),
|
| 39 |
+
array('label' => 'French','value' => 'fr'),
|
| 40 |
+
array('label' => 'Galician','value' => 'gl'),
|
| 41 |
+
array('label' => 'Georgian','value' => 'ka'),
|
| 42 |
+
array('label' => 'German','value' => 'de'),
|
| 43 |
+
array('label' => 'Greek','value' => 'el'),
|
| 44 |
+
array('label' => 'Gujarati','value' => 'gu'),
|
| 45 |
+
array('label' => 'Haitian','value' => 'ht'),
|
| 46 |
+
array('label' => 'Hausa','value' => 'ha'),
|
| 47 |
+
array('label' => 'Hebrew','value' => 'iw'),
|
| 48 |
+
array('label' => 'Hindi','value' => 'hi'),
|
| 49 |
+
array('label' => 'Hmong','value' => 'hmn'),
|
| 50 |
+
array('label' => 'Hungarian','value' => 'hu'),
|
| 51 |
+
array('label' => 'Icelandic','value' => 'is'),
|
| 52 |
+
array('label' => 'Igbo','value' => 'ig'),
|
| 53 |
+
array('label' => 'Indonesian','value' => 'id'),
|
| 54 |
+
array('label' => 'Irish','value' => 'ga'),
|
| 55 |
+
array('label' => 'Italian','value' => 'it'),
|
| 56 |
+
array('label' => 'Japanese','value' => 'ja'),
|
| 57 |
+
array('label' => 'Javanese','value' => 'jv'),
|
| 58 |
+
array('label' => 'Kannada','value' => 'kn'),
|
| 59 |
+
array('label' => 'Khmer','value' => 'km'),
|
| 60 |
+
array('label' => 'Korean','value' => 'ko'),
|
| 61 |
+
array('label' => 'Lao','value' => 'lo'),
|
| 62 |
+
array('label' => 'Latin','value' => 'la'),
|
| 63 |
+
array('label' => 'Latvian','value' => 'lv'),
|
| 64 |
+
array('label' => 'Lithuanian','value' => 'lt'),
|
| 65 |
+
array('label' => 'Macedonian','value' => 'mk'),
|
| 66 |
+
array('label' => 'Malay','value' => 'ms'),
|
| 67 |
+
array('label' => 'Maltese','value' => 'mt'),
|
| 68 |
+
array('label' => 'Maori','value' => 'mi'),
|
| 69 |
+
array('label' => 'Marathi','value' => 'mr'),
|
| 70 |
+
array('label' => 'Norwegian','value' => 'no'),
|
| 71 |
+
array('label' => 'Persian','value' => 'fa'),
|
| 72 |
+
array('label' => 'Polish','value' => 'pl'),
|
| 73 |
+
array('label' => 'Portuguese','value' => 'pt'),
|
| 74 |
+
array('label' => 'Punjabi','value' => 'pa'),
|
| 75 |
+
array('label' => 'Romanian','value' => 'ro'),
|
| 76 |
+
array('label' => 'Russian','value' => 'ru'),
|
| 77 |
+
array('label' => 'Serbian','value' => 'sr'),
|
| 78 |
+
array('label' => 'Slovak','value' => 'sk'),
|
| 79 |
+
array('label' => 'Slovenian','value' => 'sl'),
|
| 80 |
+
array('label' => 'Somali','value' => 'so'),
|
| 81 |
+
array('label' => 'Spanish','value' => 'es'),
|
| 82 |
+
array('label' => 'Swahili','value' => 'sw'),
|
| 83 |
+
array('label' => 'Swedish','value' => 'sv'),
|
| 84 |
+
array('label' => 'Tamil','value' => 'ta'),
|
| 85 |
+
array('label' => 'Telugu','value' => 'te'),
|
| 86 |
+
array('label' => 'Thai','value' => 'th'),
|
| 87 |
+
array('label' => 'Turkish','value' => 'tr'),
|
| 88 |
+
array('label' => 'Ukrainian','value' => 'uk'),
|
| 89 |
+
array('label' => 'Urdu','value' => 'ur'),
|
| 90 |
+
array('label' => 'Vietnamese','value' => 'vi'),
|
| 91 |
+
array('label' => 'Welsh','value' => 'cy'),
|
| 92 |
+
array('label' => 'Yiddish','value' => 'yi'),
|
| 93 |
+
array('label' => 'Yoruba','value' => 'yo'),
|
| 94 |
+
array('label' => 'Zulu','value' => 'zu'),
|
| 95 |
+
);
|
| 96 |
+
return $languages;
|
| 97 |
+
}
|
| 98 |
+
}
|
app/code/community/ZealousWeb/GTranslator/controllers/IndexController.php
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
* NOTICE OF LICENSE
|
| 5 |
+
* @package ZealousWeb
|
| 6 |
+
* @author ZealousWeb
|
| 7 |
+
* @copyright Copyright (c) 2014 Zealousweb Technology. (http://www.zealousweb.com)
|
| 8 |
+
*/
|
| 9 |
+
?>
|
| 10 |
+
<?php
|
| 11 |
+
class ZealousWeb_GTranslator_IndexController extends Mage_Core_Controller_Front_Action
|
| 12 |
+
{
|
| 13 |
+
public function IndexAction()
|
| 14 |
+
{
|
| 15 |
+
$this->loadLayout();
|
| 16 |
+
$this->renderLayout();
|
| 17 |
+
}
|
| 18 |
+
}
|
app/code/community/ZealousWeb/GTranslator/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<acl>
|
| 4 |
+
<resources>
|
| 5 |
+
<admin>
|
| 6 |
+
<children>
|
| 7 |
+
<system>
|
| 8 |
+
<children>
|
| 9 |
+
<config>
|
| 10 |
+
<children>
|
| 11 |
+
<gtranslateconfiguration translate="title" module="gtranslator">
|
| 12 |
+
<title>GTranslate Configuration Section</title>
|
| 13 |
+
<sort_order>1</sort_order>
|
| 14 |
+
</gtranslateconfiguration>
|
| 15 |
+
</children>
|
| 16 |
+
</config>
|
| 17 |
+
</children>
|
| 18 |
+
</system>
|
| 19 |
+
</children>
|
| 20 |
+
</admin>
|
| 21 |
+
</resources>
|
| 22 |
+
</acl>
|
| 23 |
+
</config>
|
app/code/community/ZealousWeb/GTranslator/etc/config.xml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<ZealousWeb_GTranslator>
|
| 5 |
+
<version>0.1.0</version>
|
| 6 |
+
</ZealousWeb_GTranslator>
|
| 7 |
+
</modules>
|
| 8 |
+
<frontend>
|
| 9 |
+
<routers>
|
| 10 |
+
<gtranslator>
|
| 11 |
+
<use>standard</use>
|
| 12 |
+
<args>
|
| 13 |
+
<module>zealousweb_gtranslator</module>
|
| 14 |
+
<frontName>gtranslator</frontName>
|
| 15 |
+
</args>
|
| 16 |
+
</gtranslator>
|
| 17 |
+
</routers>
|
| 18 |
+
<layout>
|
| 19 |
+
<updates>
|
| 20 |
+
<gtranslator>
|
| 21 |
+
<file>gtranslator.xml</file>
|
| 22 |
+
</gtranslator>
|
| 23 |
+
</updates>
|
| 24 |
+
</layout>
|
| 25 |
+
</frontend>
|
| 26 |
+
<global>
|
| 27 |
+
<helpers>
|
| 28 |
+
<gtranslator>
|
| 29 |
+
<class>ZealousWeb_GTranslator_Helper</class>
|
| 30 |
+
</gtranslator>
|
| 31 |
+
</helpers>
|
| 32 |
+
<models>
|
| 33 |
+
<gtranslator>
|
| 34 |
+
<class>ZealousWeb_GTranslator_Model</class>
|
| 35 |
+
</gtranslator>
|
| 36 |
+
</models>
|
| 37 |
+
</global>
|
| 38 |
+
</config>
|
app/code/community/ZealousWeb/GTranslator/etc/system.xml
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<tabs>
|
| 4 |
+
<zealouswebgtranslate translate="label" module="gtranslator">
|
| 5 |
+
<label>ZealousWeb</label>
|
| 6 |
+
<sort_order>2</sort_order>
|
| 7 |
+
</zealouswebgtranslate>
|
| 8 |
+
</tabs>
|
| 9 |
+
<sections>
|
| 10 |
+
<gtranslateconfiguration translate="label" module="gtranslator">
|
| 11 |
+
<label>Google Translator for Magento</label>
|
| 12 |
+
<tab>zealouswebgtranslate</tab>
|
| 13 |
+
<frontend_type>text</frontend_type>
|
| 14 |
+
<sort_order>1</sort_order>
|
| 15 |
+
<show_in_default>1</show_in_default>
|
| 16 |
+
<show_in_website>1</show_in_website>
|
| 17 |
+
<show_in_store>1</show_in_store>
|
| 18 |
+
<groups>
|
| 19 |
+
<gtranslate translate="label">
|
| 20 |
+
<label>Configuration</label>
|
| 21 |
+
<frontend_type>text</frontend_type>
|
| 22 |
+
<sort_order>1</sort_order>
|
| 23 |
+
<show_in_default>1</show_in_default>
|
| 24 |
+
<show_in_website>1</show_in_website>
|
| 25 |
+
<show_in_store>1</show_in_store>
|
| 26 |
+
<fields>
|
| 27 |
+
<enable translate="label">
|
| 28 |
+
<label>Enable</label>
|
| 29 |
+
<frontend_type>select</frontend_type>
|
| 30 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 31 |
+
<sort_order>1</sort_order>
|
| 32 |
+
<show_in_default>1</show_in_default>
|
| 33 |
+
<show_in_website>1</show_in_website>
|
| 34 |
+
<show_in_store>1</show_in_store>
|
| 35 |
+
</enable>
|
| 36 |
+
<googletranslatecode translate="label">
|
| 37 |
+
<label>Google Translate Code</label>
|
| 38 |
+
<frontend_type>text</frontend_type>
|
| 39 |
+
<sort_order>2</sort_order>
|
| 40 |
+
<show_in_default>1</show_in_default>
|
| 41 |
+
<show_in_website>1</show_in_website>
|
| 42 |
+
<show_in_store>1</show_in_store>
|
| 43 |
+
<comment>Visit to https://translate.google.com/manager/website/suggestions and copy code display under content like i.e content="4452dd2fcc429bf-d2333c2fe07de1f9-gd87a99367f0a81dc-33"</comment>
|
| 44 |
+
</googletranslatecode>
|
| 45 |
+
<selectlanguage translate="label">
|
| 46 |
+
<label>Select Language</label>
|
| 47 |
+
<frontend_type>multiselect</frontend_type>
|
| 48 |
+
<source_model>gtranslator/system_config_source_language</source_model>
|
| 49 |
+
<sort_order>3</sort_order>
|
| 50 |
+
<show_in_default>1</show_in_default>
|
| 51 |
+
<show_in_website>1</show_in_website>
|
| 52 |
+
<show_in_store>1</show_in_store>
|
| 53 |
+
</selectlanguage>
|
| 54 |
+
</fields>
|
| 55 |
+
</gtranslate>
|
| 56 |
+
</groups>
|
| 57 |
+
</gtranslateconfiguration>
|
| 58 |
+
</sections>
|
| 59 |
+
</config>
|
app/design/frontend/base/default/layout/gtranslator.xml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<layout version="0.1.0">
|
| 3 |
+
<default>
|
| 4 |
+
<reference name="head">
|
| 5 |
+
<block type="core/template" template="gtranslator/index.phtml"/>
|
| 6 |
+
<action method="addItem"><type>skin_css</type><name>css/gtrasnlator.css</name></action>
|
| 7 |
+
</reference>
|
| 8 |
+
<reference name="store_language">
|
| 9 |
+
<action method="setTemplate">
|
| 10 |
+
<template>gtranslator/language.phtml</template>
|
| 11 |
+
</action>
|
| 12 |
+
</reference>
|
| 13 |
+
</default>
|
| 14 |
+
</layout>
|
app/design/frontend/base/default/template/gtranslator/index.phtml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
* NOTICE OF LICENSE
|
| 5 |
+
* @package ZealousWeb
|
| 6 |
+
* @author ZealousWeb
|
| 7 |
+
* @copyright Copyright (c) 2014 Zealousweb Technology. (http://www.zealousweb.com)
|
| 8 |
+
*/
|
| 9 |
+
?>
|
| 10 |
+
<?php $cekAktif = Mage::getStoreConfig('gtranslateconfiguration/gtranslate/enable');
|
| 11 |
+
if($cekAktif == 1):
|
| 12 |
+
?>
|
| 13 |
+
<meta name="google-translate-customization" content="<?php echo Mage::getStoreConfig('gtranslateconfiguration/gtranslate/googletranslatecode'); ?>" /></meta>
|
| 14 |
+
<?php endif;?>
|
app/design/frontend/base/default/template/gtranslator/language.phtml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
* NOTICE OF LICENSE
|
| 5 |
+
* @package ZealousWeb
|
| 6 |
+
* @author ZealousWeb
|
| 7 |
+
* @copyright Copyright (c) 2014 Zealousweb Technology. (http://www.zealousweb.com)
|
| 8 |
+
*/
|
| 9 |
+
?>
|
| 10 |
+
<?php $cekAktif = Mage::getStoreConfig('gtranslateconfiguration/gtranslate/enable');
|
| 11 |
+
if($cekAktif == 1):
|
| 12 |
+
?>
|
| 13 |
+
<div id="google_translate_element"></div><script type="text/javascript">
|
| 14 |
+
function googleTranslateElementInit()
|
| 15 |
+
{
|
| 16 |
+
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: '<?php echo strtolower(Mage::getStoreConfig('gtranslateconfiguration/gtranslate/selectlanguage')); ?>', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
|
| 17 |
+
}
|
| 18 |
+
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 19 |
+
<?php endif;?>
|
app/etc/modules/ZealousWeb_GTranslator.xml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<ZealousWeb_GTranslator>
|
| 5 |
+
<active>treu</active>
|
| 6 |
+
<codePool>community</codePool>
|
| 7 |
+
<version>0.1.0</version>
|
| 8 |
+
</ZealousWeb_GTranslator>
|
| 9 |
+
</modules>
|
| 10 |
+
</config>
|
package.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>Google_Translator_For_Magento</name>
|
| 4 |
+
<version>1.0.0.1</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Use Google Translate API to convert the Store in multiple Language.</summary>
|
| 10 |
+
<description>This Extension is useful for multilingual magento store where we can use Google Translate API instead of Multiple language Store.</description>
|
| 11 |
+
<notes>First Stable Release</notes>
|
| 12 |
+
<authors><author><name>ZealousWeb Technologies Pvt Ltd.</name><user>ZealousWeb</user><email>magento@zealousweb.com</email></author></authors>
|
| 13 |
+
<date>2014-12-08</date>
|
| 14 |
+
<time>10:20:26</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="ZealousWeb"><dir name="GTranslator"><dir name="Helper"><file name="Data.php" hash="727a5912e65a885a3b3047b109dc3045"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Language.php" hash="f7d110546117b234440614c275cf278e"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="1ad913f40716786c93477802e0e52529"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c3c33b87e5ceb1b1569a93c30e66ab48"/><file name="config.xml" hash="2a80a94ce49d6b0a90976331e5779da3"/><file name="system.xml" hash="fb47e942a8978f533c5f6dfe7266f60e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="gtranslator"><file name="index.phtml" hash="d7e9813ff081253125bb72b1754cb22d"/><file name="language.phtml" hash="e06142ed1bb2be4a21070ee2fccea45c"/></dir></dir><dir name="layout"><file name="gtranslator.xml" hash="7fe1b85e2eb23573deb9d769604b2e84"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="gtrasnlator.css" hash="a12c87e82e21e6dd0c2e7b55070efefc"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ZealousWeb_GTranslator.xml" hash="c94ca09950008d94934fb869b4f77556"/></dir></target></contents>
|
| 16 |
+
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
+
</package>
|
skin/frontend/base/default/css/gtrasnlator.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Magento
|
| 3 |
+
* NOTICE OF LICENSE
|
| 4 |
+
* @package ZealousWeb
|
| 5 |
+
* @author ZealousWeb
|
| 6 |
+
* @copyright Copyright (c) 2014 Zealousweb Technology. (http://www.zealousweb.com)
|
| 7 |
+
*/
|
| 8 |
+
#google_translate_element{float:right;margin-right:10px;margin-top:-4px;}
|
| 9 |
+
.goog-te-gadget-simple{background:none !important;border:none !important;}
|
| 10 |
+
.goog-te-gadget-simple img.goog-te-gadget-icon{display:none !important;}
|
| 11 |
+
.goog-te-gadget-simple .goog-te-menu-value span {color:#ebbc58 !important;border:none !important;padding:0 2px;}
|
| 12 |
+
.goog-te-gadget-simple .goog-te-menu-value img{display:none !important;}
|
| 13 |
+
.goog-te-menu-frame{box-shadow:none !important;position: absolute !important;}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
