Version Notes
Adding compatibility for upcoming Magento release
Download this release
Release Info
Developer | Transfluent Ltd |
Extension | Transfluent |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- app/code/community/Transfluent/Translate/Block/Account.php +0 -4
- app/code/community/Transfluent/Translate/Block/Adminhtml/Transfluentorder.php +1 -1
- app/code/community/Transfluent/Translate/Block/Loginform.php +0 -4
- app/code/community/Transfluent/Translate/Block/Regform.php +0 -4
- app/code/community/Transfluent/Translate/Block/Translblock.php +0 -4
- app/code/community/Transfluent/Translate/Helper/Data.php +0 -4
- app/code/community/Transfluent/Translate/Helper/Languages.php +1 -2
- app/code/community/Transfluent/Translate/controllers/Adminhtml/{AccountController.php → TransfluentAccountController.php} +1 -5
- app/code/community/Transfluent/Translate/controllers/Adminhtml/TransfluentorderController.php +7 -15
- app/code/community/Transfluent/Translate/controllers/Adminhtml/TransfluenttranslateController.php +0 -4
- app/code/community/Transfluent/Translate/controllers/TranslationController.php +6 -2
- app/code/community/Transfluent/Translate/etc/config.xml +10 -10
- app/code/community/Transfluent/Translate/etc/system.xml +1 -1
- app/design/adminhtml/default/default/template/transfluent/account/action.phtml +15 -3
- app/design/adminhtml/default/default/template/transfluent/estimate_section.phtml +6 -6
- app/design/adminhtml/default/default/template/transfluent/order/category_step1.phtml +1 -1
- app/design/adminhtml/default/default/template/transfluent/order/category_step2.phtml +2 -2
- app/design/adminhtml/default/default/template/transfluent/order/category_step3.phtml +4 -5
- app/design/adminhtml/default/default/template/transfluent/order/category_step4.phtml +0 -60
- app/design/adminhtml/default/default/template/transfluent/order/category_step5.phtml +2 -2
- app/design/adminhtml/default/default/template/transfluent/order/cms_step1.phtml +1 -1
- app/design/adminhtml/default/default/template/transfluent/order/cms_step2.phtml +2 -2
- app/design/adminhtml/default/default/template/transfluent/order/cms_step3.phtml +4 -4
- app/design/adminhtml/default/default/template/transfluent/order/cms_step5.phtml +1 -1
- app/design/adminhtml/default/default/template/transfluent/product/attributes/edit.phtml +2 -2
- app/design/adminhtml/default/default/template/transfluent/product/category/edit.phtml +2 -2
- app/design/adminhtml/default/default/template/transfluent/product/edit.phtml +2 -2
- app/design/adminhtml/default/default/template/transfluent/product/index.phtml +1 -1
- app/design/adminhtml/default/default/template/transfluent/tag/tag/index.phtml +3 -3
- package.xml +5 -5
app/code/community/Transfluent/Translate/Block/Account.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
class Transfluent_Translate_Block_Account extends Mage_Core_Block_Template {
|
8 |
public function getToken() {
|
9 |
return Mage::getStoreConfig('transfluenttranslate/account/token');
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
3 |
class Transfluent_Translate_Block_Account extends Mage_Core_Block_Template {
|
4 |
public function getToken() {
|
5 |
return Mage::getStoreConfig('transfluenttranslate/account/token');
|
app/code/community/Transfluent/Translate/Block/Adminhtml/Transfluentorder.php
CHANGED
@@ -13,7 +13,7 @@ class Transfluent_Translate_Block_Adminhtml_Transfluentorder extends Mage_Adminh
|
|
13 |
$this->removeButton('add');
|
14 |
$this->addButton('order_reorder', array(
|
15 |
'label' => Mage::helper('sales')->__('Get Quote'),
|
16 |
-
'onclick' => 'setLocation(\'' . $this->getUrl('
|
17 |
|
18 |
//$this->removeButton('save');
|
19 |
$this->_updateButton('save', 'label', 'Place order');
|
13 |
$this->removeButton('add');
|
14 |
$this->addButton('order_reorder', array(
|
15 |
'label' => Mage::helper('sales')->__('Get Quote'),
|
16 |
+
'onclick' => 'setLocation(\'' . $this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep1') . '\')',));
|
17 |
|
18 |
//$this->removeButton('save');
|
19 |
$this->_updateButton('save', 'label', 'Place order');
|
app/code/community/Transfluent/Translate/Block/Loginform.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
class Transfluent_Translate_Block_Loginform extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
8 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {}
|
9 |
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
3 |
class Transfluent_Translate_Block_Loginform extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
4 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {}
|
5 |
|
app/code/community/Transfluent/Translate/Block/Regform.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
class Transfluent_Translate_Block_Regform extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
8 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {}
|
9 |
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
3 |
class Transfluent_Translate_Block_Regform extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
4 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {}
|
5 |
|
app/code/community/Transfluent/Translate/Block/Translblock.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
class Transfluent_Translate_Block_Translblock extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
8 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
9 |
}
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
3 |
class Transfluent_Translate_Block_Translblock extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
4 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
5 |
}
|
app/code/community/Transfluent/Translate/Helper/Data.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
class Transfluent_Translate_Helper_Data extends Mage_Core_Helper_Abstract {
|
8 |
public function getFields($sku) {
|
9 |
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku);
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
3 |
class Transfluent_Translate_Helper_Data extends Mage_Core_Helper_Abstract {
|
4 |
public function getFields($sku) {
|
5 |
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku);
|
app/code/community/Transfluent/Translate/Helper/Languages.php
CHANGED
@@ -262,9 +262,8 @@ EOFJSON;
|
|
262 |
|
263 |
public function getQualityArray($default_level = null) {
|
264 |
$levels = array(
|
265 |
-
'1' => 'Native speaker
|
266 |
'2' => 'Professional translator',
|
267 |
-
//'3' => 'Pair of prof. translators'
|
268 |
);
|
269 |
$levels_out = array();
|
270 |
if ($default_level) {
|
262 |
|
263 |
public function getQualityArray($default_level = null) {
|
264 |
$levels = array(
|
265 |
+
'1' => 'Native speaker',
|
266 |
'2' => 'Professional translator',
|
|
|
267 |
);
|
268 |
$levels_out = array();
|
269 |
if ($default_level) {
|
app/code/community/Transfluent/Translate/controllers/Adminhtml/{AccountController.php → TransfluentAccountController.php}
RENAMED
@@ -1,10 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
-
class Transfluent_Translate_Adminhtml_AccountController extends Mage_Adminhtml_Controller_Action {
|
8 |
public function createAction() {
|
9 |
$email = $this->getRequest()->getParam('email');
|
10 |
$terms = $this->getRequest()->getParam('terms');
|
1 |
<?php
|
2 |
|
3 |
+
class Transfluent_Translate_Adminhtml_TransfluentAccountController extends Mage_Adminhtml_Controller_Action {
|
|
|
|
|
|
|
|
|
4 |
public function createAction() {
|
5 |
$email = $this->getRequest()->getParam('email');
|
6 |
$terms = $this->getRequest()->getParam('terms');
|
app/code/community/Transfluent/Translate/controllers/Adminhtml/TransfluentorderController.php
CHANGED
@@ -10,7 +10,13 @@ class Transfluent_Translate_Adminhtml_TransfluentorderController extends Mage_Ad
|
|
10 |
$quote_id = $this->getRequest()->getParam('quote_id');
|
11 |
$source_store_id = $this->getRequest()->getParam('source_store');
|
12 |
$target_store_id = $this->getRequest()->getParam('target_store');
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
protected function _initAction() {
|
@@ -431,20 +437,6 @@ class Transfluent_Translate_Adminhtml_TransfluentorderController extends Mage_Ad
|
|
431 |
$this->renderLayout();
|
432 |
}
|
433 |
|
434 |
-
public function orderByCategoryStep4Action($init_layout = true) {
|
435 |
-
if ($init_layout) {
|
436 |
-
$this->_initAction();
|
437 |
-
}
|
438 |
-
|
439 |
-
$this->_addContent(
|
440 |
-
$this
|
441 |
-
->getLayout()
|
442 |
-
->createBlock('transfluenttranslate/adminhtml_transfluentorder')
|
443 |
-
->setTemplate('transfluent/order/category_step4.phtml')
|
444 |
-
);
|
445 |
-
$this->renderLayout();
|
446 |
-
}
|
447 |
-
|
448 |
public function orderFromCmsStep5Action() {
|
449 |
$this->_initAction();
|
450 |
|
10 |
$quote_id = $this->getRequest()->getParam('quote_id');
|
11 |
$source_store_id = $this->getRequest()->getParam('source_store');
|
12 |
$target_store_id = $this->getRequest()->getParam('target_store');
|
13 |
+
$quote_type = $this->getRequest()->getParam('type');
|
14 |
+
/*if ($quote_type == 'category') {
|
15 |
+
Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep3", array("quote_id" => $quote_id, "source" => $source_store_id, "target" => $target_store_id)));
|
16 |
+
return;
|
17 |
+
}*/
|
18 |
+
// CMS view handles both of them for now..
|
19 |
+
Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep3", array("quote_id" => $quote_id, "source" => $source_store_id, "target" => $target_store_id)));
|
20 |
}
|
21 |
|
22 |
protected function _initAction() {
|
437 |
$this->renderLayout();
|
438 |
}
|
439 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
public function orderFromCmsStep5Action() {
|
441 |
$this->_initAction();
|
442 |
|
app/code/community/Transfluent/Translate/controllers/Adminhtml/TransfluenttranslateController.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Transfluent extension for Magento, (c) 2013, 1.1.1
|
5 |
-
* Author: coders@transfluent.com
|
6 |
-
*/
|
7 |
class Transfluent_Translate_Adminhtml_TransfluenttranslateController extends Mage_Adminhtml_Controller_Action {
|
8 |
|
9 |
protected function _initAction() {
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
3 |
class Transfluent_Translate_Adminhtml_TransfluenttranslateController extends Mage_Adminhtml_Controller_Action {
|
4 |
|
5 |
protected function _initAction() {
|
app/code/community/Transfluent/Translate/controllers/TranslationController.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
class Transfluent_Translate_TranslationController extends Mage_Core_Controller_Front_Action {
|
|
|
4 |
private $_handlers = array(
|
5 |
"/store\-([0-9]{1,})\-tag\-([0-9]{1,})/" => '_saveTagName',
|
6 |
"/store\-([0-9]{1,})\-product\-([0-9]{1,})\-(.*)/" => '_saveProductDetails',
|
@@ -73,6 +74,7 @@ class Transfluent_Translate_TranslationController extends Mage_Core_Controller_F
|
|
73 |
$source_store_id = $this->getRequest()->getParam('source_store');
|
74 |
$target_store_id = $this->getRequest()->getParam('target_store');
|
75 |
$quote_id = $this->getRequest()->getParam('quote_id');
|
|
|
76 |
|
77 |
$mage_admin_url = Mage::getModel('adminhtml/url');
|
78 |
/** @var Mage_Adminhtml_Model_Url $mage_admin_url */
|
@@ -83,7 +85,7 @@ class Transfluent_Translate_TranslationController extends Mage_Core_Controller_F
|
|
83 |
|
84 |
if ($admin_html_helper->getCurrentUserId()) {
|
85 |
// LOGGED-IN: REDIRECT TO: BASE + transfluent/adminhtml_transfluentorder/redirectToQuote/quote_id/HkvrSz7z/source_store/1/target_store/4/
|
86 |
-
$quote_order_step3_url = $mage_admin_url->getUrl('
|
87 |
$this->getResponse()->setRedirect($quote_order_step3_url);
|
88 |
return;
|
89 |
}
|
@@ -91,7 +93,9 @@ class Transfluent_Translate_TranslationController extends Mage_Core_Controller_F
|
|
91 |
$cookie = Mage::getSingleton('core/cookie');
|
92 |
/** @var Mage_Core_Model_Cookie $cookie */
|
93 |
$cookie->set('_tf_restore_quote', serialize(array('source' => $source_store_id, 'target' => $target_store_id, 'quote_id' => $quote_id)), null, '/');
|
94 |
-
|
|
|
|
|
95 |
$this->getResponse()->setRedirect($quote_order_step3_url);
|
96 |
}
|
97 |
|
1 |
<?php
|
2 |
|
3 |
class Transfluent_Translate_TranslationController extends Mage_Core_Controller_Front_Action {
|
4 |
+
//class Transfluent_Translate_TranslationController extends Mage_Adminhtml_Controller_Action { // @todo: Check..
|
5 |
private $_handlers = array(
|
6 |
"/store\-([0-9]{1,})\-tag\-([0-9]{1,})/" => '_saveTagName',
|
7 |
"/store\-([0-9]{1,})\-product\-([0-9]{1,})\-(.*)/" => '_saveProductDetails',
|
74 |
$source_store_id = $this->getRequest()->getParam('source_store');
|
75 |
$target_store_id = $this->getRequest()->getParam('target_store');
|
76 |
$quote_id = $this->getRequest()->getParam('quote_id');
|
77 |
+
$quote_type = $this->getRequest()->getParam('type');
|
78 |
|
79 |
$mage_admin_url = Mage::getModel('adminhtml/url');
|
80 |
/** @var Mage_Adminhtml_Model_Url $mage_admin_url */
|
85 |
|
86 |
if ($admin_html_helper->getCurrentUserId()) {
|
87 |
// LOGGED-IN: REDIRECT TO: BASE + transfluent/adminhtml_transfluentorder/redirectToQuote/quote_id/HkvrSz7z/source_store/1/target_store/4/
|
88 |
+
$quote_order_step3_url = $mage_admin_url->getUrl('adminhtml/Adminhtml_Transfluentorder/redirectToQuote', array('source_store' => $source_store_id, 'target_store' => $target_store_id, 'quote_id' => $quote_id, 'type' => $quote_type));
|
89 |
$this->getResponse()->setRedirect($quote_order_step3_url);
|
90 |
return;
|
91 |
}
|
93 |
$cookie = Mage::getSingleton('core/cookie');
|
94 |
/** @var Mage_Core_Model_Cookie $cookie */
|
95 |
$cookie->set('_tf_restore_quote', serialize(array('source' => $source_store_id, 'target' => $target_store_id, 'quote_id' => $quote_id)), null, '/');
|
96 |
+
//$uri_action = ($quote_type == 'category' ? 'orderByCategoryStep3' : 'orderFromCmsStep3'); // CMS view handles both of them for now..
|
97 |
+
$uri_action = 'orderFromCmsStep3';
|
98 |
+
$quote_order_step3_url = $mage_admin_url->getUrl('adminhtml/Adminhtml_Transfluentorder/' . $uri_action);
|
99 |
$this->getResponse()->setRedirect($quote_order_step3_url);
|
100 |
}
|
101 |
|
app/code/community/Transfluent/Translate/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Transfluent_Translate>
|
5 |
-
<version>1.4.
|
6 |
</Transfluent_Translate>
|
7 |
</modules>
|
8 |
|
@@ -13,7 +13,7 @@
|
|
13 |
|
14 |
<args>
|
15 |
<module>Transfluent_Translate</module>
|
16 |
-
<frontName>
|
17 |
</args>
|
18 |
</transfluenttranslate>
|
19 |
</routers>
|
@@ -99,13 +99,13 @@
|
|
99 |
|
100 |
<admin>
|
101 |
<routers>
|
102 |
-
<
|
103 |
-
<use>admin</use>
|
104 |
<args>
|
105 |
-
<
|
106 |
-
|
|
|
107 |
</args>
|
108 |
-
</
|
109 |
</routers>
|
110 |
</admin>
|
111 |
|
@@ -145,16 +145,16 @@
|
|
145 |
<submenu translate="title" module="transfluenttranslate">
|
146 |
<title>Order translations by category</title>
|
147 |
<sort_order>1</sort_order>
|
148 |
-
<action>
|
149 |
</submenu>
|
150 |
<submenu2 translate="title" module="transfluenttranslate">
|
151 |
<title>Order translations for CMS content</title>
|
152 |
<sort_order>2</sort_order>
|
153 |
-
<action>
|
154 |
</submenu2>
|
155 |
</children>
|
156 |
<sort_order>71</sort_order>
|
157 |
-
<action>
|
158 |
</transfluenttranslate>
|
159 |
</menu>
|
160 |
</adminhtml>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Transfluent_Translate>
|
5 |
+
<version>1.4.1</version>
|
6 |
</Transfluent_Translate>
|
7 |
</modules>
|
8 |
|
13 |
|
14 |
<args>
|
15 |
<module>Transfluent_Translate</module>
|
16 |
+
<frontName>transfluenttranslate</frontName>
|
17 |
</args>
|
18 |
</transfluenttranslate>
|
19 |
</routers>
|
99 |
|
100 |
<admin>
|
101 |
<routers>
|
102 |
+
<adminhtml>
|
|
|
103 |
<args>
|
104 |
+
<modules>
|
105 |
+
<transfluenttranslate after="Mage_Adminhtml">Transfluent_Translate</transfluenttranslate>
|
106 |
+
</modules>
|
107 |
</args>
|
108 |
+
</adminhtml>
|
109 |
</routers>
|
110 |
</admin>
|
111 |
|
145 |
<submenu translate="title" module="transfluenttranslate">
|
146 |
<title>Order translations by category</title>
|
147 |
<sort_order>1</sort_order>
|
148 |
+
<action>adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep1</action>
|
149 |
</submenu>
|
150 |
<submenu2 translate="title" module="transfluenttranslate">
|
151 |
<title>Order translations for CMS content</title>
|
152 |
<sort_order>2</sort_order>
|
153 |
+
<action>adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep1</action>
|
154 |
</submenu2>
|
155 |
</children>
|
156 |
<sort_order>71</sort_order>
|
157 |
+
<action>adminhtml/Adminhtml_Transfluenttranslate/index</action>
|
158 |
</transfluenttranslate>
|
159 |
</menu>
|
160 |
</adminhtml>
|
app/code/community/Transfluent/Translate/etc/system.xml
CHANGED
@@ -112,7 +112,7 @@
|
|
112 |
or visit <a href="https://www.transfluent.com/my-account/#/creditcard" target="_blank">your Transfluent account page</a> to setup a credit card.
|
113 |
</p>
|
114 |
<strong>Support:</strong> <a href="mailto:support@transfluent.com">support@transfluent.com</a><br>
|
115 |
-
<strong>Extension version:</strong> 1.4.
|
116 |
<strong>Extension homepage:</strong> <a href="http://www.transfluent.com/products/magento/">transfluent.com/products/magento</a>
|
117 |
]]></comment>
|
118 |
<fields>
|
112 |
or visit <a href="https://www.transfluent.com/my-account/#/creditcard" target="_blank">your Transfluent account page</a> to setup a credit card.
|
113 |
</p>
|
114 |
<strong>Support:</strong> <a href="mailto:support@transfluent.com">support@transfluent.com</a><br>
|
115 |
+
<strong>Extension version:</strong> 1.4.1<br>
|
116 |
<strong>Extension homepage:</strong> <a href="http://www.transfluent.com/products/magento/">transfluent.com/products/magento</a>
|
117 |
]]></comment>
|
118 |
<fields>
|
app/design/adminhtml/default/default/template/transfluent/account/action.phtml
CHANGED
@@ -1,9 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<script type="text/javascript">
|
2 |
//<![CDATA[
|
3 |
var transfluentAccount = new TransfluentAccount({
|
4 |
-
cUrl: '
|
5 |
-
aUrl: '
|
6 |
-
lUrl: '
|
7 |
});
|
8 |
|
9 |
function transfluentCreate() {
|
1 |
+
<?php
|
2 |
+
$mage_admin_url = Mage::getModel('adminhtml/url');
|
3 |
+
/** @var Mage_Adminhtml_Model_Url $mage_admin_url */
|
4 |
+
$mage_admin_url->setStore(0);
|
5 |
+
$mage_admin_url->setControllerName('Adminhtml_TransfluentAccount');
|
6 |
+
$logout_url = clone $mage_admin_url;
|
7 |
+
$logout_url->setActionName('logout');
|
8 |
+
$create_account_url = clone $mage_admin_url;
|
9 |
+
$create_account_url->setActionName('create');
|
10 |
+
$authenticate_url = clone $mage_admin_url;
|
11 |
+
$authenticate_url->setActionName('authenticate');
|
12 |
+
?>
|
13 |
<script type="text/javascript">
|
14 |
//<![CDATA[
|
15 |
var transfluentAccount = new TransfluentAccount({
|
16 |
+
cUrl: '<?=$create_account_url->getUrl()?>',
|
17 |
+
aUrl: '<?=$authenticate_url->getUrl()?>',
|
18 |
+
lUrl: '<?=$logout_url->getUrl()?>'
|
19 |
});
|
20 |
|
21 |
function transfluentCreate() {
|
app/design/adminhtml/default/default/template/transfluent/estimate_section.phtml
CHANGED
@@ -70,10 +70,10 @@ if (empty($possible_source_languages)) {
|
|
70 |
<script type="text/javascript">
|
71 |
//<![CDATA[
|
72 |
var estimate = new Estimate("<?php echo Mage::app()->getRequest()->getParam('store', 0) ?>", {
|
73 |
-
prepdata: '<?php echo $this->getUrl('
|
74 |
-
savedata: '<?php echo $this->getUrl('
|
75 |
-
pushtext: '<?php echo $this->getUrl('
|
76 |
-
esttexts: '<?php echo $this->getUrl('
|
77 |
});
|
78 |
|
79 |
function estimateAll() {
|
@@ -81,8 +81,8 @@ if (empty($possible_source_languages)) {
|
|
81 |
}
|
82 |
|
83 |
var postEstimate = new PostEstimate({
|
84 |
-
transl: '<?php echo $this->getUrl('
|
85 |
-
cancel: '<?php echo $this->getUrl('
|
86 |
});
|
87 |
|
88 |
function translateEstimated() {
|
70 |
<script type="text/javascript">
|
71 |
//<![CDATA[
|
72 |
var estimate = new Estimate("<?php echo Mage::app()->getRequest()->getParam('store', 0) ?>", {
|
73 |
+
prepdata: '<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/preparedata') ?>',
|
74 |
+
savedata: '<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/savedata') ?>',
|
75 |
+
pushtext: '<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/pushtext') ?>',
|
76 |
+
esttexts: '<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/estimatetexts') ?>'
|
77 |
});
|
78 |
|
79 |
function estimateAll() {
|
81 |
}
|
82 |
|
83 |
var postEstimate = new PostEstimate({
|
84 |
+
transl: '<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/translateestimated') ?>',
|
85 |
+
cancel: '<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/deleteestimated') ?>'
|
86 |
});
|
87 |
|
88 |
function translateEstimated() {
|
app/design/adminhtml/default/default/template/transfluent/order/category_step1.phtml
CHANGED
@@ -20,7 +20,7 @@ $collision_strategy = $this->getRequest()->getParam('collision');
|
|
20 |
</div>
|
21 |
|
22 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
23 |
-
<form action="<?=$this->getUrl('
|
24 |
<h4 class="icon-head head-edit-form fieldset-legend">Translation options</h4>
|
25 |
<div class="form-buttons"></div>
|
26 |
</div>
|
20 |
</div>
|
21 |
|
22 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
23 |
+
<form action="<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep2')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
24 |
<h4 class="icon-head head-edit-form fieldset-legend">Translation options</h4>
|
25 |
<div class="form-buttons"></div>
|
26 |
</div>
|
app/design/adminhtml/default/default/template/transfluent/order/category_step2.phtml
CHANGED
@@ -23,7 +23,7 @@ $source_store = Mage::app()->getStore($source);
|
|
23 |
</div>
|
24 |
|
25 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
26 |
-
<form action="<?=$this->getUrl('
|
27 |
<h4 class="icon-head head-edit-form fieldset-legend">Select categories to translate content from</h4>
|
28 |
<div class="form-buttons"></div>
|
29 |
</div>
|
@@ -40,7 +40,7 @@ $source_store = Mage::app()->getStore($source);
|
|
40 |
?>
|
41 |
</div>
|
42 |
<div style="text-align: right; margin-right: 33%;">
|
43 |
-
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('
|
44 |
<button title="Next" type="submit" class="scalable save">Next</button>
|
45 |
</div>
|
46 |
|
23 |
</div>
|
24 |
|
25 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
26 |
+
<form action="<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep3')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
27 |
<h4 class="icon-head head-edit-form fieldset-legend">Select categories to translate content from</h4>
|
28 |
<div class="form-buttons"></div>
|
29 |
</div>
|
40 |
?>
|
41 |
</div>
|
42 |
<div style="text-align: right; margin-right: 33%;">
|
43 |
+
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep1')?>').submit(); return false;">Back</button>
|
44 |
<button title="Next" type="submit" class="scalable save">Next</button>
|
45 |
</div>
|
46 |
|
app/design/adminhtml/default/default/template/transfluent/order/category_step3.phtml
CHANGED
@@ -27,7 +27,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
27 |
</div>
|
28 |
|
29 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
30 |
-
<form action="<?=$this->getUrl('
|
31 |
<h4 class="icon-head head-edit-form fieldset-legend">Get a quote</h4>
|
32 |
<div class="form-buttons"></div>
|
33 |
</div>
|
@@ -66,7 +66,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
66 |
</div>
|
67 |
|
68 |
<div style="margin-right: 33%;">
|
69 |
-
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('
|
70 |
<button title="Refresh" id="quote_refresh_btn" type="submit" class="scalable save">Refresh</button>
|
71 |
<button title="Update" name="update_quote_btn" value="Update quote" id="update_quote_btn" type="submit" class="scalable save" style="display: none;">Update quote</button>
|
72 |
<button title="Order" id="quote_order_btn" type="submit" class="scalable save" onclick="OrderClick(this); return false;" disabled="disabled">Order</button>
|
@@ -80,8 +80,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
80 |
if (!confirm('Are you sure?')) {
|
81 |
return;
|
82 |
}
|
83 |
-
|
84 |
-
$(element).up('form').writeAttribute('action', '<?=$this->getUrl('transfluent/adminhtml_transfluentorder/orderByCategoryStep5')?>').submit();
|
85 |
}
|
86 |
|
87 |
function ChangeAttributes() {
|
@@ -98,7 +97,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
98 |
var refresh_btn = $('quote_refresh_btn');
|
99 |
refresh_btn.hide();
|
100 |
var PollerFunction = function() {
|
101 |
-
new Ajax.Request('<?=$this->getUrl('
|
102 |
parameters: {quote_id: $F('quote_id')},
|
103 |
onSuccess: function (xhr) {
|
104 |
var response = xhr.responseJSON;
|
27 |
</div>
|
28 |
|
29 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
30 |
+
<form action="<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep3')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
31 |
<h4 class="icon-head head-edit-form fieldset-legend">Get a quote</h4>
|
32 |
<div class="form-buttons"></div>
|
33 |
</div>
|
66 |
</div>
|
67 |
|
68 |
<div style="margin-right: 33%;">
|
69 |
+
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep2')?>').submit(); return false;">Back</button>
|
70 |
<button title="Refresh" id="quote_refresh_btn" type="submit" class="scalable save">Refresh</button>
|
71 |
<button title="Update" name="update_quote_btn" value="Update quote" id="update_quote_btn" type="submit" class="scalable save" style="display: none;">Update quote</button>
|
72 |
<button title="Order" id="quote_order_btn" type="submit" class="scalable save" onclick="OrderClick(this); return false;" disabled="disabled">Order</button>
|
80 |
if (!confirm('Are you sure?')) {
|
81 |
return;
|
82 |
}
|
83 |
+
$(element).up('form').writeAttribute('action', '<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep5')?>').submit();
|
|
|
84 |
}
|
85 |
|
86 |
function ChangeAttributes() {
|
97 |
var refresh_btn = $('quote_refresh_btn');
|
98 |
refresh_btn.hide();
|
99 |
var PollerFunction = function() {
|
100 |
+
new Ajax.Request('<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep3')?>', {
|
101 |
parameters: {quote_id: $F('quote_id')},
|
102 |
onSuccess: function (xhr) {
|
103 |
var response = xhr.responseJSON;
|
app/design/adminhtml/default/default/template/transfluent/order/category_step4.phtml
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/** @var Transfluent_Translate_Helper_Languages $languageHelper */
|
3 |
-
$languageHelper = Mage::helper('transfluenttranslate/languages');
|
4 |
-
|
5 |
-
/** @var Transfluent_Translate_Helper_Category $categoryHelper */
|
6 |
-
$categoryHelper = Mage::helper('transfluenttranslate/category');
|
7 |
-
|
8 |
-
$target = $this->getRequest()->getParam('target');
|
9 |
-
$source = $this->getRequest()->getParam('source');
|
10 |
-
$level = $this->getRequest()->getParam('level');
|
11 |
-
$collision_strategy = $this->getRequest()->getParam('collision');
|
12 |
-
$categories = $this->getRequest()->getParam('chk_group');
|
13 |
-
|
14 |
-
$source_store = Mage::app()->getStore($source);
|
15 |
-
//$target_store = Mage::app()->getStore($target);
|
16 |
-
|
17 |
-
|
18 |
-
//$category = Mage::getModel('catalog/category')->load($source_store->getRootCategoryId());
|
19 |
-
//var_dump($category->debug());
|
20 |
-
|
21 |
-
$quote_id = $this->getData('quote_id');
|
22 |
-
|
23 |
-
?>
|
24 |
-
|
25 |
-
<div class="content-header">
|
26 |
-
<h3 class="icon-head head-products"><?= $languageHelper->__('Order translations by category') ?></h3>
|
27 |
-
</div>
|
28 |
-
|
29 |
-
<div style="padding: 1rem; color: #ccc; margin-top: -1rem;">
|
30 |
-
<span style="color: #666;">1. Choose source&target</span> > <span style="color: #666;">2. Choose categories</span> > <span style="color: #666;">3. Get a quote</span> > <strong style="color: black;">4. Order!</strong>
|
31 |
-
</div>
|
32 |
-
<!--
|
33 |
-
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
34 |
-
<form action="<?=$this->getUrl('transfluent/adminhtml_transfluentorder/orderByCategoryStep5')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
35 |
-
<h4 class="icon-head head-edit-form fieldset-legend">Order</h4>
|
36 |
-
<div class="form-buttons"></div>
|
37 |
-
</div>
|
38 |
-
<div class="fieldset " id="base_fieldset">
|
39 |
-
<div class="hor-scroll">
|
40 |
-
<input type="hidden" name="source" value="<?=$source?>">
|
41 |
-
<input type="hidden" name="target" value="<?=$target?>">
|
42 |
-
<input type="hidden" name="level" value="<?=$level?>">
|
43 |
-
<input type="hidden" name="quote_id" value="<?=$quote_id?>">
|
44 |
-
<input type="hidden" name="collision" value="<?=$collision_strategy?>">
|
45 |
-
<?php
|
46 |
-
foreach ($categories AS $category_id) {
|
47 |
-
?><input type="hidden" name="chk_group[]" value="<?=$category_id?>"><?php
|
48 |
-
}
|
49 |
-
?>
|
50 |
-
|
51 |
-
TBD: Confirm order + place actual order req.!
|
52 |
-
|
53 |
-
<div style="margin-right: 33%;">
|
54 |
-
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('transfluent/adminhtml_transfluentorder/orderByCategoryStep3')?>').submit(); return false;">Back</button>
|
55 |
-
<button title="Order" type="submit" class="scalable save">Order</button>
|
56 |
-
</div>
|
57 |
-
</div>
|
58 |
-
</div>
|
59 |
-
</form></div>
|
60 |
-
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/transfluent/order/category_step5.phtml
CHANGED
@@ -26,13 +26,13 @@ $quote_id = $this->getData('quote_id');
|
|
26 |
</div>
|
27 |
<div class="hor-scroll" id="thanks" style="display: none;">
|
28 |
<h2>Thank you!</h2>
|
29 |
-
<p>Your order has been successfully placed. The ordered items and their progress are shown in
|
30 |
</div>
|
31 |
</div>
|
32 |
</div>
|
33 |
<script>
|
34 |
var PollFunction = function() {
|
35 |
-
new Ajax.Request('<?=$this->getUrl('
|
36 |
parameters: {quote_id: $F('quote_id')},
|
37 |
onSuccess: function (xhr) {
|
38 |
var response = xhr.responseJSON;
|
26 |
</div>
|
27 |
<div class="hor-scroll" id="thanks" style="display: none;">
|
28 |
<h2>Thank you!</h2>
|
29 |
+
<p>Your order has been successfully placed. The ordered items and their progress are shown in "<a href="https://www.transfluent.com/my-account/" target="_blank">My Account</a>" on our website.</p>
|
30 |
</div>
|
31 |
</div>
|
32 |
</div>
|
33 |
<script>
|
34 |
var PollFunction = function() {
|
35 |
+
new Ajax.Request('<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderByCategoryStep3')?>', {
|
36 |
parameters: {quote_id: $F('quote_id')},
|
37 |
onSuccess: function (xhr) {
|
38 |
var response = xhr.responseJSON;
|
app/design/adminhtml/default/default/template/transfluent/order/cms_step1.phtml
CHANGED
@@ -20,7 +20,7 @@ $collision_strategy = $this->getRequest()->getParam('collision');
|
|
20 |
</div>
|
21 |
|
22 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
23 |
-
<form action="<?=$this->getUrl('
|
24 |
<h4 class="icon-head head-edit-form fieldset-legend">Translation options</h4>
|
25 |
<div class="form-buttons"></div>
|
26 |
</div>
|
20 |
</div>
|
21 |
|
22 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
23 |
+
<form action="<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep2')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
24 |
<h4 class="icon-head head-edit-form fieldset-legend">Translation options</h4>
|
25 |
<div class="form-buttons"></div>
|
26 |
</div>
|
app/design/adminhtml/default/default/template/transfluent/order/cms_step2.phtml
CHANGED
@@ -23,7 +23,7 @@ $translate_blocks = $this->getRequest()->getParam('translate_blocks');
|
|
23 |
</div>
|
24 |
|
25 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
26 |
-
<form action="<?=$this->getUrl('
|
27 |
<h4 class="icon-head head-edit-form fieldset-legend">Select CMS pages and static blocks to translate</h4>
|
28 |
<div class="form-buttons"></div>
|
29 |
</div>
|
@@ -110,7 +110,7 @@ $translate_blocks = $this->getRequest()->getParam('translate_blocks');
|
|
110 |
?>
|
111 |
|
112 |
<div style="margin: 1.5rem 0;">
|
113 |
-
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('
|
114 |
<button title="Next" type="submit" class="scalable save">Next</button>
|
115 |
</div>
|
116 |
|
23 |
</div>
|
24 |
|
25 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
26 |
+
<form action="<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep3')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
27 |
<h4 class="icon-head head-edit-form fieldset-legend">Select CMS pages and static blocks to translate</h4>
|
28 |
<div class="form-buttons"></div>
|
29 |
</div>
|
110 |
?>
|
111 |
|
112 |
<div style="margin: 1.5rem 0;">
|
113 |
+
<button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep1')?>').submit(); return false;">Back</button>
|
114 |
<button title="Next" type="submit" class="scalable save">Next</button>
|
115 |
</div>
|
116 |
|
app/design/adminhtml/default/default/template/transfluent/order/cms_step3.phtml
CHANGED
@@ -25,7 +25,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
25 |
</div>
|
26 |
|
27 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
28 |
-
<form action="<?=$this->getUrl('
|
29 |
<h4 class="icon-head head-edit-form fieldset-legend">Get a quote</h4>
|
30 |
<div class="form-buttons"></div>
|
31 |
</div>
|
@@ -51,7 +51,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
51 |
<?php
|
52 |
if ($level) {
|
53 |
// Missing some POST-data, such as level, hints that the quote was restored from an external link -> don't allow going back
|
54 |
-
?><button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('
|
55 |
}
|
56 |
?>
|
57 |
<button title="Refresh" id="quote_refresh_btn" type="submit" class="scalable save">Refresh</button>
|
@@ -70,7 +70,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
70 |
if (!confirm('Are you sure?')) {
|
71 |
return;
|
72 |
}
|
73 |
-
$(element).up('form').writeAttribute('action', '<?=$this->getUrl('
|
74 |
}
|
75 |
|
76 |
document.observe("dom:loaded", function() {
|
@@ -80,7 +80,7 @@ $quote_id = $this->getData('quote_id') ? $this->getData('quote_id') : $this->ge
|
|
80 |
var refresh_btn = $('quote_refresh_btn');
|
81 |
refresh_btn.hide();
|
82 |
var PollerFunction = function() {
|
83 |
-
new Ajax.Request('<?=$this->getUrl('
|
84 |
parameters: {quote_id: $F('quote_id')},
|
85 |
onSuccess: function (xhr) {
|
86 |
var response = xhr.responseJSON;
|
25 |
</div>
|
26 |
|
27 |
<div class="entry-edit" style="width: 33%; min-width: 550px;">
|
28 |
+
<form action="<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep4')?>" method="post" id="edit_form"><div><input name="form_key" type="hidden" value="<?=Mage::getSingleton('core/session')->getFormKey()?>"></div><div class="entry-edit-head">
|
29 |
<h4 class="icon-head head-edit-form fieldset-legend">Get a quote</h4>
|
30 |
<div class="form-buttons"></div>
|
31 |
</div>
|
51 |
<?php
|
52 |
if ($level) {
|
53 |
// Missing some POST-data, such as level, hints that the quote was restored from an external link -> don't allow going back
|
54 |
+
?><button title="Back" type="button" class="scalable back" onclick="$(this).up('form').writeAttribute('action', '<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep2')?>').submit(); return false;">Back</button><?php
|
55 |
}
|
56 |
?>
|
57 |
<button title="Refresh" id="quote_refresh_btn" type="submit" class="scalable save">Refresh</button>
|
70 |
if (!confirm('Are you sure?')) {
|
71 |
return;
|
72 |
}
|
73 |
+
$(element).up('form').writeAttribute('action', '<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep5')?>').submit();
|
74 |
}
|
75 |
|
76 |
document.observe("dom:loaded", function() {
|
80 |
var refresh_btn = $('quote_refresh_btn');
|
81 |
refresh_btn.hide();
|
82 |
var PollerFunction = function() {
|
83 |
+
new Ajax.Request('<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep3')?>', {
|
84 |
parameters: {quote_id: $F('quote_id')},
|
85 |
onSuccess: function (xhr) {
|
86 |
var response = xhr.responseJSON;
|
app/design/adminhtml/default/default/template/transfluent/order/cms_step5.phtml
CHANGED
@@ -32,7 +32,7 @@ $quote_id = $this->getData('quote_id');
|
|
32 |
</div>
|
33 |
<script>
|
34 |
var PollFunction = function() {
|
35 |
-
new Ajax.Request('<?=$this->getUrl('
|
36 |
parameters: {quote_id: $F('quote_id')},
|
37 |
onSuccess: function (xhr) {
|
38 |
var response = xhr.responseJSON;
|
32 |
</div>
|
33 |
<script>
|
34 |
var PollFunction = function() {
|
35 |
+
new Ajax.Request('<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/orderFromCmsStep3')?>', {
|
36 |
parameters: {quote_id: $F('quote_id')},
|
37 |
onSuccess: function (xhr) {
|
38 |
var response = xhr.responseJSON;
|
app/design/adminhtml/default/default/template/transfluent/product/attributes/edit.phtml
CHANGED
@@ -64,7 +64,7 @@ print '</div>';
|
|
64 |
}
|
65 |
stores.push(value);
|
66 |
});
|
67 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
68 |
method: 'post',
|
69 |
parameters: {
|
70 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
@@ -111,7 +111,7 @@ print '</div>';
|
|
111 |
}
|
112 |
stores.push(value);
|
113 |
});
|
114 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
115 |
method: 'post',
|
116 |
parameters: {
|
117 |
'from_store': $('translateto').getValue(),
|
64 |
}
|
65 |
stores.push(value);
|
66 |
});
|
67 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluentorder/attribute_order') ?>', {
|
68 |
method: 'post',
|
69 |
parameters: {
|
70 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
111 |
}
|
112 |
stores.push(value);
|
113 |
});
|
114 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/get_attribute_quote') ?>', {
|
115 |
method: 'post',
|
116 |
parameters: {
|
117 |
'from_store': $('translateto').getValue(),
|
app/design/adminhtml/default/default/template/transfluent/product/category/edit.phtml
CHANGED
@@ -59,7 +59,7 @@ print '</div>';
|
|
59 |
}
|
60 |
stores.push(value);
|
61 |
});
|
62 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
63 |
method: 'post',
|
64 |
parameters: {
|
65 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
@@ -115,7 +115,7 @@ print '</div>';
|
|
115 |
}
|
116 |
stores.push(value);
|
117 |
});
|
118 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
119 |
method: 'post',
|
120 |
parameters: {
|
121 |
'from_store': $('translateto').getValue(),
|
59 |
}
|
60 |
stores.push(value);
|
61 |
});
|
62 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluentorder/category_order') ?>', {
|
63 |
method: 'post',
|
64 |
parameters: {
|
65 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
115 |
}
|
116 |
stores.push(value);
|
117 |
});
|
118 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/get_category_quote') ?>', {
|
119 |
method: 'post',
|
120 |
parameters: {
|
121 |
'from_store': $('translateto').getValue(),
|
app/design/adminhtml/default/default/template/transfluent/product/edit.phtml
CHANGED
@@ -208,7 +208,7 @@ MSG
|
|
208 |
if ($('force_translate')) {
|
209 |
force_translate = $('force_translate').getValue();
|
210 |
}
|
211 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
212 |
method: 'post',
|
213 |
parameters: {
|
214 |
'store_from': $('store_language').getValue(),
|
@@ -279,7 +279,7 @@ MSG
|
|
279 |
if ($('tf_translate_instructions_txt')) {
|
280 |
params.instructions = $('tf_translate_instructions_txt').getValue();
|
281 |
}
|
282 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
283 |
method: 'post',
|
284 |
parameters: params,
|
285 |
onSuccess: function (response) {
|
208 |
if ($('force_translate')) {
|
209 |
force_translate = $('force_translate').getValue();
|
210 |
}
|
211 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluentorder/order') ?>', {
|
212 |
method: 'post',
|
213 |
parameters: {
|
214 |
'store_from': $('store_language').getValue(),
|
279 |
if ($('tf_translate_instructions_txt')) {
|
280 |
params.instructions = $('tf_translate_instructions_txt').getValue();
|
281 |
}
|
282 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/get_quote') ?>', {
|
283 |
method: 'post',
|
284 |
parameters: params,
|
285 |
onSuccess: function (response) {
|
app/design/adminhtml/default/default/template/transfluent/product/index.phtml
CHANGED
@@ -65,7 +65,7 @@ if (empty($fields_to_translate_in)) {
|
|
65 |
<script type="text/javascript">
|
66 |
function OrderTranslation(order_btn) {
|
67 |
$(order_btn).disable();
|
68 |
-
new Ajax.Request('<?=$this->getUrl('
|
69 |
method: 'post',
|
70 |
parameters: {
|
71 |
'translate_from': '<?=$store_from_id?>',
|
65 |
<script type="text/javascript">
|
66 |
function OrderTranslation(order_btn) {
|
67 |
$(order_btn).disable();
|
68 |
+
new Ajax.Request('<?=$this->getUrl('adminhtml/Adminhtml_Transfluentorder/grid_order')?>', {
|
69 |
method: 'post',
|
70 |
parameters: {
|
71 |
'translate_from': '<?=$store_from_id?>',
|
app/design/adminhtml/default/default/template/transfluent/tag/tag/index.phtml
CHANGED
@@ -19,10 +19,10 @@ $language_helper = Mage::helper('transfluenttranslate/languages');
|
|
19 |
|
20 |
window.onload = function () {
|
21 |
GetQuote();
|
22 |
-
}
|
23 |
|
24 |
function GetQuote() {
|
25 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
26 |
method: 'post',
|
27 |
parameters: {
|
28 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
@@ -157,7 +157,7 @@ $language_helper = Mage::helper('transfluenttranslate/languages');
|
|
157 |
|
158 |
function OrderTranslation(order_btn) {
|
159 |
$(order_btn).disable();
|
160 |
-
new Ajax.Request('<?php echo $this->getUrl('
|
161 |
method: 'post',
|
162 |
parameters: {
|
163 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
19 |
|
20 |
window.onload = function () {
|
21 |
GetQuote();
|
22 |
+
};
|
23 |
|
24 |
function GetQuote() {
|
25 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluenttranslate/get_tag_quote') ?>', {
|
26 |
method: 'post',
|
27 |
parameters: {
|
28 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
157 |
|
158 |
function OrderTranslation(order_btn) {
|
159 |
$(order_btn).disable();
|
160 |
+
new Ajax.Request('<?php echo $this->getUrl('adminhtml/Adminhtml_Transfluentorder/tag_order') ?>', {
|
161 |
method: 'post',
|
162 |
parameters: {
|
163 |
'instructions': $('tf_translate_instructions_txt').getValue(),
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Transfluent</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license>MIT</license>
|
7 |
<channel>community</channel>
|
@@ -18,11 +18,11 @@
|
|
18 |
<description><p>The Transfluent plugin automates the process of translating product and category information using human translators. Magento admins need only to select what to translate and click order.</p>
|
19 |

|
20 |
<p>Translating content is handled in our backend using a vast network of professional translators.</p></description>
|
21 |
-
<notes>
|
22 |
<authors><author><name>Transfluent Ltd</name><user>Transfluent</user><email>coders@transfluent.com</email></author></authors>
|
23 |
-
<date>2015-
|
24 |
-
<time>
|
25 |
-
<contents><target name="magecommunity"><dir name="Transfluent"><dir name="Translate"><dir name="Block"><file name="Account.php" hash="
|
26 |
<compatible/>
|
27 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><extension><name>Core</name><min></min><max></max></extension><extension><name>curl</name><min></min><max></max></extension><extension><name>json</name><min></min><max></max></extension><extension><name>mbstring</name><min></min><max></max></extension></required></dependencies>
|
28 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Transfluent</name>
|
4 |
+
<version>1.4.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>MIT</license>
|
7 |
<channel>community</channel>
|
18 |
<description><p>The Transfluent plugin automates the process of translating product and category information using human translators. Magento admins need only to select what to translate and click order.</p>
|
19 |

|
20 |
<p>Translating content is handled in our backend using a vast network of professional translators.</p></description>
|
21 |
+
<notes>Adding compatibility for upcoming Magento release</notes>
|
22 |
<authors><author><name>Transfluent Ltd</name><user>Transfluent</user><email>coders@transfluent.com</email></author></authors>
|
23 |
+
<date>2015-10-21</date>
|
24 |
+
<time>14:26:14</time>
|
25 |
+
<contents><target name="magecommunity"><dir name="Transfluent"><dir name="Translate"><dir name="Block"><file name="Account.php" hash="64995360d00bb063736be0f12065452c"/><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="d2827c5587a2bb7c8664ff92c3dcf5d7"/><dir name="Renderer"><file name="Language.php" hash="cfc3a15752ecc6f7aab870ea6834c1df"/><file name="LanguagePair.php" hash="8d1c1959b44b487570d135eb5758a63b"/><file name="Level.php" hash="4a8f278da146ce9c8108758924bea667"/><file name="SourceText.php" hash="23c33835a99e64d575b101491774ed89"/><file name="Store.php" hash="4639d9f82bb498e57842a83110573e0c"/></dir></dir></dir><dir name="Tag"><dir name="Tag"><file name="Grid.php" hash="24647d2a73089769f664f7ae8f686597"/></dir></dir><dir name="Transfluentorder"><dir name="Edit"><file name="Form.php" hash="17fc3866562d4820c251ed17cc154b4d"/><dir name="Tab"><file name="Form.php" hash="3d45b7754d0044de84f6d40cb4cca9bf"/></dir><file name="Tabs.php" hash="5654a57d38cb31fb7159ffea72380adb"/></dir><file name="Edit.php" hash="e4a7206b94ec73e6573e62d22efc61ba"/></dir><file name="Transfluentorder.php" hash="d7b1b9286ce4bc825aba90869f556f57"/><dir name="Transfluenttranslate"><dir name="Edit"><file name="Form.php" hash="9e9d2152d4dd8fe936558a88afd1c554"/><dir name="Tab"><file name="Form.php" hash="d6bb7a75b800f0dfb9a85d6b8547d3d2"/></dir><file name="Tabs.php" hash="1e4e31e2e4be31918e4db4d677092759"/></dir><file name="Edit.php" hash="596dc94ba740e312ad1ea8a3a86bdc43"/><file name="Grid.php" hash="275f7dd4f8abb376a51bab8ee815f8f9"/></dir><file name="Transfluenttranslate.php" hash="c9a69e2dc7bb9ded6a61db0988b4842f"/></dir><file name="Estimate.php" hash="bc70c44df7c0522dc56d2039ce73dc64"/><file name="Help.php" hash="1c6779b04425381242c053baf54cac1f"/><file name="Loginform.php" hash="0662a26391b83f075e0b3ddf6a50e854"/><file name="Regform.php" hash="1a21630f4971b98b456464566f037018"/><file name="Translblock.php" hash="2171980ac113e56bbff73745f3c03e95"/></dir><dir name="Exception"><file name="Base.php" hash="e0ab547033d95d94820a5cbd58dea6f5"/><file name="EBackendCustomerHasNoBillingAgreement.php" hash="87f798c9e376b2392f33005181028e6b"/><file name="EFailedToUpdateOrder.php" hash="4261e774331f5e68864409c687e87e84"/><file name="EInvalidInput.php" hash="9e68fc972d84da619bc0f59a0309c673"/><file name="EInvalidJob.php" hash="be82fd6fe0c1dbc88be57fa4fd923196"/><file name="EInvalidTagFormat.php" hash="c8ac44aaec31e4ab77655ab85434724b"/><file name="ELanguagePairNotSupported.php" hash="696af3edef69e5ef009bbbd766db97ae"/><file name="ETagNotFound.php" hash="6bc8d1f2a8a5cbdfa9e83be92532e159"/><file name="ETransfluentAuthenticationExpired.php" hash="31d78696b92490440689d517ce3961ad"/><file name="ETransfluentAuthenticationExpiredBase.php" hash="5f31f311c1242c956dbe03ed56b89e8e"/><file name="ETransfluentInvalidInputTags.php" hash="d7e056e164a93a6fd9f9cffbc31664f8"/><file name="ETransfluentNothingToTranslate.php" hash="6b9aef0ccc8848dbbe33e4d55742a789"/><file name="ETransfluentOrderFail.php" hash="019f6eea7ea672217a6297ad1028ed02"/><file name="ETransfluentProductHasNoFieldsToTranslate.php" hash="324c6a7f92a4b2367ad9253aae319aa2"/><file name="ETransfluentProductNotFound.php" hash="d1ae6d72c99ba0061c3972e56f7508c1"/><file name="ETransfluentSomeSelectedProductsNotFound.php" hash="aaa71cede2f1136e8f6700f35bb3c541"/><file name="ETransfluentTagsNothingToTranslate.php" hash="aaec4494fcfa5f5801cc41d2488063b2"/><file name="ETransfluentUnknownBackendResponse.php" hash="8b88d91c6069383091b46416236fb516"/><file name="ETransfluentUnknownError.php" hash="f27e0198db51ae862cc69d969238acff"/><file name="ETransfluentUnknownErrorNoEstimate.php" hash="714d3ad48595f0a7f271ff4d6e41d5b7"/><file name="ETransfluentUnknownErrorTags.php" hash="6b56cfb2b97bed42edaff02e409ded3e"/><file name="EUnauthorized.php" hash="eb1ca081eebdc497cde30cd85337bc6e"/></dir><dir name="Helper"><file name="Category.php" hash="cfd0a78eb787b2c63e5d3323c41e0559"/><file name="Constant.php" hash="76af7760107c984a86a8522d08f33529"/><file name="Data.php" hash="a9604a97b35ccd8e28db12ad4e6877f2"/><file name="Languages.php" hash="50691b2f45b7a6591edd6a84ea41ab79"/><file name="Product.php" hash="ee04f0c62cdeef260c677cd1fc363041"/><file name="Tag.php" hash="aba096e9a6207e7f2055db4733c1b839"/><file name="Text.php" hash="4e5c084ac4e849d6fe2614dfef77c932"/><file name="Util.php" hash="2db7fdba0b945821e12746c45fb6bf9b"/></dir><dir name="Model"><file name="AttributeName.php" hash="97619966fb9c04b031d2cae5147fdb21"/><file name="AttributeOption.php" hash="39007a2e2821e5853b6cfefe0e1a1c17"/><dir name="Base"><file name="Backendclient.php" hash="0d0c07e0b59915739b8a341de2e7a6d4"/></dir><file name="CategoryDetail.php" hash="3a0ce226c17ef8280ca9001c77e0d275"/><dir name="Config"><dir name="Source"><file name="Fromlang.php" hash="600bdc90cb5a08d36003ea651ee398c2"/><file name="Language.php" hash="dcbd7cc51695c71fa0da6da25e0d52d8"/><file name="Quality.php" hash="73987e05216bb54d3b483d751888e602"/></dir></dir><file name="Debugutil.php" hash="3542cff301f9fc0d69072068c384acb3"/><dir name="Mysql4"><dir name="Transfluenttranslate"><file name="Collection.php" hash="80ebe484ed7a4dee8980b4d6c03d1425"/></dir><file name="Transfluenttranslate.php" hash="bef2f82a3c2d2fd25031c654026bdc34"/></dir><file name="Observer.php" hash="96ca21eaefbf03ea6a84cfa1179d4c93"/><file name="ProductDetail.php" hash="5b9a5ce790576fe19e33fbbc63554a24"/><file name="TagName.php" hash="8d59f540cc0f1290b419f95f7dabe7c6"/><file name="Transfluentorder.php" hash="9dd3a64c16d95f7df151be2937a6d09c"/><file name="Transfluenttranslate.php" hash="d973756d579d415cd11033acb7669555"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TransfluentAccountController.php" hash="7bfbdf87df21e83b97c9e309f968e587"/><file name="TransfluentorderController.php" hash="6ec029cc1ab74adf1b7544f868cbcd45"/><file name="TransfluenttranslateController.php" hash="5de5c5717bfc3243cc62d4aaecd87c63"/></dir><file name="TranslationController.php" hash="c53a534d7accc6bd46b04999af207ef0"/></dir><dir name="etc"><file name="config.xml" hash="2a7203a0264530aa761b58c86f03fbb7"/><file name="system.xml" hash="ba7ae5c4bd298cc6b50c10d29b5b8ed9"/></dir><dir name="sql"><dir name="transfluenttranslate_setup"><file name="mysql4-install-1.1.0.php" hash="1691b91c29d66284b51583bf47e5c9ec"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="transfluent.xml" hash="92accb97ee4a7c710ef46e01d1307f83"/></dir><dir name="template"><dir name="transfluent"><dir name="account"><file name="action.phtml" hash="d9004ef99c3d557e7eec896bc0af6f99"/><file name="create.phtml" hash="5b51d4a6f3f444494fe3b053c6f96463"/><file name="logged.phtml" hash="6f024c314550b3f378e5d8399984b082"/><file name="login.phtml" hash="06acb7c890315c53937a1dd5f90275a6"/></dir><file name="estimate.phtml" hash="f2b85bb6943c7ff335d45e2401e0b541"/><file name="estimate_section.phtml" hash="02db1adf41e46f86e4cca94e554db08f"/><dir name="order"><file name="category_step1.phtml" hash="5c1513dfc83b6dc592c21ed901821350"/><file name="category_step2.phtml" hash="48ded6d187b52ba82b8902a0e2631206"/><file name="category_step3.phtml" hash="f32f4d22467c2f2f5a6b03c3bdb273a6"/><file name="category_step5.phtml" hash="c1121856016fa4dbf0bc0dbcd157ff20"/><file name="cms_step1.phtml" hash="dd0533d93a7c36dbdac7a48e45aa4cbd"/><file name="cms_step2.phtml" hash="9ef31cc3bf8444c4f37fa927d8d1f694"/><file name="cms_step3.phtml" hash="58c18eb79aaaab70577c7163684c3898"/><file name="cms_step5.phtml" hash="2831358f2ff6153c8550816163c98ee9"/><file name="listing.phtml" hash="51403a39ad9e396656b9768e597af93d"/></dir><dir name="product"><dir name="attributes"><file name="edit.phtml" hash="e6df3e737f50037938a1b87b78dff58b"/></dir><dir name="category"><file name="edit.phtml" hash="286657bea15ad09522d4293cd012da61"/></dir><file name="edit.phtml" hash="4aa71b35c0ae578a67c3b6c8d0abf906"/><file name="index.phtml" hash="6701bfad68cceffaa4cd5b8775642849"/></dir><dir name="tag"><dir name="tag"><file name="index.phtml" hash="30dd38c745aec12f13a084be7753566d"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Transfluent_Translate.xml" hash="21fbc30a1cba6c2b86b262439eee8ed3"/></dir></target><target name="mageweb"><dir name="js"><dir name="transfluent"><file name="actions.js" hash="471135bf9f5941d0e22d11aa726bfc3b"/><file name="lib.js" hash="0f1029e5a4a1c1e88ca2bb8304bc34e8"/></dir></dir></target></contents>
|
26 |
<compatible/>
|
27 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><extension><name>Core</name><min></min><max></max></extension><extension><name>curl</name><min></min><max></max></extension><extension><name>json</name><min></min><max></max></extension><extension><name>mbstring</name><min></min><max></max></extension></required></dependencies>
|
28 |
</package>
|