Version Notes
Initial release
Download this release
Release Info
Developer | Translate.com |
Extension | Translate_WebsiteTranslator |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.3
- app/code/community/Translate/.DS_Store +0 -0
- app/code/community/Translate/WebsiteTranslator/.DS_Store +0 -0
- app/code/community/Translate/WebsiteTranslator/Block/.DS_Store +0 -0
- app/code/community/Translate/WebsiteTranslator/Block/Adminhtml/WebsiteTranslatorgetstarted.php +6 -0
- app/code/community/Translate/WebsiteTranslator/controllers/.DS_Store +0 -0
- app/code/community/Translate/WebsiteTranslator/controllers/Adminhtml/WebsitetranslatorbackendController.php +1 -1
- app/code/community/Translate/WebsiteTranslator/controllers/Adminhtml/WebsitetranslatorgetstartedController.php +10 -0
- app/code/community/Translate/WebsiteTranslator/etc/config.xml +49 -4
- app/code/community/Translate/WebsiteTranslator/sql/websitetranslator_setup/{install-1.0.1.php → install-1.0.3.php} +2 -1
- app/design/adminhtml/default/default/layout/websitetranslator.xml +6 -1
- app/design/adminhtml/default/default/template/websitetranslator/websitetranslatorbackend.phtml +198 -149
- app/design/adminhtml/default/default/template/websitetranslator/websitetranslatorgetstarted.phtml +238 -0
- app/design/frontend/base/default/layout/websitetranslator.xml +0 -8
- app/design/frontend/base/default/template/websitetranslator/head.phtml +0 -44
- app/etc/modules/Translate_WebsiteTranslator.xml +1 -1
- package.xml +25 -28
app/code/community/Translate/.DS_Store
CHANGED
Binary file
|
app/code/community/Translate/WebsiteTranslator/.DS_Store
CHANGED
Binary file
|
app/code/community/Translate/WebsiteTranslator/Block/.DS_Store
ADDED
Binary file
|
app/code/community/Translate/WebsiteTranslator/Block/Adminhtml/WebsiteTranslatorgetstarted.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Translate_WebsiteTranslator_Block_Adminhtml_WebsiteTranslatorgetstarted extends Mage_Adminhtml_Block_Template
|
4 |
+
{
|
5 |
+
//
|
6 |
+
}
|
app/code/community/Translate/WebsiteTranslator/controllers/.DS_Store
ADDED
Binary file
|
app/code/community/Translate/WebsiteTranslator/controllers/Adminhtml/WebsitetranslatorbackendController.php
CHANGED
@@ -4,7 +4,7 @@ class Translate_WebsiteTranslator_Adminhtml_WebsitetranslatorbackendController e
|
|
4 |
public function indexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
7 |
-
$this->_title($this->__("
|
8 |
$this->renderLayout();
|
9 |
}
|
10 |
}
|
4 |
public function indexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
7 |
+
$this->_title($this->__("Website Translator"));
|
8 |
$this->renderLayout();
|
9 |
}
|
10 |
}
|
app/code/community/Translate/WebsiteTranslator/controllers/Adminhtml/WebsitetranslatorgetstartedController.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Translate_WebsiteTranslator_Adminhtml_WebsitetranslatorgetstartedController extends Mage_Adminhtml_Controller_Action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
$this->loadLayout();
|
7 |
+
$this->_title($this->__("Website Translator"));
|
8 |
+
$this->renderLayout();
|
9 |
+
}
|
10 |
+
}
|
app/code/community/Translate/WebsiteTranslator/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
|
4 |
<modules>
|
5 |
<Translate_WebsiteTranslator>
|
6 |
-
<version>1.0.
|
7 |
</Translate_WebsiteTranslator>
|
8 |
</modules>
|
9 |
|
@@ -95,10 +95,15 @@
|
|
95 |
<sort_order>100</sort_order>
|
96 |
<children>
|
97 |
<websitetranslatorbackend module="websitetranslator">
|
98 |
-
<title>
|
99 |
-
<sort_order>
|
100 |
<action>admin_websitetranslator/adminhtml_websitetranslatorbackend</action>
|
101 |
</websitetranslatorbackend>
|
|
|
|
|
|
|
|
|
|
|
102 |
</children>
|
103 |
</websitetranslator>
|
104 |
</menu>
|
@@ -110,7 +115,7 @@
|
|
110 |
<admin>
|
111 |
<children>
|
112 |
<websitetranslator translate="title" module="websitetranslator">
|
113 |
-
<title>
|
114 |
<sort_order>1000</sort_order>
|
115 |
<children>
|
116 |
<websitetranslatorbackend translate="title">
|
@@ -129,6 +134,46 @@
|
|
129 |
</websitetranslator>
|
130 |
</updates>
|
131 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
</adminhtml>
|
133 |
|
134 |
</config>
|
3 |
|
4 |
<modules>
|
5 |
<Translate_WebsiteTranslator>
|
6 |
+
<version>1.0.3</version>
|
7 |
</Translate_WebsiteTranslator>
|
8 |
</modules>
|
9 |
|
95 |
<sort_order>100</sort_order>
|
96 |
<children>
|
97 |
<websitetranslatorbackend module="websitetranslator">
|
98 |
+
<title>Settings</title>
|
99 |
+
<sort_order>60</sort_order>
|
100 |
<action>admin_websitetranslator/adminhtml_websitetranslatorbackend</action>
|
101 |
</websitetranslatorbackend>
|
102 |
+
<websitetranslatorgettingstarted module="websitetranslator">
|
103 |
+
<title>Setup</title>
|
104 |
+
<sort_order>70</sort_order>
|
105 |
+
<action>admin_websitetranslator/adminhtml_websitetranslatorgetstarted</action>
|
106 |
+
</websitetranslatorgettingstarted>
|
107 |
</children>
|
108 |
</websitetranslator>
|
109 |
</menu>
|
115 |
<admin>
|
116 |
<children>
|
117 |
<websitetranslator translate="title" module="websitetranslator">
|
118 |
+
<title>Settings</title>
|
119 |
<sort_order>1000</sort_order>
|
120 |
<children>
|
121 |
<websitetranslatorbackend translate="title">
|
134 |
</websitetranslator>
|
135 |
</updates>
|
136 |
</layout>
|
137 |
+
<menu>
|
138 |
+
<websitetranslator module="websitetranslator">
|
139 |
+
<title>Translate.com</title>
|
140 |
+
<sort_order>101</sort_order>
|
141 |
+
<children>
|
142 |
+
<websitetranslatorbackend module="websitetranslator">
|
143 |
+
<title>Settings</title>
|
144 |
+
<sort_order>1</sort_order>
|
145 |
+
<action>admin_websitetranslator/adminhtml_websitetranslatorbackend</action>
|
146 |
+
</websitetranslatorbackend>
|
147 |
+
</children>
|
148 |
+
</websitetranslator>
|
149 |
+
</menu>
|
150 |
+
<acl>
|
151 |
+
<resources>
|
152 |
+
<all>
|
153 |
+
<title>Allow Everything</title>
|
154 |
+
</all>
|
155 |
+
<admin>
|
156 |
+
<children>
|
157 |
+
<websitetranslator translate="title" module="websitetranslator">
|
158 |
+
<title>Website Translator</title>
|
159 |
+
<sort_order>1001</sort_order>
|
160 |
+
<children>
|
161 |
+
<websitetranslatorbackend translate="title">
|
162 |
+
<title>Translate.com</title>
|
163 |
+
</websitetranslatorbackend>
|
164 |
+
</children>
|
165 |
+
</websitetranslator>
|
166 |
+
</children>
|
167 |
+
</admin>
|
168 |
+
</resources>
|
169 |
+
</acl>
|
170 |
+
<layout>
|
171 |
+
<updates>
|
172 |
+
<websitetranslator>
|
173 |
+
<file>websitetranslator.xml</file>
|
174 |
+
</websitetranslator>
|
175 |
+
</updates>
|
176 |
+
</layout>
|
177 |
</adminhtml>
|
178 |
|
179 |
</config>
|
app/code/community/Translate/WebsiteTranslator/sql/websitetranslator_setup/{install-1.0.1.php → install-1.0.3.php}
RENAMED
@@ -28,7 +28,8 @@ $default_settings = array(
|
|
28 |
'translate_meta' => 'true',
|
29 |
'localize_images' => 'false',
|
30 |
'localize_bg_images' => 'false',
|
31 |
-
'localize_media' => 'false'
|
|
|
32 |
);
|
33 |
|
34 |
foreach ($default_settings as $setting_name => $setting_value)
|
28 |
'translate_meta' => 'true',
|
29 |
'localize_images' => 'false',
|
30 |
'localize_bg_images' => 'false',
|
31 |
+
'localize_media' => 'false',
|
32 |
+
'install' => 'false'
|
33 |
);
|
34 |
|
35 |
foreach ($default_settings as $setting_name => $setting_value)
|
app/design/adminhtml/default/default/layout/websitetranslator.xml
CHANGED
@@ -2,7 +2,12 @@
|
|
2 |
<layout version="0.1.0">
|
3 |
<websitetranslator_adminhtml_websitetranslatorbackend_index>
|
4 |
<reference name="content">
|
5 |
-
<block type="websitetranslator/
|
6 |
</reference>
|
7 |
</websitetranslator_adminhtml_websitetranslatorbackend_index>
|
|
|
|
|
|
|
|
|
|
|
8 |
</layout>
|
2 |
<layout version="0.1.0">
|
3 |
<websitetranslator_adminhtml_websitetranslatorbackend_index>
|
4 |
<reference name="content">
|
5 |
+
<block type="websitetranslator/adminhtml_WebsiteTranslatorbackend" name="websitetranslatorbackend" template="websitetranslator/websitetranslatorbackend.phtml"/>
|
6 |
</reference>
|
7 |
</websitetranslator_adminhtml_websitetranslatorbackend_index>
|
8 |
+
<websitetranslator_adminhtml_websitetranslatorgetstarted_index>
|
9 |
+
<reference name="content">
|
10 |
+
<block type="websitetranslator/adminhtml_WebsiteTranslatorgetstarted" name="websitetranslatorgetstarted" template="websitetranslator/websitetranslatorgetstarted.phtml"/>
|
11 |
+
</reference>
|
12 |
+
</websitetranslator_adminhtml_websitetranslatorgetstarted_index>
|
13 |
</layout>
|
app/design/adminhtml/default/default/template/websitetranslator/websitetranslatorbackend.phtml
CHANGED
@@ -24,158 +24,194 @@ if (isset($_POST['wt-settings-submit']))
|
|
24 |
|
25 |
?>
|
26 |
<div class="wrap">
|
27 |
-
<
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
<form method="post" action="<?php echo Mage::helper('core/url')->getCurrentUrl(); ?>">
|
30 |
-
<
|
31 |
-
<
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
<
|
82 |
-
</
|
83 |
-
|
84 |
-
<
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
$
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
</
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
<
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
$on_checked = '';
|
133 |
-
$off_checked = 'checked';
|
134 |
-
} else {
|
135 |
-
$on_checked = 'checked';
|
136 |
-
$off_checked = '';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
<label><input type="radio" name="localize_bg_images" value="true" <?php echo $on_checked; ?>/>On</label>
|
140 |
-
<label><input type="radio" name="localize_bg_images" value="false" <?php echo $off_checked; ?>/>Off</label>
|
141 |
-
</td>
|
142 |
-
</tr>
|
143 |
-
<tr class="wt-description">
|
144 |
-
<td colspan="2"><p>Replace background images on your site with their localized version. <i class="example">(eg. bg-image.png to bg-image@nl.png)</i></p></td>
|
145 |
-
</tr>
|
146 |
-
|
147 |
-
<tr valign="top">
|
148 |
-
<th scope="row">Localize Media</th>
|
149 |
-
<td>
|
150 |
-
<?php
|
151 |
-
$setting = $model->load('localize_media', 'setting_name');
|
152 |
-
if ( $setting->getSettingValue() === 'false') {
|
153 |
-
$on_checked = '';
|
154 |
-
$off_checked = 'checked';
|
155 |
-
} else {
|
156 |
-
$on_checked = 'checked';
|
157 |
-
$off_checked = '';
|
158 |
-
}
|
159 |
-
?>
|
160 |
-
<label><input type="radio" name="localize_media" value="true" <?php echo $on_checked; ?>/>On</label>
|
161 |
-
<label><input type="radio" name="localize_media" value="false" <?php echo $off_checked; ?>/>Off</label>
|
162 |
-
</td>
|
163 |
-
</tr>
|
164 |
-
<tr class="wt-description">
|
165 |
-
<td colspan="2"><p>Replace HTML5 audio and video elements on your site with their localized version. <i class="example">(eg. video1.mp4 to video1@zh.mp4)</i></p></td>
|
166 |
-
</tr>
|
167 |
-
</table>
|
168 |
-
|
169 |
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
|
170 |
-
|
171 |
-
<
|
|
|
172 |
|
173 |
</form>
|
174 |
-
<p>Manage your website's translations and other settings from your <a href="https://translate.com/portal/website_translator" target="_blank">Website Translator Portal</a></p>
|
175 |
|
176 |
-
<p>For detailed customization info, please visit the documentation at <a href="https://support.translate.com" target="_blank">support.translate.com</a></p>
|
177 |
</div>
|
178 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
.wt-settings th {
|
180 |
padding: 0;
|
181 |
vertical-align: middle;
|
@@ -183,19 +219,32 @@ if (isset($_POST['wt-settings-submit']))
|
|
183 |
.wt-settings td {
|
184 |
padding: 0;
|
185 |
}
|
186 |
-
.wt-description td {
|
187 |
-
padding: 0 0 30px 0;
|
188 |
-
}
|
189 |
.wt-settings label {
|
190 |
margin-right: 8px;
|
191 |
}
|
192 |
.wt-settings input {
|
193 |
margin-right: 3px;
|
|
|
194 |
}
|
195 |
#wt-settings-submit {
|
196 |
-
margin-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
}
|
198 |
i.example {
|
199 |
color: #999;
|
200 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
</style>
|
24 |
|
25 |
?>
|
26 |
<div class="wrap">
|
27 |
+
<div>
|
28 |
+
<img width="30px" src="https://www.translate.com/images/translate-logo-mark-blue.svg">
|
29 |
+
<h1>Website Translator</h1>
|
30 |
+
</div>
|
31 |
+
<div id="heading-wrapper">
|
32 |
+
<div id="heading-title">Settings</div>
|
33 |
+
<div id="need-help"><a href="https://translatecom.zendesk.com/hc/en-us/articles/222726227-Shopify-App-Usage">Need help?</a></div>
|
34 |
+
</div>
|
35 |
<form method="post" action="<?php echo Mage::helper('core/url')->getCurrentUrl(); ?>">
|
36 |
+
<div class="language-settings">
|
37 |
+
<h2>Language Settings</h2>
|
38 |
+
<h3>Remember Language</h3>
|
39 |
+
<div class="wt-subtext">Remember the user's selected language for the next time they visit</div>
|
40 |
+
<?php
|
41 |
+
$setting = $model->load('remember_language', 'setting_name');
|
42 |
+
if ( $setting->getSettingValue() === 'false') {
|
43 |
+
$on_checked = '';
|
44 |
+
$off_checked = 'checked';
|
45 |
+
} else {
|
46 |
+
$on_checked = 'checked';
|
47 |
+
$off_checked = '';
|
48 |
+
}
|
49 |
+
?>
|
50 |
+
<div class="wt-buttons">
|
51 |
+
<label><input type="radio" name="remember_language" value="true" <?php echo $on_checked; ?>/> On</label>
|
52 |
+
<label><input type="radio" name="remember_language" value="false" <?php echo $off_checked; ?>/> Off</label>
|
53 |
+
</div>
|
54 |
+
<h3>Guess Language</h3>
|
55 |
+
<div class="wt-subtext">Attempt to guess the user's preferred language based on their browser settings</div>
|
56 |
+
<?php
|
57 |
+
$setting = $model->load('guess_language', 'setting_name');
|
58 |
+
if ( $setting->getSettingValue() === 'false') {
|
59 |
+
$on_checked = '';
|
60 |
+
$off_checked = 'checked';
|
61 |
+
} else {
|
62 |
+
$on_checked = 'checked';
|
63 |
+
$off_checked = '';
|
64 |
+
}
|
65 |
+
?>
|
66 |
+
<div class="wt-buttons">
|
67 |
+
<label><input type="radio" name="guess_language" value="true" <?php echo $on_checked; ?>/> On</label>
|
68 |
+
<label><input type="radio" name="guess_language" value="false" <?php echo $off_checked; ?>/> Off</label>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<div class="translation-settings">
|
72 |
+
<h2>Translation Settings</h2>
|
73 |
+
<h3>Images</h3>
|
74 |
+
<div class="wt-subtext">Replace images on your site with their localized versions <br/>(eg. image1.jpg to image1@fr.jpg)</div>
|
75 |
+
<?php
|
76 |
+
$setting = $model->load('localize_images', 'setting_name');
|
77 |
+
if ( $setting->getSettingValue() === 'false') {
|
78 |
+
$on_checked = '';
|
79 |
+
$off_checked = 'checked';
|
80 |
+
} else {
|
81 |
+
$on_checked = 'checked';
|
82 |
+
$off_checked = '';
|
83 |
+
}
|
84 |
+
?>
|
85 |
+
<div class="wt-buttons">
|
86 |
+
<label><input type="radio" name="localize_images" value="true" <?php echo $on_checked; ?>/> On</label>
|
87 |
+
<label><input type="radio" name="localize_images" value="false" <?php echo $off_checked; ?>/> Off</label>
|
88 |
+
</div>
|
89 |
+
<h3>Audio/Video</h3>
|
90 |
+
<div class="wt-subtext">Replace HTML5 audio/video on your site with their localized version <br/>(eg. video1.mp4 video1@zh.mp4)</div>
|
91 |
+
<?php
|
92 |
+
$setting = $model->load('localize_media', 'setting_name');
|
93 |
+
if ( $setting->getSettingValue() === 'false') {
|
94 |
+
$on_checked = '';
|
95 |
+
$off_checked = 'checked';
|
96 |
+
} else {
|
97 |
+
$on_checked = 'checked';
|
98 |
+
$off_checked = '';
|
99 |
+
}
|
100 |
+
?>
|
101 |
+
<div class="wt-buttons">
|
102 |
+
<label><input type="radio" name="localize_media" value="true" <?php echo $on_checked; ?>/> On</label>
|
103 |
+
<label><input type="radio" name="localize_media" value="false" <?php echo $off_checked; ?>/> Off</label>
|
104 |
+
</div>
|
105 |
+
<h3>Background Images</h3>
|
106 |
+
<div class="wt-subtext">Replace background images on your site with their localized version (eg. bg-image.png to bg-image@zh.png)</div>
|
107 |
+
<?php
|
108 |
+
$setting = $model->load('localize_bg_images', 'setting_name');
|
109 |
+
if ( $setting->getSettingValue() === 'false') {
|
110 |
+
$on_checked = '';
|
111 |
+
$off_checked = 'checked';
|
112 |
+
} else {
|
113 |
+
$on_checked = 'checked';
|
114 |
+
$off_checked = '';
|
115 |
+
}
|
116 |
+
?>
|
117 |
+
<div class="wt-buttons">
|
118 |
+
<label><input type="radio" name="localize_bg_images" value="true" <?php echo $on_checked; ?>/> On</label>
|
119 |
+
<label><input type="radio" name="localize_bg_images" value="false" <?php echo $off_checked; ?>/> Off</label>
|
120 |
+
</div>
|
121 |
+
<h3>Meta Tags</h3>
|
122 |
+
<div class="wt-subtext">Translate the meta tags (keywords and description) of your site</div>
|
123 |
+
<?php
|
124 |
+
$setting = $model->load('translate_meta', 'setting_name');
|
125 |
+
if ( $setting->getSettingValue() === 'false') {
|
126 |
+
$on_checked = '';
|
127 |
+
$off_checked = 'checked';
|
128 |
+
} else {
|
129 |
+
$on_checked = 'checked';
|
130 |
+
$off_checked = '';
|
131 |
+
}
|
132 |
+
?>
|
133 |
+
<div class="wt-buttons">
|
134 |
+
<label><input type="radio" name="translate_meta" value="true" <?php echo $on_checked; ?>/> On</label>
|
135 |
+
<label><input type="radio" name="translate_meta" value="false" <?php echo $off_checked; ?>/> Off</label>
|
136 |
+
</div>
|
137 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
|
139 |
+
<p id="add_languages_text">To add more translation languages, visit <a href="https://translate.com/portal/website_translator" target="_blank">Translate.com</a></p>
|
140 |
+
<p id="add_languages_text">Need to update your website key? <a href="<?php print $this->getUrl('admin_websitetranslator/adminhtml_websitetranslatorgetstarted'); ?>">Click here</a></p>
|
141 |
+
<input id="wt-settings-submit" name="wt-settings-submit" type="submit" value="Save Settings"/>
|
142 |
|
143 |
</form>
|
|
|
144 |
|
|
|
145 |
</div>
|
146 |
<style>
|
147 |
+
h1 {
|
148 |
+
padding-left: 40px;
|
149 |
+
margin-bottom: 30px;
|
150 |
+
line-height: .8em;
|
151 |
+
letter-spacing: 0.8px;
|
152 |
+
font-weight: 400;
|
153 |
+
}
|
154 |
+
h2 {
|
155 |
+
font-weight: 520;
|
156 |
+
}
|
157 |
+
h3 {
|
158 |
+
font-weight: 400;
|
159 |
+
}
|
160 |
+
img {
|
161 |
+
float: left;
|
162 |
+
}
|
163 |
+
#heading-wrapper {
|
164 |
+
width: 660px;
|
165 |
+
overflow: auto;
|
166 |
+
margin-bottom: 20px;
|
167 |
+
}
|
168 |
+
#heading-title {
|
169 |
+
float: left;
|
170 |
+
font-size: 16px;
|
171 |
+
text-transform: uppercase;
|
172 |
+
letter-spacing: 0.8px;
|
173 |
+
color: gray;
|
174 |
+
}
|
175 |
+
#need-help {
|
176 |
+
float: right;
|
177 |
+
}
|
178 |
+
#need-help a {
|
179 |
+
|
180 |
+
font-size: 16px;
|
181 |
+
text-decoration: none;
|
182 |
+
color: #217bb9;
|
183 |
+
}
|
184 |
+
.middle {
|
185 |
+
background: #ebeef0;
|
186 |
+
font-family: '-apple-system', 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif
|
187 |
+
}
|
188 |
+
label {
|
189 |
+
padding: 15px 20px 10px 0px;
|
190 |
+
}
|
191 |
+
.language-settings {
|
192 |
+
background: white;
|
193 |
+
margin-bottom: 30px;
|
194 |
+
width: 600px;
|
195 |
+
padding: 20px 30px 20px 30px;
|
196 |
+
border-radius: 3px;
|
197 |
+
box-shadow: 1px 3px 10px rgba(0,0,0,0.1);
|
198 |
+
}
|
199 |
+
.translation-settings {
|
200 |
+
background: white;
|
201 |
+
margin-top:10px;
|
202 |
+
width: 600px;
|
203 |
+
padding: 20px 30px 20px 30px;
|
204 |
+
margin-bottom: 25px;
|
205 |
+
border-radius: 3px;
|
206 |
+
box-shadow: 1px 3px 10px rgba(0,0,0,0.1);
|
207 |
+
}
|
208 |
+
.wt-subtext {
|
209 |
+
color: #999;
|
210 |
+
margin-bottom: 12px;
|
211 |
+
}
|
212 |
+
.wt-buttons {
|
213 |
+
margin-bottom: 20px;
|
214 |
+
}
|
215 |
.wt-settings th {
|
216 |
padding: 0;
|
217 |
vertical-align: middle;
|
219 |
.wt-settings td {
|
220 |
padding: 0;
|
221 |
}
|
|
|
|
|
|
|
222 |
.wt-settings label {
|
223 |
margin-right: 8px;
|
224 |
}
|
225 |
.wt-settings input {
|
226 |
margin-right: 3px;
|
227 |
+
cursor: pointer;
|
228 |
}
|
229 |
#wt-settings-submit {
|
230 |
+
margin-top: 10px;
|
231 |
+
width: 150px;
|
232 |
+
height: 30px;
|
233 |
+
color: white;
|
234 |
+
background: #217bb9;
|
235 |
+
border-radius: 3px;
|
236 |
+
border: none;
|
237 |
+
font-size: 13px;
|
238 |
+
margin-bottom: 35px;
|
239 |
+
cursor: pointer;
|
240 |
}
|
241 |
i.example {
|
242 |
color: #999;
|
243 |
}
|
244 |
+
#add_languages_text {
|
245 |
+
font-size: 14px;
|
246 |
+
}
|
247 |
+
a {
|
248 |
+
text-decoration: none;
|
249 |
+
}
|
250 |
</style>
|
app/design/adminhtml/default/default/template/websitetranslator/websitetranslatorgetstarted.phtml
ADDED
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$model = Mage::getModel('websitetranslator/websitetranslator');
|
4 |
+
|
5 |
+
if (isset($_POST['wt-settings-submit']))
|
6 |
+
{
|
7 |
+
$settings = array(
|
8 |
+
'website_key',
|
9 |
+
'remember_language',
|
10 |
+
'guess_language',
|
11 |
+
'translate_meta',
|
12 |
+
'localize_images',
|
13 |
+
'localize_bg_images',
|
14 |
+
'localize_media'
|
15 |
+
);
|
16 |
+
|
17 |
+
foreach ($settings as $setting)
|
18 |
+
{
|
19 |
+
$setting_value = $_POST[$setting];
|
20 |
+
$item = $model->load($setting, 'setting_name');
|
21 |
+
$item->setSettingValue($setting_value)->save();
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
?>
|
26 |
+
<div class="wrap">
|
27 |
+
<div>
|
28 |
+
<img width="30px" src="https://www.translate.com/images/translate-logo-mark-blue.svg">
|
29 |
+
<h1>Website Translator</h1>
|
30 |
+
</div>
|
31 |
+
<div id="heading-wrapper">
|
32 |
+
<div id="heading-title">Setup</div>
|
33 |
+
<div id="need-help"><a href="https://translatecom.zendesk.com/hc/en-us/requests/new">Need help?</a></div>
|
34 |
+
</div>
|
35 |
+
<form method="post" action="<?php echo $this->getUrl('admin_websitetranslator/adminhtml_websitetranslatorbackend'); ?>">
|
36 |
+
<div class="box step-one">
|
37 |
+
<h2>1. Subscribe to Translate.com</h2>
|
38 |
+
<div class="inner-box get-started-subtext">Translate.com's Website Translator only works with a Starter package or above. Click below to view and subscribe to a package.</div>
|
39 |
+
<a href="https://translate.com/pages/pricing_languages" target="_blank"><div class="inner-box link-box">View Packages <i class="fa fa-external-link"></i></div></a>
|
40 |
+
<div class="inner-box" id="already_subscribed">Already subscribed to a Translate.com package? Proceed to the next step!</i></div>
|
41 |
+
</div>
|
42 |
+
<div class="box step-two">
|
43 |
+
<h2>2. Add website</h2>
|
44 |
+
<div class="inner-box" class="get-started-subtext">Visit Translate.com to add your website URL (Ex: mywebsite.com). This lets us generate a unique Website Key that enables translations on your site.</div>
|
45 |
+
<a href="https://translate.com/portal/add_website_step_one" target="_blank"><div style="width: 130px;" class="inner-box link-box">Add Website <i class="fa fa-external-link"></i></div></a>
|
46 |
+
</div>
|
47 |
+
|
48 |
+
<?php
|
49 |
+
$resource = Mage::getSingleton('core/resource');
|
50 |
+
|
51 |
+
$readConnection = $resource->getConnection('core_read');
|
52 |
+
$writeConnection = $resource->getConnection('core_write');
|
53 |
+
|
54 |
+
$query = "SELECT setting_value FROM " . $resource->getTableName('translate_wt_settings') . " WHERE setting_name = 'install'";
|
55 |
+
|
56 |
+
$results = $readConnection->fetchAll($query);
|
57 |
+
|
58 |
+
/* get the results */
|
59 |
+
$install = $results[0]['setting_value'];
|
60 |
+
|
61 |
+
if($install != 'true')
|
62 |
+
{
|
63 |
+
$resource = Mage::getSingleton('core/resource');
|
64 |
+
$readConnection = $resource->getConnection('core_read');
|
65 |
+
|
66 |
+
$query = "SELECT firstname FROM " . $resource->getTableName('admin_user') . " LIMIT 1";
|
67 |
+
$results = $readConnection->fetchAll($query);
|
68 |
+
$first_name = $results[0]['firstname'];
|
69 |
+
|
70 |
+
$query = "SELECT lastname FROM " . $resource->getTableName('admin_user') . " LIMIT 1";
|
71 |
+
$results = $readConnection->fetchAll($query);
|
72 |
+
$last_name = $results[0]['lastname'];
|
73 |
+
|
74 |
+
$query = "SELECT email FROM " . $resource->getTableName('admin_user') . " LIMIT 1";
|
75 |
+
$results = $readConnection->fetchAll($query);
|
76 |
+
$email = $results[0]['email'];
|
77 |
+
|
78 |
+
$query = "SELECT value FROM " . $resource->getTableName('core_config_data') . " WHERE path = 'web/unsecure/base_url'";
|
79 |
+
$results = $readConnection->fetchAll($query);
|
80 |
+
$url = $results[0]['value'];
|
81 |
+
|
82 |
+
$details = 'First Name: ' . $first_name . ' Last Name: ' . $last_name . ' Email: ' . $email;
|
83 |
+
|
84 |
+
$body = array(
|
85 |
+
'user_id' => '123',
|
86 |
+
'platform' => 'magento',
|
87 |
+
'website_url' => $url,
|
88 |
+
'details' => $details
|
89 |
+
);
|
90 |
+
|
91 |
+
$url = 'https://brandon.translate.com/api_v2/website_translator_install';
|
92 |
+
|
93 |
+
if(function_exists('curl_version'))
|
94 |
+
{
|
95 |
+
$handle = curl_init();
|
96 |
+
curl_setopt($handle, CURLOPT_URL, $url);
|
97 |
+
curl_setopt($handle, CURLOPT_POST, true);
|
98 |
+
curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
|
99 |
+
curl_setopt($handle, CURLOPT_POSTFIELDS, $body);
|
100 |
+
|
101 |
+
$response = curl_exec($handle);
|
102 |
+
curl_close($handle);
|
103 |
+
|
104 |
+
$query = "UPDATE ". $resource->getTableName('translate_wt_settings') . " SET setting_value = 'true' WHERE setting_name = 'install'";
|
105 |
+
$results = $writeConnection->query($query);
|
106 |
+
}
|
107 |
+
}
|
108 |
+
?>
|
109 |
+
|
110 |
+
<div class="box step-three">
|
111 |
+
<h2>3. Enter website key</h2>
|
112 |
+
<div class="inner-box" class="get-started-subtext">Copy and paste the unique key generated by Translate.com below:</div>
|
113 |
+
<?php $setting = $model->load('website_key', 'setting_name');?>
|
114 |
+
<input type="text" name="website_key" value="<?php echo $setting->getSettingValue(); ?>"/>
|
115 |
+
<div>
|
116 |
+
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
|
117 |
+
<input id="wt-settings-submit" name="wt-settings-submit" type="submit" value="Save" onclick"/"/>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
</form>
|
121 |
+
</div>
|
122 |
+
<script src="https://use.fontawesome.com/32e98c2f79.js"></script>
|
123 |
+
<style>
|
124 |
+
h1 {
|
125 |
+
padding-left: 40px;
|
126 |
+
margin-bottom: 30px;
|
127 |
+
line-height: .8em;
|
128 |
+
letter-spacing: 0.8px;
|
129 |
+
font-weight: 400;
|
130 |
+
}
|
131 |
+
h2 {
|
132 |
+
font-weight: 520;
|
133 |
+
}
|
134 |
+
h3 {
|
135 |
+
font-weight: 400;
|
136 |
+
}
|
137 |
+
img {
|
138 |
+
float: left;
|
139 |
+
}
|
140 |
+
#heading-wrapper {
|
141 |
+
width: 660px;
|
142 |
+
overflow: auto;
|
143 |
+
margin-bottom: 20px;
|
144 |
+
}
|
145 |
+
#heading-title {
|
146 |
+
float: left;
|
147 |
+
font-size: 16px;
|
148 |
+
text-transform: uppercase;
|
149 |
+
letter-spacing: 0.8px;
|
150 |
+
color: gray;
|
151 |
+
}
|
152 |
+
#need-help {
|
153 |
+
float: right;
|
154 |
+
}
|
155 |
+
#need-help a {
|
156 |
+
font-size: 16px;
|
157 |
+
text-decoration: none;
|
158 |
+
color: #217bb9;
|
159 |
+
}
|
160 |
+
.middle {
|
161 |
+
background: #ebeef0;
|
162 |
+
font-family: '-apple-system', 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif
|
163 |
+
}
|
164 |
+
#wt-settings-submit {
|
165 |
+
margin-top: 10px;
|
166 |
+
width: 150px;
|
167 |
+
height: 30px;
|
168 |
+
color: white;
|
169 |
+
background: #217bb9;
|
170 |
+
border-radius: 3px;
|
171 |
+
border: none;
|
172 |
+
font-size: 13px;
|
173 |
+
}
|
174 |
+
i.example {
|
175 |
+
color: #999;
|
176 |
+
}
|
177 |
+
.box {
|
178 |
+
background-color: white;
|
179 |
+
margin-bottom: 30px;
|
180 |
+
width: 600px;
|
181 |
+
padding: 35px 35px 10px 35px;
|
182 |
+
box-shadow: 1px 3px 10px rgba(0,0,0,0.1);
|
183 |
+
overflow: auto;
|
184 |
+
border-radius: 3px;
|
185 |
+
letter-spacing: 0.2px;
|
186 |
+
}
|
187 |
+
.inner-box {
|
188 |
+
margin: 20px 0;
|
189 |
+
font-size: 14px;
|
190 |
+
}
|
191 |
+
#already_subscribed {
|
192 |
+
font-size: 14px;
|
193 |
+
color: #999;
|
194 |
+
margin-top: 26px;
|
195 |
+
}
|
196 |
+
.save_changes_edit_page {
|
197 |
+
width: 130px;
|
198 |
+
height: 50px;
|
199 |
+
border: 1px solid #479CCf;
|
200 |
+
color: white;
|
201 |
+
background-color: #217bb9;
|
202 |
+
box-sizing: border-box;
|
203 |
+
border-radius: 3px;
|
204 |
+
float: left;
|
205 |
+
font-size: 14px;
|
206 |
+
}
|
207 |
+
.link-box {
|
208 |
+
border: solid 1px #ddd;
|
209 |
+
border-radius: 3px;
|
210 |
+
width: 150px;
|
211 |
+
padding: 12px;
|
212 |
+
padding-left: 20px;
|
213 |
+
color: #217bb9;
|
214 |
+
margin: 30px 0 0px;
|
215 |
+
}
|
216 |
+
a {
|
217 |
+
text-decoration: none;
|
218 |
+
cursor: pointer;
|
219 |
+
}
|
220 |
+
.step-one {
|
221 |
+
padding: 20px 35px 8px 35px;
|
222 |
+
}
|
223 |
+
.step-two {
|
224 |
+
padding: 20px 35px 32px 35px;
|
225 |
+
}
|
226 |
+
.step-three {
|
227 |
+
padding: 20px 35px 24px 35px;
|
228 |
+
margin-bottom: 40px;
|
229 |
+
}
|
230 |
+
input {
|
231 |
+
width: 300px;
|
232 |
+
height: 30px;
|
233 |
+
margin-bottom: 10px;
|
234 |
+
font-size: 15px;
|
235 |
+
cursor: pointer;
|
236 |
+
}
|
237 |
+
|
238 |
+
</style>
|
app/design/frontend/base/default/layout/websitetranslator.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layouts>
|
3 |
-
<default>
|
4 |
-
<reference name="head">
|
5 |
-
<block type="page/html_head" name="websitetranslator_head" template="websitetranslator/head.phtml" />
|
6 |
-
</reference>
|
7 |
-
</default>
|
8 |
-
</layouts>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/websitetranslator/head.phtml
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
<script src="//wt-js.translate.com/translate.js" type="text/javascript"></script>
|
2 |
-
|
3 |
-
<?php
|
4 |
-
|
5 |
-
$defaults = array(
|
6 |
-
'remember_language' => 'true',
|
7 |
-
'guess_language' => 'true',
|
8 |
-
'translate_meta' => 'true',
|
9 |
-
'localize_images' => 'false',
|
10 |
-
'localize_bg_images' => 'false',
|
11 |
-
'localize_media' => 'false'
|
12 |
-
);
|
13 |
-
|
14 |
-
$model = Mage::getModel('websitetranslator/websitetranslator');
|
15 |
-
|
16 |
-
$settings = array();
|
17 |
-
|
18 |
-
foreach ($defaults as $setting_name => $default_value)
|
19 |
-
{
|
20 |
-
$item = $model->load($setting_name, 'setting_name');
|
21 |
-
$settings[$setting_name] = $item->getSettingValue();
|
22 |
-
}
|
23 |
-
|
24 |
-
$settings = array_diff_assoc($settings, $defaults);
|
25 |
-
|
26 |
-
$script .= '<script type="text/javascript">'."\n\t".'TranslateJS.init({';
|
27 |
-
|
28 |
-
$website_key = $model->load('website_key', 'setting_name')->getSettingValue();
|
29 |
-
$script .= "\n\t\t" . '"key": "' . $website_key . '",';
|
30 |
-
|
31 |
-
foreach ($settings as $key => $value)
|
32 |
-
{
|
33 |
-
$script .= "\n\t\t" . '"'. $key . '": ' . $value .',';
|
34 |
-
}
|
35 |
-
|
36 |
-
$script .= "\n\t});\n". '</script>';
|
37 |
-
|
38 |
-
// Remove the last comma in the string
|
39 |
-
$last_comma = strrpos($script, ",");
|
40 |
-
$script = substr_replace($script, "", $last_comma, 1);
|
41 |
-
|
42 |
-
echo $script;
|
43 |
-
|
44 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Translate_WebsiteTranslator.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<Translate_WebsiteTranslator>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
<version>1.0.
|
8 |
</Translate_WebsiteTranslator>
|
9 |
</modules>
|
10 |
</config>
|
4 |
<Translate_WebsiteTranslator>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
<version>1.0.3</version>
|
8 |
</Translate_WebsiteTranslator>
|
9 |
</modules>
|
10 |
</config>
|
package.xml
CHANGED
@@ -1,43 +1,40 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Translate_WebsiteTranslator</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Easily configure and install your Translate.com Website Translator script!</summary>
|
10 |
-
<description>Translate.com is one of the leaders in translation services.
|
11 |
-
<br /><br />
|
12 |

|
13 |
-
This plugin makes it easy to set up and install your Website Translator code snippet into your Magento store
|
14 |

|
15 |
-
Translate
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
&
|
32 |
-
|
33 |
-
|
34 |
-
- Full documentation for this plugin and the Website Translator can be found at <a href="https://translatecom.zendesk.com/hc/en-us">Translate Support</a>
|
35 |
-
<br /></description>
|
36 |
<notes>Initial release</notes>
|
37 |
<authors><author><name>Translate.com</name><user>bobemerge</user><email>bob@emergemedia.com</email></author></authors>
|
38 |
-
<date>2016-
|
39 |
-
<time>
|
40 |
-
<contents><target name="magecommunity"><dir name="Translate"><dir name="WebsiteTranslator"><dir name="Block"><dir name="Adminhtml"><file name="WebsiteTranslatorbackend.php" hash="da32b8f953d0cb88f7cf41f280c0e53d"/></dir
|
41 |
<compatible/>
|
42 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
43 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Translate_WebsiteTranslator</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Easily configure and install your Translate.com Website Translator script!</summary>
|
10 |
+
<description>Translate.com is one of the leaders in translation services. We provide human translation services in over 90 language pairs, and a growing number of products for localizing web content and customer support tickets. 
|
|
|
11 |

|
12 |
+
This plugin makes it easy to set up and install your Website Translator code snippet into your Magento store. 
|
13 |

|
14 |
+
Translate's Website Translator allows you to localize your entire website in just a few clicks! Once the Website Translator is installed and a web page is viewed, our script crawls through all of the text on your page and sends it to our system to be automatically translated. From here you can manage your website translations through our portal, opting for simple machine translation, professional human translation, or providing your own translation! 
|
15 |
+

|
16 |
+
Users can switch the language of your page using the default language widget created by the script. Text on your website is then automatically replaced with your published translations when a user views your site in a different language! 
|
17 |
+

|
18 |
+
What's possible with Translate.com's Website Translator?
|
19 |
+

|
20 |
+
- Automatic free machine translations of your website text.
|
21 |
+
- Easy management of your website translations via your Translate.com portal.
|
22 |
+
- Order professional human translations of your website text.
|
23 |
+
- Customizable language selection widget to allow your visitor to see your site in their language of choice.
|
24 |
+
- Automatic replacement of images and background images based on your visitor's preferred language.
|
25 |
+
- Automatic replacement of HTML5 audio and video based on your visitor's preferred language.
|
26 |
+

|
27 |
+
Installation and use:
|
28 |
+

|
29 |
+
1. Install the extension through Magento Connect.
|
30 |
+
2. In your Admin Panel main menu, go to Translate.com > Website Translator.
|
31 |
+
3. Enter your valid key, choose your desired options and click save.
|
32 |
+
4. That's it! As pages are visited on your site, text will automatically be sent to our servers for translation. Changes may take up to an hour to reflect on your site.</description>
|
|
|
|
|
33 |
<notes>Initial release</notes>
|
34 |
<authors><author><name>Translate.com</name><user>bobemerge</user><email>bob@emergemedia.com</email></author></authors>
|
35 |
+
<date>2016-11-11</date>
|
36 |
+
<time>16:58:43</time>
|
37 |
+
<contents><target name="magecommunity"><dir name="Translate"><dir name="WebsiteTranslator"><dir name="Block"><dir name="Adminhtml"><file name="WebsiteTranslatorbackend.php" hash="da32b8f953d0cb88f7cf41f280c0e53d"/><file name="WebsiteTranslatorgetstarted.php" hash="9e4ec890f8237d6969f7c8a042834b8d"/></dir><file name=".DS_Store" hash="8f7326c5c7cc99e99ece723e61eae297"/></dir><dir name="Helper"><file name="Data.php" hash="00747498d07f09590fd40e8ae73a8abd"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Websitetranslator"><file name="Collection.php" hash="089d69cd2bf5000bb9c1ba0a6d8e070a"/></dir><file name="Websitetranslator.php" hash="f7a006620f1e93fed00842d762e9ee41"/></dir><file name="Websitetranslator.php" hash="ed12ecd7f82036cd32d7d8abf04b2003"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="WebsitetranslatorbackendController.php" hash="f07c9ae61cf4d4bd502964fe9053f9d7"/><file name="WebsitetranslatorgetstartedController.php" hash="8d0de34dc40eed98ec3c9d344ad444ad"/></dir><file name=".DS_Store" hash="5dc59f72508452a0640a59d9090b8746"/></dir><dir name="etc"><file name="config.xml" hash="0e509936d880ec3013e181e853f14351"/></dir><dir name="sql"><dir name="websitetranslator_setup"><file name="install-1.0.3.php" hash="e9731ed1344f33fb93a005c0a3c2b6d9"/></dir></dir><file name=".DS_Store" hash="628c445f439607014f50a01d24d1dd4c"/></dir><file name=".DS_Store" hash="c4e5520c775e45f3fe40f13c8f48763c"/></dir></target><target name="mageetc"><dir name="modules"><file name="Translate_WebsiteTranslator.xml" hash="48d844a6fd9ce7733dcb0858749a6315"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="websitetranslator.xml" hash="ab54253c248ba7c0664e8c640452275a"/></dir><dir name="template"><dir name="websitetranslator"><file name="websitetranslatorbackend.phtml" hash="2a3287f37439d63228b89fc38fb2ba87"/><file name="websitetranslatorgetstarted.phtml" hash="648b1c2c18f6679d508d1161e695e5b9"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="websitetranslator.xml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="template"><dir name="websitetranslator"><file name="head.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir></dir></dir></target></contents>
|
38 |
<compatible/>
|
39 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
40 |
</package>
|