Version Notes
Bug fix release
Download this release
Release Info
Developer | Chris |
Extension | straker-translations-easy-translation-platform |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Cms/Block/Grid.php +0 -4
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Cms/Page/Grid.php +0 -4
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Attribute.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Attribute/Grid.php +54 -61
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Category.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Category/Grid.php +8 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Block.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Block/Grid.php +7 -88
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Page.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Page/Grid.php +36 -124
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Product.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Product/Grid.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Attribute/Grid.php +6 -5
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Cms/Block/Grid.php +2 -2
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Cms/Page/Grid.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Confirm/Grid.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Products/Grid.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/Backend.php +5 -20
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/CmsVersion.php +19 -19
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/ConfirmTranslateOptions.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/Frontend.php +5 -22
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/Selected.php +19 -50
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/TextArea.php +0 -13
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/TranslateOptions.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Attribute/Translate.php +48 -52
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Category/Translate.php +14 -20
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Cms/Block/Translate.php +25 -25
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Cms/Page/Translate.php +30 -38
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Job.php +108 -209
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Product/Translate.php +22 -19
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Resource/Job/Attribute/Collection.php +0 -11
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Resource/Job/Cms/Block/Collection.php +0 -12
- app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Resource/Job/Cms/Page/Collection.php +0 -12
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/AttributeController.php +7 -7
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/CategoryController.php +5 -5
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/Cms/BlockController.php +7 -10
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/Cms/PageController.php +7 -8
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/JobController.php +15 -21
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/ProductController.php +7 -11
- app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/CallbackController.php +1 -1
- app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/config.xml +10 -13
- app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/config_live.xml +0 -156
- app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/system.xml +108 -108
- app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/system_live.xml +0 -167
- app/design/adminhtml/default/straker/layout/straker.xml +6 -2
- app/design/adminhtml/default/straker/template/straker/feedback_script.phtml +0 -18
- app/design/adminhtml/default/straker/template/straker/new/attribute/confirm.phtml +1 -1
- package.xml +7 -9
- skin/adminhtml/default/straker/css/straker.css +1 -4
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Cms/Block/Grid.php
CHANGED
@@ -10,10 +10,6 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Cms_Block_Grid
|
|
10 |
'straker.new_entity_id = main_table.block_id',
|
11 |
array('straker_translated' => 'straker.version')
|
12 |
);
|
13 |
-
|
14 |
-
$collection->addFilterToMap('title', 'main_table.title');
|
15 |
-
$collection->addFilterToMap('identifier', 'main_table.identifier');
|
16 |
-
|
17 |
$this->setCollection($collection);
|
18 |
|
19 |
return Mage_Adminhtml_Block_Widget_Grid::_prepareCollection();
|
10 |
'straker.new_entity_id = main_table.block_id',
|
11 |
array('straker_translated' => 'straker.version')
|
12 |
);
|
|
|
|
|
|
|
|
|
13 |
$this->setCollection($collection);
|
14 |
|
15 |
return Mage_Adminhtml_Block_Widget_Grid::_prepareCollection();
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Cms/Page/Grid.php
CHANGED
@@ -10,10 +10,6 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Cms_Page_Grid
|
|
10 |
'straker.new_entity_id = main_table.page_id',
|
11 |
array('straker_translated' => 'straker.version')
|
12 |
);
|
13 |
-
|
14 |
-
$collection->addFilterToMap('title', 'main_table.title');
|
15 |
-
$collection->addFilterToMap('identifier', 'main_table.identifier');
|
16 |
-
|
17 |
$collection->setFirstStoreFlag(true);
|
18 |
$this->setCollection($collection);
|
19 |
|
10 |
'straker.new_entity_id = main_table.page_id',
|
11 |
array('straker_translated' => 'straker.version')
|
12 |
);
|
|
|
|
|
|
|
|
|
13 |
$collection->setFirstStoreFlag(true);
|
14 |
$this->setCollection($collection);
|
15 |
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Attribute.php
CHANGED
@@ -16,7 +16,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Attribute
|
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
-
'onclick' => "setLocation('{$this->getUrl('*/*/
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
+
'onclick' => "setLocation('{$this->getUrl('*/*/copyAll',array('job_id'=>$jobId))}');",
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Attribute/Grid.php
CHANGED
@@ -51,94 +51,87 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Attribute_
|
|
51 |
|
52 |
protected function _prepareColumns() {
|
53 |
$this->addColumn('id', array(
|
54 |
-
'header'
|
55 |
-
'type'
|
56 |
-
'align'
|
57 |
-
'width'
|
58 |
-
'index'
|
59 |
-
'filter_index'
|
60 |
));
|
61 |
|
62 |
$this->addColumn('attribute_id', array(
|
63 |
-
'header'
|
64 |
-
'type'
|
65 |
-
'align'
|
66 |
-
'index'
|
67 |
-
'filter_index'
|
68 |
-
'width' => '50px'
|
69 |
));
|
70 |
|
71 |
$this->addColumn('attribute_code', array(
|
72 |
-
'header'
|
73 |
-
'align'
|
74 |
-
'index'
|
75 |
-
'width' => '50px'
|
76 |
));
|
77 |
|
78 |
|
79 |
$this->addColumn('label_original', array(
|
80 |
-
'header'
|
81 |
-
'renderer'
|
82 |
-
'align'
|
83 |
-
'index'
|
84 |
-
'sortable'
|
85 |
-
'filter'
|
86 |
-
'width' => '15%'
|
87 |
));
|
88 |
|
89 |
-
$this->addColumn('
|
90 |
-
'header'
|
91 |
-
'renderer'
|
92 |
-
'align'
|
93 |
-
'index'
|
94 |
-
'sortable'
|
95 |
-
'filter'
|
96 |
-
'width' => '15%'
|
97 |
-
|
98 |
));
|
99 |
|
100 |
-
$this->addColumn('
|
101 |
-
'header'
|
102 |
-
'renderer'
|
103 |
-
'align'
|
104 |
-
'index'
|
105 |
-
'sortable'
|
106 |
-
'filter'
|
107 |
-
'width' => '20%'
|
108 |
));
|
109 |
|
110 |
$this->addColumn('option_translate', array(
|
111 |
-
'header'
|
112 |
-
'renderer'
|
113 |
-
'align'
|
114 |
-
'index'
|
115 |
-
'sortable'
|
116 |
-
'filter'
|
117 |
-
'width' => '20%'
|
118 |
));
|
119 |
|
120 |
if ($this->getStatusId() == '4' || $this->getStatusId() == '5'){
|
121 |
$this->addColumn('version', array(
|
122 |
-
'header'
|
123 |
-
'renderer'
|
124 |
-
'align'
|
125 |
-
'index'
|
126 |
'filter_condition_callback' => [$this, '_filterVersion'],
|
127 |
-
'options'
|
128 |
'0' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
129 |
'1' => Mage::helper('strakertranslations_easytranslationplatform')->__('Not Published')
|
130 |
],
|
131 |
-
'width' => '
|
132 |
));
|
133 |
}
|
134 |
|
135 |
-
$this->addColumn('view_backend', array(
|
136 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Backend'),
|
137 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Backend',
|
138 |
-
'align' => 'center',
|
139 |
-
'index' => false,
|
140 |
-
'filter' => false,
|
141 |
-
));
|
142 |
|
143 |
return parent::_prepareColumns();
|
144 |
}
|
@@ -169,7 +162,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Attribute_
|
|
169 |
|
170 |
$this->getMassactionBlock()->addItem('add', array(
|
171 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
172 |
-
'url' => $this->getUrl('*/*/
|
173 |
'selected' => 1
|
174 |
));
|
175 |
|
51 |
|
52 |
protected function _prepareColumns() {
|
53 |
$this->addColumn('id', array(
|
54 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('ID'),
|
55 |
+
'type' => 'number',
|
56 |
+
'align' => 'right',
|
57 |
+
'width' => '50px',
|
58 |
+
'index' => 'id',
|
59 |
+
'filter_index' => 'main_table.id'
|
60 |
));
|
61 |
|
62 |
$this->addColumn('attribute_id', array(
|
63 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Attribute ID'),
|
64 |
+
'type' => 'number',
|
65 |
+
'align' => 'left',
|
66 |
+
'index' => 'attribute_id',
|
67 |
+
'filter_index' => 'main_table.attribute_id'
|
|
|
68 |
));
|
69 |
|
70 |
$this->addColumn('attribute_code', array(
|
71 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Attribute Code'),
|
72 |
+
'align' => 'left',
|
73 |
+
'index' => 'attribute_code',
|
|
|
74 |
));
|
75 |
|
76 |
|
77 |
$this->addColumn('label_original', array(
|
78 |
+
'header'=>Mage::helper('strakertranslations_easytranslationplatform')->__('Label - Source'),
|
79 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_AttributeOriginalLabel',
|
80 |
+
'align' => 'center',
|
81 |
+
'index' => false,
|
82 |
+
'sortable'=> false,
|
83 |
+
'filter' => false,
|
|
|
84 |
));
|
85 |
|
86 |
+
$this->addColumn('option_original', array(
|
87 |
+
'header'=>Mage::helper('strakertranslations_easytranslationplatform')->__('Option - Source'),
|
88 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_AttributeOriginalOption',
|
89 |
+
'align' => 'center',
|
90 |
+
'index' => false,
|
91 |
+
'sortable'=> false,
|
92 |
+
'filter' => false,
|
|
|
|
|
93 |
));
|
94 |
|
95 |
+
$this->addColumn('label_translate', array(
|
96 |
+
'header'=>Mage::helper('strakertranslations_easytranslationplatform')->__('Label - Target'),
|
97 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_AttributeTranslateLabel',
|
98 |
+
'align' => 'center',
|
99 |
+
'index' => false,
|
100 |
+
'sortable'=> false,
|
101 |
+
'filter' => false,
|
|
|
102 |
));
|
103 |
|
104 |
$this->addColumn('option_translate', array(
|
105 |
+
'header'=>Mage::helper('strakertranslations_easytranslationplatform')->__('Option - Target'),
|
106 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_AttributeTranslateOption',
|
107 |
+
'align' => 'center',
|
108 |
+
'index' => false,
|
109 |
+
'sortable'=> false,
|
110 |
+
'filter' => false,
|
|
|
111 |
));
|
112 |
|
113 |
if ($this->getStatusId() == '4' || $this->getStatusId() == '5'){
|
114 |
$this->addColumn('version', array(
|
115 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
116 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Version',
|
117 |
+
'align' => 'center',
|
118 |
+
'index' => 'version',
|
119 |
'filter_condition_callback' => [$this, '_filterVersion'],
|
120 |
+
'options' => [
|
121 |
'0' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
122 |
'1' => Mage::helper('strakertranslations_easytranslationplatform')->__('Not Published')
|
123 |
],
|
124 |
+
'width' => '20%'
|
125 |
));
|
126 |
}
|
127 |
|
128 |
+
// $this->addColumn('view_backend', array(
|
129 |
+
// 'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Backend'),
|
130 |
+
// 'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Backend',
|
131 |
+
// 'align' => 'center',
|
132 |
+
// 'index' => false,
|
133 |
+
// 'filter' => false,
|
134 |
+
// ));
|
135 |
|
136 |
return parent::_prepareColumns();
|
137 |
}
|
162 |
|
163 |
$this->getMassactionBlock()->addItem('add', array(
|
164 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
165 |
+
'url' => $this->getUrl('*/*/applyTranslation'),
|
166 |
'selected' => 1
|
167 |
));
|
168 |
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Category.php
CHANGED
@@ -16,7 +16,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Category e
|
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
-
'onclick' => "setLocation('{$this->getUrl('*/*/
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
+
'onclick' => "setLocation('{$this->getUrl('*/*/copyAll',array('job_id'=>$jobId))}');",
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Category/Grid.php
CHANGED
@@ -113,6 +113,13 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Category_G
|
|
113 |
));
|
114 |
}
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
$this->addColumn('view_backend', array(
|
118 |
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Backend'),
|
@@ -153,7 +160,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Category_G
|
|
153 |
|
154 |
$this->getMassactionBlock()->addItem('add', array(
|
155 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
156 |
-
'url' => $this->getUrl('*/*/
|
157 |
'selected' => 1
|
158 |
));
|
159 |
$this->getMassactionBlock()->setTemplate('straker/job/category/massaction.phtml');
|
113 |
));
|
114 |
}
|
115 |
|
116 |
+
$this->addColumn('view_frontend', array(
|
117 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Frontend'),
|
118 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Frontend',
|
119 |
+
'align' => 'center',
|
120 |
+
'index' => false,
|
121 |
+
'filter' => false,
|
122 |
+
));
|
123 |
|
124 |
$this->addColumn('view_backend', array(
|
125 |
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Backend'),
|
160 |
|
161 |
$this->getMassactionBlock()->addItem('add', array(
|
162 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
163 |
+
'url' => $this->getUrl('*/*/applyTranslation'),
|
164 |
'selected' => 1
|
165 |
));
|
166 |
$this->getMassactionBlock()->setTemplate('straker/job/category/massaction.phtml');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Block.php
CHANGED
@@ -16,7 +16,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Block
|
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
-
'onclick' => "setLocation('{$this->getUrl('*/*/
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
+
'onclick' => "setLocation('{$this->getUrl('*/*/copyAll',array('job_id'=>$jobId))}');",
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Block/Grid.php
CHANGED
@@ -28,49 +28,20 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Block_
|
|
28 |
protected function _prepareCollection() {
|
29 |
// $prefix = Mage::getConfig()->getTablePrefix()->__toString();
|
30 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
31 |
-
|
32 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Resource_Job_Cms_Block_Collection $collection */
|
33 |
$collection = Mage::getModel('strakertranslations_easytranslationplatform/job_cms_block')->getCollection()
|
34 |
->addFieldToFilter('main_table.job_id', $job->getId());
|
35 |
|
36 |
//echo $collection->getSelect(); die();
|
37 |
-
$collection->getSelect()
|
38 |
-
->joinLeft(
|
39 |
-
array('translate' => $collection->getTable('strakertranslations_easytranslationplatform/cms_block_translate')),
|
40 |
-
'main_table.id = translate.id
|
41 |
-
AND translate.cms_block_id = main_table.block_id AND translate.job_id = '.$job->getId(),
|
42 |
-
array()
|
43 |
-
);
|
44 |
-
|
45 |
-
//loop through this job's attributes and join them to the collection
|
46 |
-
foreach ($jobAttributes as $jobAttribute) {
|
47 |
-
$attributeCode = $jobAttribute->getColumnName();
|
48 |
-
$collection->getSelect()->joinLeft(
|
49 |
-
array($attributeCode => $collection->getTable('strakertranslations_easytranslationplatform/cms_block_translate')),
|
50 |
-
$attributeCode . '.cms_block_id = main_table.block_id
|
51 |
-
AND ' . $attributeCode . '.column_name = \'' . $attributeCode . '\'
|
52 |
-
AND ' . $attributeCode . '.job_id = ' . $job->getId(),
|
53 |
-
array($attributeCode . '_original' => 'original', $attributeCode . '_translate' => 'translate')
|
54 |
-
);
|
55 |
-
}
|
56 |
-
|
57 |
$this->setCollection($collection);
|
58 |
return parent::_prepareCollection();
|
59 |
}
|
60 |
|
61 |
protected function _prepareColumns() {
|
62 |
-
$this->addColumn('
|
63 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('
|
64 |
-
'align' => 'center',
|
65 |
-
'width' => '50px',
|
66 |
-
'index' => 'id'
|
67 |
-
));
|
68 |
-
|
69 |
-
$this->addColumn('block_id', array(
|
70 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Block ID'),
|
71 |
'align' => 'center',
|
72 |
-
'
|
73 |
-
'index' => 'block_id'
|
74 |
));
|
75 |
|
76 |
$this->addColumn('identifier', array(
|
@@ -79,54 +50,10 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Block_
|
|
79 |
'index' => 'identifier'
|
80 |
));
|
81 |
|
82 |
-
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
83 |
-
$jobAttributes = Mage::getModel('strakertranslations_easytranslationplatform/cms_block_attributes')->getCollection()->addFieldToFilter('job_id', $job->getId());
|
84 |
-
//loop through this job's attributes and add columns to the grid
|
85 |
-
foreach ($jobAttributes as $jobAttribute) {
|
86 |
-
$attributeCode = $jobAttribute->getColumnName();
|
87 |
-
if($attributeCode === 'content'){
|
88 |
-
$this->addColumn($attributeCode . '_original', array(
|
89 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Source', ucfirst($attributeCode)),
|
90 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_TextArea',
|
91 |
-
'align' => 'left',
|
92 |
-
'index' => $attributeCode . '_original',
|
93 |
-
'filter' => false,
|
94 |
-
'sortable' => false
|
95 |
-
));
|
96 |
-
|
97 |
-
$this->addColumn($attributeCode . '_translate', array(
|
98 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Target', ucfirst($attributeCode)),
|
99 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_TextArea',
|
100 |
-
'align' => 'left',
|
101 |
-
'index' => $attributeCode . '_translate',
|
102 |
-
'filter' => false,
|
103 |
-
'sortable' => false
|
104 |
-
));
|
105 |
-
}else{
|
106 |
-
$this->addColumn($attributeCode . '_original', array(
|
107 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Source', ucfirst($attributeCode)),
|
108 |
-
'align' => 'left',
|
109 |
-
'index' => $attributeCode . '_original',
|
110 |
-
// 'filter_index' => $attributeCode.'.translate',
|
111 |
-
'filter' => false,
|
112 |
-
'sortable' => false
|
113 |
-
));
|
114 |
-
|
115 |
-
$this->addColumn($attributeCode . '_translate', array(
|
116 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Target', ucfirst($attributeCode)),
|
117 |
-
'align' => 'left',
|
118 |
-
'index' => $attributeCode . '_translate',
|
119 |
-
// 'filter_index' => $attributeCode.'.translate',
|
120 |
-
'filter' => false,
|
121 |
-
'sortable' => false
|
122 |
-
));
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
if ($this->getStatusId() == '4' || $this->getStatusId() == '5'){
|
127 |
$this->addColumn('version', array(
|
128 |
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
129 |
-
'renderer' => '
|
130 |
'align' => 'center',
|
131 |
'type' => 'options',
|
132 |
'index' => 'version',
|
@@ -139,14 +66,6 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Block_
|
|
139 |
));
|
140 |
}
|
141 |
|
142 |
-
$this->addColumn('view_backend', array(
|
143 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Backend'),
|
144 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Backend',
|
145 |
-
'align' => 'center',
|
146 |
-
'index' => false,
|
147 |
-
'filter' => false,
|
148 |
-
));
|
149 |
-
|
150 |
return parent::_prepareColumns();
|
151 |
}
|
152 |
|
@@ -177,7 +96,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Block_
|
|
177 |
|
178 |
$this->getMassactionBlock()->addItem('add', array(
|
179 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
180 |
-
'url' => $this->getUrl('*/*/
|
181 |
'selected' => 1
|
182 |
));
|
183 |
|
@@ -188,8 +107,8 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Block_
|
|
188 |
|
189 |
|
190 |
// Mage::dispatchEvent('adminhtml_strakertranslation_job_product_grid_prepare_massaction', array('block' => $this));
|
|
|
191 |
}
|
192 |
-
return $this;
|
193 |
}
|
194 |
|
195 |
protected function _prepareMassactionColumn()
|
28 |
protected function _prepareCollection() {
|
29 |
// $prefix = Mage::getConfig()->getTablePrefix()->__toString();
|
30 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
31 |
+
|
|
|
32 |
$collection = Mage::getModel('strakertranslations_easytranslationplatform/job_cms_block')->getCollection()
|
33 |
->addFieldToFilter('main_table.job_id', $job->getId());
|
34 |
|
35 |
//echo $collection->getSelect(); die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
$this->setCollection($collection);
|
37 |
return parent::_prepareCollection();
|
38 |
}
|
39 |
|
40 |
protected function _prepareColumns() {
|
41 |
+
$this->addColumn('title', array(
|
42 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Title'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
'align' => 'center',
|
44 |
+
'index' => 'title'
|
|
|
45 |
));
|
46 |
|
47 |
$this->addColumn('identifier', array(
|
50 |
'index' => 'identifier'
|
51 |
));
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
if ($this->getStatusId() == '4' || $this->getStatusId() == '5'){
|
54 |
$this->addColumn('version', array(
|
55 |
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
56 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_CmsVersion',
|
57 |
'align' => 'center',
|
58 |
'type' => 'options',
|
59 |
'index' => 'version',
|
66 |
));
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
return parent::_prepareColumns();
|
70 |
}
|
71 |
|
96 |
|
97 |
$this->getMassactionBlock()->addItem('add', array(
|
98 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
99 |
+
'url' => $this->getUrl('*/*/applyTranslation'),
|
100 |
'selected' => 1
|
101 |
));
|
102 |
|
107 |
|
108 |
|
109 |
// Mage::dispatchEvent('adminhtml_strakertranslation_job_product_grid_prepare_massaction', array('block' => $this));
|
110 |
+
return $this;
|
111 |
}
|
|
|
112 |
}
|
113 |
|
114 |
protected function _prepareMassactionColumn()
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Page.php
CHANGED
@@ -16,7 +16,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Page e
|
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
-
'onclick' => "setLocation('{$this->getUrl('*/*/
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
+
'onclick' => "setLocation('{$this->getUrl('*/*/copyAll',array('job_id'=>$jobId))}');",
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Cms/Page/Grid.php
CHANGED
@@ -28,49 +28,20 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Page_G
|
|
28 |
protected function _prepareCollection() {
|
29 |
// $prefix = Mage::getConfig()->getTablePrefix()->__toString();
|
30 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
31 |
-
|
32 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Resource_Job_Cms_Page_Collection $collection */
|
33 |
$collection = Mage::getModel('strakertranslations_easytranslationplatform/job_cms_page')->getCollection()
|
34 |
->addFieldToFilter('main_table.job_id', $job->getId());
|
35 |
|
36 |
-
//echo $collection->getSelect(); die();
|
37 |
-
$collection->getSelect()
|
38 |
-
->joinLeft(
|
39 |
-
array('translate' => $collection->getTable('strakertranslations_easytranslationplatform/cms_page_translate')),
|
40 |
-
'main_table.id = translate.id
|
41 |
-
AND translate.cms_page_id = main_table.page_id AND translate.job_id = '.$job->getId(),
|
42 |
-
array()
|
43 |
-
);
|
44 |
-
|
45 |
-
//loop through this job's attributes and join them to the collection
|
46 |
-
foreach ($jobAttributes as $jobAttribute) {
|
47 |
-
$attributeCode = $jobAttribute->getColumnName();
|
48 |
-
$collection->getSelect()->joinLeft(
|
49 |
-
array($attributeCode => $collection->getTable('strakertranslations_easytranslationplatform/cms_page_translate')),
|
50 |
-
$attributeCode . '.cms_page_id = main_table.page_id
|
51 |
-
AND ' . $attributeCode . '.column_name = \'' . $attributeCode . '\'
|
52 |
-
AND ' . $attributeCode . '.job_id = ' . $job->getId(),
|
53 |
-
array($attributeCode . '_original' => 'original', $attributeCode . '_translate' => 'translate')
|
54 |
-
);
|
55 |
-
}
|
56 |
-
|
57 |
$this->setCollection($collection);
|
58 |
return parent::_prepareCollection();
|
59 |
}
|
60 |
|
61 |
protected function _prepareColumns() {
|
62 |
-
$this->addColumn('id', array(
|
63 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('ID'),
|
64 |
-
'align' => 'center',
|
65 |
-
'width' => '50px',
|
66 |
-
'index' => 'id'
|
67 |
-
));
|
68 |
|
69 |
-
$this->addColumn('
|
70 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('
|
71 |
'align' => 'center',
|
72 |
-
'
|
73 |
-
'index' => 'page_id'
|
74 |
));
|
75 |
|
76 |
$this->addColumn('identifier', array(
|
@@ -79,54 +50,10 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Page_G
|
|
79 |
'index' => 'identifier'
|
80 |
));
|
81 |
|
82 |
-
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
83 |
-
$jobAttributes = Mage::getModel('strakertranslations_easytranslationplatform/cms_page_attributes')->getCollection()->addFieldToFilter('job_id', $job->getId());
|
84 |
-
//loop through this job's attributes and add columns to the grid
|
85 |
-
foreach ($jobAttributes as $jobAttribute) {
|
86 |
-
$attributeCode = $jobAttribute->getColumnName();
|
87 |
-
if($attributeCode === 'content'){
|
88 |
-
$this->addColumn($attributeCode . '_original', array(
|
89 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Source', ucfirst($attributeCode)),
|
90 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_TextArea',
|
91 |
-
'align' => 'left',
|
92 |
-
'index' => $attributeCode . '_original',
|
93 |
-
'filter' => false,
|
94 |
-
'sortable' => false
|
95 |
-
));
|
96 |
-
|
97 |
-
$this->addColumn($attributeCode . '_translate', array(
|
98 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Target', ucfirst($attributeCode)),
|
99 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_TextArea',
|
100 |
-
'align' => 'left',
|
101 |
-
'index' => $attributeCode . '_translate',
|
102 |
-
'filter' => false,
|
103 |
-
'sortable' => false
|
104 |
-
));
|
105 |
-
}else{
|
106 |
-
$this->addColumn($attributeCode . '_original', array(
|
107 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Source', ucfirst($attributeCode)),
|
108 |
-
'align' => 'left',
|
109 |
-
'index' => $attributeCode . '_original',
|
110 |
-
// 'filter_index' => $attributeCode.'.original',
|
111 |
-
'filter' => false,
|
112 |
-
'sortable' => false
|
113 |
-
));
|
114 |
-
|
115 |
-
$this->addColumn($attributeCode . '_translate', array(
|
116 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('%s - Target', ucfirst($attributeCode)),
|
117 |
-
'align' => 'left',
|
118 |
-
'index' => $attributeCode . '_translate',
|
119 |
-
// 'filter_index' => $attributeCode.'.translate',
|
120 |
-
'filter' => false,
|
121 |
-
'sortable' => false
|
122 |
-
));
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
if ($this->getStatusId() == '4' || $this->getStatusId() == '5'){
|
127 |
$this->addColumn('version', array(
|
128 |
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
129 |
-
'renderer' => '
|
130 |
'align' => 'center',
|
131 |
'type' => 'options',
|
132 |
'index' => 'version',
|
@@ -139,21 +66,6 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Page_G
|
|
139 |
));
|
140 |
}
|
141 |
|
142 |
-
$this->addColumn('view_frontend', array(
|
143 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Frontend'),
|
144 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Frontend',
|
145 |
-
'align' => 'center',
|
146 |
-
'index' => false,
|
147 |
-
'filter' => false,
|
148 |
-
));
|
149 |
-
$this->addColumn('view_backend', array(
|
150 |
-
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('View Backend'),
|
151 |
-
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_Backend',
|
152 |
-
'align' => 'center',
|
153 |
-
'index' => false,
|
154 |
-
'filter' => false,
|
155 |
-
));
|
156 |
-
|
157 |
return parent::_prepareColumns();
|
158 |
}
|
159 |
|
@@ -184,7 +96,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Page_G
|
|
184 |
|
185 |
$this->getMassactionBlock()->addItem('add', array(
|
186 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
187 |
-
'url' => $this->getUrl('*/*/
|
188 |
'selected' => 1
|
189 |
));
|
190 |
|
@@ -199,36 +111,36 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Cms_Page_G
|
|
199 |
return $this;
|
200 |
}
|
201 |
|
202 |
-
protected function _prepareMassactionColumn()
|
203 |
-
{
|
204 |
-
if ($this->getStatusId() == '4') {
|
205 |
-
$columnId = 'massaction';
|
206 |
-
$massactionColumn = $this->getLayout()->createBlock('adminhtml/widget_grid_column')
|
207 |
-
->setData(array(
|
208 |
-
'index' => $this->getMassactionIdField(),
|
209 |
-
'use_index' => $this->getMassactionIdField(),
|
210 |
-
'filter_index' => $this->getMassactionIdFilter(),
|
211 |
-
'type' => 'massaction',
|
212 |
-
'name' => $this->getMassactionBlock()->getFormFieldName(),
|
213 |
-
'align' => 'center',
|
214 |
-
'is_system' => true
|
215 |
-
));
|
216 |
-
|
217 |
-
if ($this->getNoFilterMassactionColumn()) {
|
218 |
-
$massactionColumn->setData('filter', false);
|
219 |
-
}
|
220 |
-
|
221 |
-
$massactionColumn->setSelected($this->getMassactionBlock()->getSelected())
|
222 |
-
->setGrid($this)
|
223 |
-
->setId($columnId);
|
224 |
-
|
225 |
-
$oldColumns = $this->_columns;
|
226 |
-
$this->_columns = array();
|
227 |
-
$this->_columns[$columnId] = $massactionColumn;
|
228 |
-
$this->_columns = array_merge($this->_columns, $oldColumns);
|
229 |
-
return $this;
|
230 |
-
}
|
231 |
-
}
|
232 |
|
233 |
public function getMainButtonsHtml()
|
234 |
{
|
28 |
protected function _prepareCollection() {
|
29 |
// $prefix = Mage::getConfig()->getTablePrefix()->__toString();
|
30 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
31 |
+
|
|
|
32 |
$collection = Mage::getModel('strakertranslations_easytranslationplatform/job_cms_page')->getCollection()
|
33 |
->addFieldToFilter('main_table.job_id', $job->getId());
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
$this->setCollection($collection);
|
36 |
return parent::_prepareCollection();
|
37 |
}
|
38 |
|
39 |
protected function _prepareColumns() {
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
+
$this->addColumn('title', array(
|
42 |
+
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Title'),
|
43 |
'align' => 'center',
|
44 |
+
'index' => 'title'
|
|
|
45 |
));
|
46 |
|
47 |
$this->addColumn('identifier', array(
|
50 |
'index' => 'identifier'
|
51 |
));
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
if ($this->getStatusId() == '4' || $this->getStatusId() == '5'){
|
54 |
$this->addColumn('version', array(
|
55 |
'header' => Mage::helper('strakertranslations_easytranslationplatform')->__('Published'),
|
56 |
+
'renderer' => 'StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_CmsVersion',
|
57 |
'align' => 'center',
|
58 |
'type' => 'options',
|
59 |
'index' => 'version',
|
66 |
));
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
return parent::_prepareColumns();
|
70 |
}
|
71 |
|
96 |
|
97 |
$this->getMassactionBlock()->addItem('add', array(
|
98 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
99 |
+
'url' => $this->getUrl('*/*/applyTranslation'),
|
100 |
'selected' => 1
|
101 |
));
|
102 |
|
111 |
return $this;
|
112 |
}
|
113 |
|
114 |
+
// protected function _prepareMassactionColumn()
|
115 |
+
// {
|
116 |
+
// if ($this->getStatusId() == '4') {
|
117 |
+
// $columnId = 'massaction';
|
118 |
+
// $massactionColumn = $this->getLayout()->createBlock('adminhtml/widget_grid_column')
|
119 |
+
// ->setData(array(
|
120 |
+
// 'index' => $this->getMassactionIdField(),
|
121 |
+
// 'use_index' => $this->getMassactionIdField(),
|
122 |
+
// 'filter_index' => $this->getMassactionIdFilter(),
|
123 |
+
// 'type' => 'massaction',
|
124 |
+
// 'name' => $this->getMassactionBlock()->getFormFieldName(),
|
125 |
+
// 'align' => 'center',
|
126 |
+
// 'is_system' => true
|
127 |
+
// ));
|
128 |
+
//
|
129 |
+
// if ($this->getNoFilterMassactionColumn()) {
|
130 |
+
// $massactionColumn->setData('filter', false);
|
131 |
+
// }
|
132 |
+
//
|
133 |
+
// $massactionColumn->setSelected($this->getMassactionBlock()->getSelected())
|
134 |
+
// ->setGrid($this)
|
135 |
+
// ->setId($columnId);
|
136 |
+
//
|
137 |
+
// $oldColumns = $this->_columns;
|
138 |
+
// $this->_columns = array();
|
139 |
+
// $this->_columns[$columnId] = $massactionColumn;
|
140 |
+
// $this->_columns = array_merge($this->_columns, $oldColumns);
|
141 |
+
// return $this;
|
142 |
+
// }
|
143 |
+
// }
|
144 |
|
145 |
public function getMainButtonsHtml()
|
146 |
{
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Product.php
CHANGED
@@ -16,7 +16,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Product ex
|
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
-
'onclick' => "setLocation('{$this->getUrl('*/*/
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
16 |
if ( $jobStatus == '4'){
|
17 |
$this->_addButton('publish', array(
|
18 |
'label' => Mage::helper('catalog')->__('Publish All Translations'),
|
19 |
+
'onclick' => "setLocation('{$this->getUrl('*/*/copyAll',array('job_id'=>$jobId))}');",
|
20 |
'class' => 'task'
|
21 |
));
|
22 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Job/Product/Grid.php
CHANGED
@@ -174,7 +174,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Job_Product_Gr
|
|
174 |
|
175 |
$this->getMassactionBlock()->addItem('add', array(
|
176 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
177 |
-
'url' => $this->getUrl('*/*/
|
178 |
'selected' => 1
|
179 |
));
|
180 |
$this->getMassactionBlock()->setTemplate('straker/job/product/massaction.phtml');
|
174 |
|
175 |
$this->getMassactionBlock()->addItem('add', array(
|
176 |
'label' => Mage::helper('catalog')->__('Publish Translation'),
|
177 |
+
'url' => $this->getUrl('*/*/applyTranslation'),
|
178 |
'selected' => 1
|
179 |
));
|
180 |
$this->getMassactionBlock()->setTemplate('straker/job/product/massaction.phtml');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Attribute/Grid.php
CHANGED
@@ -167,11 +167,12 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Attribute_
|
|
167 |
return $this;
|
168 |
}
|
169 |
|
170 |
-
if (
|
171 |
-
$collection->getSelect()->where('frontend_input
|
172 |
} else {
|
173 |
-
$collection->getSelect()->where('frontend_input
|
174 |
}
|
|
|
175 |
return $this;
|
176 |
}
|
177 |
|
@@ -183,7 +184,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Attribute_
|
|
183 |
|
184 |
$this->getMassactionBlock()->addItem('add', array(
|
185 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
186 |
-
'url' => $this->getUrl('*/*/
|
187 |
'selected' => 1
|
188 |
));
|
189 |
$this->getMassactionBlock()->setTemplate('straker/new/attribute/massaction.phtml');
|
@@ -212,7 +213,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Attribute_
|
|
212 |
$AttributeIdsWithOption->reset(Zend_Db_Select::LIMIT_OFFSET);
|
213 |
$AttributeIdsWithOption->reset(Zend_Db_Select::COLUMNS);
|
214 |
$AttributeIdsWithOption->reset(Zend_Db_Select::COLUMNS);
|
215 |
-
$AttributeIdsWithOption->where('frontend_input
|
216 |
$AttributeIdsWithOption->columns('attribute_id', 'main_table');
|
217 |
return Mage::getSingleton('core/resource')->getConnection('core_read')->fetchCol($AttributeIdsWithOption);
|
218 |
}
|
167 |
return $this;
|
168 |
}
|
169 |
|
170 |
+
if ($value == 'select' ){
|
171 |
+
$collection->getSelect()->where('frontend_input=?', 'select');
|
172 |
} else {
|
173 |
+
$collection->getSelect()->where('frontend_input<>?', 'select');
|
174 |
}
|
175 |
+
|
176 |
return $this;
|
177 |
}
|
178 |
|
184 |
|
185 |
$this->getMassactionBlock()->addItem('add', array(
|
186 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
187 |
+
'url' => $this->getUrl('*/*/addtoconfirm'),
|
188 |
'selected' => 1
|
189 |
));
|
190 |
$this->getMassactionBlock()->setTemplate('straker/new/attribute/massaction.phtml');
|
213 |
$AttributeIdsWithOption->reset(Zend_Db_Select::LIMIT_OFFSET);
|
214 |
$AttributeIdsWithOption->reset(Zend_Db_Select::COLUMNS);
|
215 |
$AttributeIdsWithOption->reset(Zend_Db_Select::COLUMNS);
|
216 |
+
$AttributeIdsWithOption->where('frontend_input=?','select');
|
217 |
$AttributeIdsWithOption->columns('attribute_id', 'main_table');
|
218 |
return Mage::getSingleton('core/resource')->getConnection('core_read')->fetchCol($AttributeIdsWithOption);
|
219 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Cms/Block/Grid.php
CHANGED
@@ -14,8 +14,8 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Cms_Block_
|
|
14 |
|
15 |
protected function _prepareCollection()
|
16 |
{
|
17 |
-
/* @var $collection Mage_Cms_Model_Mysql4_Block_Collection */
|
18 |
$collection = Mage::getModel('cms/block')->getCollection();
|
|
|
19 |
$this->setCollection($collection);
|
20 |
return parent::_prepareCollection();
|
21 |
}
|
@@ -94,7 +94,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Cms_Block_
|
|
94 |
|
95 |
$this->getMassactionBlock()->addItem('add', array(
|
96 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
97 |
-
'url' => $this->getUrl('*/*/
|
98 |
'selected' => 1
|
99 |
));
|
100 |
$this->getMassactionBlock()->setTemplate('straker/new/cms/block/massaction.phtml');
|
14 |
|
15 |
protected function _prepareCollection()
|
16 |
{
|
|
|
17 |
$collection = Mage::getModel('cms/block')->getCollection();
|
18 |
+
/* @var $collection Mage_Cms_Model_Mysql4_Block_Collection */
|
19 |
$this->setCollection($collection);
|
20 |
return parent::_prepareCollection();
|
21 |
}
|
94 |
|
95 |
$this->getMassactionBlock()->addItem('add', array(
|
96 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
97 |
+
'url' => $this->getUrl('*/*/addtoconfirm'),
|
98 |
'selected' => 1
|
99 |
));
|
100 |
$this->getMassactionBlock()->setTemplate('straker/new/cms/block/massaction.phtml');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Cms/Page/Grid.php
CHANGED
@@ -108,7 +108,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Cms_Page_G
|
|
108 |
|
109 |
$this->getMassactionBlock()->addItem('add', array(
|
110 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
111 |
-
'url' => $this->getUrl('*/*/
|
112 |
'selected' => 1
|
113 |
));
|
114 |
$this->getMassactionBlock()->setTemplate('straker/new/cms/page/massaction.phtml');
|
108 |
|
109 |
$this->getMassactionBlock()->addItem('add', array(
|
110 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
111 |
+
'url' => $this->getUrl('*/*/addtoconfirm'),
|
112 |
'selected' => 1
|
113 |
));
|
114 |
$this->getMassactionBlock()->setTemplate('straker/new/cms/page/massaction.phtml');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Confirm/Grid.php
CHANGED
@@ -135,7 +135,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Confirm_Gr
|
|
135 |
|
136 |
public function getGridUrl()
|
137 |
{
|
138 |
-
return $this->getUrl('*/*/
|
139 |
}
|
140 |
|
141 |
public function getRowUrl($row)
|
135 |
|
136 |
public function getGridUrl()
|
137 |
{
|
138 |
+
return $this->getUrl('*/*/addtoconfirm', array('_current'=>true));
|
139 |
}
|
140 |
|
141 |
public function getRowUrl($row)
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/New/Products/Grid.php
CHANGED
@@ -269,7 +269,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_New_Products_G
|
|
269 |
|
270 |
$this->getMassactionBlock()->addItem('add', array(
|
271 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
272 |
-
'url' => $this->getUrl('*/*/
|
273 |
'selected' => 1
|
274 |
));
|
275 |
|
269 |
|
270 |
$this->getMassactionBlock()->addItem('add', array(
|
271 |
'label'=> Mage::helper('catalog')->__('Add to Confirm Page'),
|
272 |
+
'url' => $this->getUrl('*/*/addtoconfirm'),
|
273 |
'selected' => 1
|
274 |
));
|
275 |
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/Backend.php
CHANGED
@@ -7,38 +7,23 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
7 |
public function render(Varien_Object $row){
|
8 |
$html = '';
|
9 |
if(!$row->getVersion()){
|
10 |
-
$html .= '<p class="inactive">' . $this->__('View in Backend') . '</p>';
|
11 |
}
|
12 |
elseif ($row->getProductId()) {
|
13 |
$product = Mage::getModel('catalog/product')->load($row->getProductId());
|
14 |
$url = $this->getUrl('adminhtml/catalog_product/edit', array(
|
15 |
'store' => $this->getStoreId($row),
|
16 |
-
'id' => $product->getId()
|
17 |
-
)
|
18 |
);
|
19 |
-
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View in Backend') . '</a>';
|
20 |
-
}elseif($row->getAttributeId()){
|
21 |
-
$product = Mage::getModel('catalog/product')->load($row->getAttributeId());
|
22 |
-
$url = $this->getUrl('adminhtml/catalog_product_attribute/edit', array(
|
23 |
-
'attribute_id' => $row->getAttributeId()
|
24 |
-
)
|
25 |
-
);
|
26 |
-
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View in Backend') . '</a>';
|
27 |
}
|
28 |
elseif($row->getCategoryId()) {
|
29 |
$category = Mage::getModel('catalog/category')->load($row->getCategoryId());
|
30 |
$url = $this->getUrl('adminhtml/catalog_category/edit', array(
|
31 |
'store' => $this->getStoreId($row),
|
32 |
-
'id' => $category->getId()
|
33 |
-
)
|
34 |
);
|
35 |
-
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View in Backend') . '</a>';
|
36 |
-
}elseif($row->getPageId()){
|
37 |
-
$url = Mage::helper("adminhtml")->getUrl("adminhtml/cms_page/edit",array("page_id"=>$row->getNewEntityId()));
|
38 |
-
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View in Backend') . '</a>';
|
39 |
-
}elseif($row->getBlockId()){
|
40 |
-
$url = Mage::helper("adminhtml")->getUrl("adminhtml/cms_block/edit",array("block_id"=>$row->getNewEntityId()));
|
41 |
-
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View in Backend') . '</a>';
|
42 |
}
|
43 |
return $html;
|
44 |
}
|
7 |
public function render(Varien_Object $row){
|
8 |
$html = '';
|
9 |
if(!$row->getVersion()){
|
10 |
+
$html .= '<p class="inactive">' . $this->__('View Product in Backend') . '</p>';
|
11 |
}
|
12 |
elseif ($row->getProductId()) {
|
13 |
$product = Mage::getModel('catalog/product')->load($row->getProductId());
|
14 |
$url = $this->getUrl('adminhtml/catalog_product/edit', array(
|
15 |
'store' => $this->getStoreId($row),
|
16 |
+
'id' => $product->getId())
|
|
|
17 |
);
|
18 |
+
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View Product in Backend') . '</a>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
elseif($row->getCategoryId()) {
|
21 |
$category = Mage::getModel('catalog/category')->load($row->getCategoryId());
|
22 |
$url = $this->getUrl('adminhtml/catalog_category/edit', array(
|
23 |
'store' => $this->getStoreId($row),
|
24 |
+
'id' => $category->getId())
|
|
|
25 |
);
|
26 |
+
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View Category in Backend') . '</a>';
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
return $html;
|
29 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/CmsVersion.php
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
1 |
<?php
|
2 |
+
class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_CmsVersion
|
3 |
+
extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
4 |
+
{
|
5 |
+
public function render(Varien_Object $row)
|
6 |
+
{
|
7 |
+
if($row->getVersion()){
|
8 |
+
if($row->getBlockId()){
|
9 |
+
$link = Mage::helper("adminhtml")->getUrl("adminhtml/cms_block/edit",array("block_id"=>$row->getNewEntityId()));
|
10 |
+
}
|
11 |
+
else{
|
12 |
+
$link = Mage::helper("adminhtml")->getUrl("adminhtml/cms_page/edit",array("page_id"=>$row->getNewEntityId()));
|
13 |
+
}
|
14 |
+
return '<a href="'.$link.'" target="_blank">View Published</a>';
|
15 |
+
}
|
16 |
+
else{
|
17 |
+
return 'Not Published';
|
18 |
+
}
|
19 |
+
}
|
20 |
+
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/ConfirmTranslateOptions.php
CHANGED
@@ -8,7 +8,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
8 |
|
9 |
public function render(Varien_Object $row){
|
10 |
$id = $row->getAttributeId();
|
11 |
-
if (
|
12 |
$html = '<input disabled type="checkbox" name="option" value="' . $id . '" class="checkbox-option"';
|
13 |
if (in_array($id, $this->_getOption())) {
|
14 |
$html .= ' checked="checked" >';
|
8 |
|
9 |
public function render(Varien_Object $row){
|
10 |
$id = $row->getAttributeId();
|
11 |
+
if ($row->getFrontendInput()=='select') {
|
12 |
$html = '<input disabled type="checkbox" name="option" value="' . $id . '" class="checkbox-option"';
|
13 |
if (in_array($id, $this->_getOption())) {
|
14 |
$html .= ' checked="checked" >';
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/Frontend.php
CHANGED
@@ -7,32 +7,20 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
7 |
public function render(Varien_Object $row){
|
8 |
$html = '';
|
9 |
if(!$row->getVersion()){
|
10 |
-
$html .= '<p class="inactive">' . $this->__('View in Frontend') . '</p>';
|
11 |
}
|
12 |
elseif ($row->getProductId()) {
|
13 |
$product = Mage::getModel('catalog/product')->setStoreId($this->getStoreId($row))->load($row->getProductId());
|
14 |
if (!$product->isDisabled() && $product->isVisibleInSiteVisibility()) {
|
15 |
-
$html .= '<a target="_blank" href="' . $product->getProductUrl() . '">' . $this->__('View in Frontend') . '</a>';
|
16 |
} else {
|
17 |
$html .= 'Product is not visible in frontend';
|
18 |
}
|
19 |
}
|
20 |
-
elseif($row->
|
21 |
-
$url = '';
|
22 |
-
|
23 |
-
$href = $row->getPreviewUrl();
|
24 |
-
} else {
|
25 |
-
$urlModel = Mage::getModel('core/url')->setStore($row->getData('_first_store_id'));
|
26 |
-
$url = $urlModel->getUrl(
|
27 |
-
$row->getIdentifier(), array(
|
28 |
-
'_current' => false,
|
29 |
-
'_query' => '___store=' . $this->getStoreCode($row),
|
30 |
-
)
|
31 |
-
);
|
32 |
-
}
|
33 |
-
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View in Frontend') . '</a>';
|
34 |
}
|
35 |
-
|
36 |
return $html;
|
37 |
}
|
38 |
|
@@ -44,9 +32,4 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
44 |
}
|
45 |
return $this->_storeId;
|
46 |
}
|
47 |
-
|
48 |
-
protected function getStoreCode($row){
|
49 |
-
$this->getStoreId($row);
|
50 |
-
return Mage::app()->getStore($this->_storeId)->getCode();
|
51 |
-
}
|
52 |
}
|
7 |
public function render(Varien_Object $row){
|
8 |
$html = '';
|
9 |
if(!$row->getVersion()){
|
10 |
+
$html .= '<p class="inactive">' . $this->__('View Product in Frontend') . '</p>';
|
11 |
}
|
12 |
elseif ($row->getProductId()) {
|
13 |
$product = Mage::getModel('catalog/product')->setStoreId($this->getStoreId($row))->load($row->getProductId());
|
14 |
if (!$product->isDisabled() && $product->isVisibleInSiteVisibility()) {
|
15 |
+
$html .= '<a target="_blank" href="' . $product->getProductUrl() . '">' . $this->__('View Product in Frontend') . '</a>';
|
16 |
} else {
|
17 |
$html .= 'Product is not visible in frontend';
|
18 |
}
|
19 |
}
|
20 |
+
elseif($row->getCategoryId()){
|
21 |
+
$url = $this->getUrl('catalog/category/view', ['id' => $row->getCategoryId(), '_nosid' => true, '_query' => ['___store' => $this->getStoreId($row) ]]);
|
22 |
+
$html .= '<a target="_blank" href="' . $url . '">' . $this->__('View Category in Frontend') . '</a>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
|
|
24 |
return $html;
|
25 |
}
|
26 |
|
32 |
}
|
33 |
return $this->_storeId;
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/Selected.php
CHANGED
@@ -8,63 +8,50 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
8 |
|
9 |
switch ($row->getTypeName()) {
|
10 |
case 'Product':
|
11 |
-
|
|
|
12 |
Mage::getModel('strakertranslations_easytranslationplatform/product_attributes')
|
13 |
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
14 |
|
15 |
$output =array();
|
16 |
|
17 |
-
foreach ($
|
18 |
-
$output[] = $this->_getAttributeLabel($
|
19 |
}
|
20 |
$html = implode(', ', $output);
|
|
|
21 |
break;
|
|
|
22 |
case 'Category':
|
23 |
-
|
|
|
24 |
Mage::getModel('strakertranslations_easytranslationplatform/category_attributes')
|
25 |
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
foreach ($categoryAttributeCollection as $categoryAttribute) {
|
30 |
-
$output[] = $this->_getAttributeLabel($categoryAttribute->getAttributeId());
|
31 |
-
}
|
32 |
-
$html = implode(', ', $output);
|
33 |
break;
|
|
|
34 |
case 'Attribute':
|
|
|
35 |
$AttributeCollection =
|
36 |
Mage::getModel('strakertranslations_easytranslationplatform/job_attribute')
|
37 |
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
38 |
|
39 |
-
|
40 |
-
$html = $output > 1 ? "$output Attributes" : '1 Attribute';
|
41 |
-
break;
|
42 |
-
case 'CMS Block':
|
43 |
-
$cmsBlockAttributeCollection =
|
44 |
-
Mage::getModel('strakertranslations_easytranslationplatform/cms_block_attributes')
|
45 |
-
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
46 |
|
47 |
-
$output
|
48 |
|
49 |
-
foreach ($cmsBlockAttributeCollection as $cmsAttribute) {
|
50 |
-
$output[] = $this->_formatColumnName($cmsAttribute->getData('column_name'));
|
51 |
-
}
|
52 |
-
$html = implode(', ', $output);
|
53 |
break;
|
54 |
-
case 'CMS Page':
|
55 |
-
$cmsPageAttributeCollection =
|
56 |
-
Mage::getModel('strakertranslations_easytranslationplatform/cms_page_attributes')
|
57 |
-
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
58 |
|
59 |
-
$output =array();
|
60 |
-
|
61 |
-
foreach ($cmsPageAttributeCollection as $cmsAttribute) {
|
62 |
-
$output[] = $this->_formatColumnName($cmsAttribute->getData('column_name'));
|
63 |
-
}
|
64 |
-
$html = implode(', ', $output);
|
65 |
-
break;
|
66 |
default:
|
67 |
$html = '';
|
|
|
68 |
}
|
69 |
|
70 |
return $html;
|
@@ -75,22 +62,4 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
75 |
private function _getAttributeLabel($attributeId) {
|
76 |
return Mage::getModel('eav/entity_attribute')->load($attributeId)->getFrontendLabel();
|
77 |
}
|
78 |
-
|
79 |
-
private function _formatColumnName( $columnName ){
|
80 |
-
$return = '';
|
81 |
-
switch(strtolower($columnName)){
|
82 |
-
case 'meta_keywords':
|
83 |
-
$return = 'Meta Keywords';
|
84 |
-
break;
|
85 |
-
case 'meta_description':
|
86 |
-
$return = 'Meta Description';
|
87 |
-
break;
|
88 |
-
case 'content_heading':
|
89 |
-
$return = 'Content Heading';
|
90 |
-
break;
|
91 |
-
default:
|
92 |
-
$return = ucfirst($columnName);
|
93 |
-
}
|
94 |
-
return $return;
|
95 |
-
}
|
96 |
}
|
8 |
|
9 |
switch ($row->getTypeName()) {
|
10 |
case 'Product':
|
11 |
+
|
12 |
+
$productAttrubuteCollection =
|
13 |
Mage::getModel('strakertranslations_easytranslationplatform/product_attributes')
|
14 |
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
15 |
|
16 |
$output =array();
|
17 |
|
18 |
+
foreach ($productAttrubuteCollection as $productAttrubute) {
|
19 |
+
$output[] = $this->_getAttributeLabel($productAttrubute->getAttributeId());
|
20 |
}
|
21 |
$html = implode(', ', $output);
|
22 |
+
|
23 |
break;
|
24 |
+
|
25 |
case 'Category':
|
26 |
+
|
27 |
+
$categoryAttrubuteCollection =
|
28 |
Mage::getModel('strakertranslations_easytranslationplatform/category_attributes')
|
29 |
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
30 |
|
31 |
+
$output =array();
|
32 |
+
|
33 |
+
foreach ($categoryAttrubuteCollection as $categoryAttrubute) {
|
34 |
+
$output[] = $this->_getAttributeLabel($categoryAttrubute->getAttributeId());
|
35 |
+
}
|
36 |
+
$html = implode(', ', $output);
|
37 |
|
|
|
|
|
|
|
|
|
38 |
break;
|
39 |
+
|
40 |
case 'Attribute':
|
41 |
+
|
42 |
$AttributeCollection =
|
43 |
Mage::getModel('strakertranslations_easytranslationplatform/job_attribute')
|
44 |
->getCollection()->addFieldToFilter('job_id', $row->getId());
|
45 |
|
46 |
+
$output = count($AttributeCollection);
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
$html = $output > 1 ? "$output Attributes" : '1 Attribute';
|
49 |
|
|
|
|
|
|
|
|
|
50 |
break;
|
|
|
|
|
|
|
|
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
default:
|
53 |
$html = '';
|
54 |
+
|
55 |
}
|
56 |
|
57 |
return $html;
|
62 |
private function _getAttributeLabel($attributeId) {
|
63 |
return Mage::getModel('eav/entity_attribute')->load($attributeId)->getFrontendLabel();
|
64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/TextArea.php
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_Renderer_TextArea
|
3 |
-
extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
4 |
-
{
|
5 |
-
public function render(Varien_Object $row)
|
6 |
-
{
|
7 |
-
$index = $this->getColumn()->getIndex();
|
8 |
-
if($index && $row->getData($index)){
|
9 |
-
$value = $row->getData($index);
|
10 |
-
return '<textarea cols="100" rows="10">' . htmlspecialchars($value) . '</textarea>';
|
11 |
-
}
|
12 |
-
}
|
13 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Block/Adminhtml/Template/Grid/Renderer/TranslateOptions.php
CHANGED
@@ -5,7 +5,7 @@ class StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Template_Grid_
|
|
5 |
protected $_storeId;
|
6 |
|
7 |
public function render(Varien_Object $row){
|
8 |
-
if (
|
9 |
$html = '<input type="checkbox" name="option" value="' . $row->getAttributeId() . '" class="checkbox-option">';
|
10 |
}
|
11 |
else{
|
5 |
protected $_storeId;
|
6 |
|
7 |
public function render(Varien_Object $row){
|
8 |
+
if ($row->getFrontendInput()=='select') {
|
9 |
$html = '<input type="checkbox" name="option" value="' . $row->getAttributeId() . '" class="checkbox-option">';
|
10 |
}
|
11 |
else{
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Attribute/Translate.php
CHANGED
@@ -71,75 +71,71 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Attribute_Translate exte
|
|
71 |
//
|
72 |
// }
|
73 |
|
74 |
-
$
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
$
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
$eavAttributeModel->
|
86 |
-
$
|
87 |
-
|
88 |
-
$
|
89 |
-
if(
|
90 |
-
|
91 |
-
$
|
92 |
-
if(!in_array($storeId, $stores)){
|
93 |
-
$storeLabels[$storeId] = trim($attribute);
|
94 |
-
$eavAttributeModel->setData('store_labels', $storeLabels)->save();
|
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 |
'option_id' => $optionId,
|
127 |
'store_id' => $storeId,
|
128 |
'value' => trim($optionValue)
|
129 |
-
]
|
130 |
-
|
131 |
-
}
|
132 |
-
if($newOptionData){
|
133 |
-
$setup->getConnection()->insertMultiple($optionValueTable, $newOptionData);
|
134 |
}
|
135 |
}
|
|
|
|
|
|
|
136 |
}
|
137 |
}
|
138 |
-
$this->setIsImported(1)->save();
|
139 |
-
}catch(Exception $e){
|
140 |
-
$success = false;
|
141 |
}
|
142 |
-
|
143 |
}
|
144 |
|
145 |
// private function _getConnection() {
|
71 |
//
|
72 |
// }
|
73 |
|
74 |
+
if ($this->getTranslate()){
|
75 |
+
$dataInJson = json_encode(simplexml_load_string($this->getTranslate()));
|
76 |
+
$data = json_decode($dataInJson,true);
|
77 |
+
$storeId = (int) $this->getStoreId();
|
78 |
+
/** @var Mage_Eav_Model_Attribute $eavAttributeModel */
|
79 |
+
$eavAttributeModel = Mage::getModel('eav/entity_attribute');
|
80 |
+
foreach ($data as $k => $attribute ){
|
81 |
+
if ($k == 'title' && $attribute){
|
82 |
+
$attributeId = (int) $this->getAttributeId();
|
83 |
+
$eavAttributeModel->load($attributeId);
|
84 |
+
if(!empty($eavAttributeModel->getId())){
|
85 |
+
$storeLabels = $eavAttributeModel->getStoreLabels();
|
86 |
+
if(is_array($storeLabels)){
|
87 |
+
//get all current stores
|
88 |
+
$stores = array_keys($storeLabels);
|
89 |
+
if(!in_array($storeId, $stores)){
|
90 |
+
$storeLabels[$storeId] = trim($attribute);
|
91 |
+
$eavAttributeModel->setData('store_labels', $storeLabels)->save();
|
|
|
|
|
|
|
|
|
92 |
}
|
93 |
}
|
94 |
}
|
95 |
+
}
|
96 |
|
97 |
+
if ($k == 'option' && $attribute){
|
98 |
+
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
|
99 |
|
100 |
+
/* @var $model Mage_Catalog_Model_Entity_Attribute */
|
101 |
+
$attrModel = Mage::getModel('catalog/resource_eav_attribute');
|
102 |
+
$attrModel->load($this->getAttributeId());
|
103 |
|
104 |
+
/** @var $valuesCollection Mage_Eav_Model_Resource_Entity_Attribute_Option_Collection */
|
105 |
+
$valuesCollection = Mage::getResourceModel('eav/entity_attribute_option_collection')
|
106 |
+
->setStoreFilter($storeId, false)
|
107 |
+
->setAttributeFilter($attrModel->getId());
|
108 |
|
109 |
+
//0 => ['option_id' => '20', 'attribute_id' => '92', 'sort_order' => '0', 'value' => 'Black' ]
|
110 |
+
$optionData = $valuesCollection->getData();
|
111 |
+
$optionIds = array_column($optionData, 'option_id');
|
112 |
|
113 |
+
$optionValueTable = $setup->getTable('eav/attribute_option_value');
|
114 |
|
115 |
+
$newOptionData = [];
|
116 |
+
foreach ($attribute as $optionId => $optionValue) {
|
117 |
+
$optionId = str_replace('id_', '',$optionId);
|
118 |
+
// /** @var Mage_Eav_Model_Entity_Attribute_Option $optionModel */
|
119 |
+
// $optionModel = Mage::getModel('eav/entity_attribute_option');
|
120 |
+
// $optionModel->load($optionId);
|
121 |
+
if( !in_array($optionId, $optionIds)){
|
122 |
+
array_push(
|
123 |
+
$newOptionData,
|
124 |
+
[
|
125 |
'option_id' => $optionId,
|
126 |
'store_id' => $storeId,
|
127 |
'value' => trim($optionValue)
|
128 |
+
]
|
129 |
+
);
|
|
|
|
|
|
|
130 |
}
|
131 |
}
|
132 |
+
if($newOptionData){
|
133 |
+
$setup->getConnection()->insertMultiple($optionValueTable, $newOptionData);
|
134 |
+
}
|
135 |
}
|
136 |
}
|
|
|
|
|
|
|
137 |
}
|
138 |
+
$this->setIsImported(1)->save();
|
139 |
}
|
140 |
|
141 |
// private function _getConnection() {
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Category/Translate.php
CHANGED
@@ -14,26 +14,20 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Category_Translate exten
|
|
14 |
}
|
15 |
|
16 |
public function importTranslation(){
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
$category->clearInstance();
|
32 |
-
}
|
33 |
-
}catch(Exception $e){
|
34 |
-
$success = false;
|
35 |
-
}
|
36 |
-
return $success;
|
37 |
}
|
38 |
|
39 |
protected function _getAttributeCode($attributeId){
|
14 |
}
|
15 |
|
16 |
public function importTranslation(){
|
17 |
+
|
18 |
+
$category = Mage::getModel('catalog/category')->setStoreId($this->getStoreId())->load($this->getCategoryId());
|
19 |
+
|
20 |
+
$categoryAttributeCode = $this->_getAttributeCode($this->getAttributeId());
|
21 |
+
|
22 |
+
$this->setBackup($category->getData($categoryAttributeCode));
|
23 |
+
|
24 |
+
$category->setData($categoryAttributeCode, $this->getTranslate())
|
25 |
+
->getResource()
|
26 |
+
->saveAttribute($category, $categoryAttributeCode);
|
27 |
+
$this->setIsImported(1)->save();
|
28 |
+
|
29 |
+
$category->clearInstance();
|
30 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
protected function _getAttributeCode($attributeId){
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Cms/Block/Translate.php
CHANGED
@@ -12,37 +12,37 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Cms_Block_Translate exte
|
|
12 |
{
|
13 |
$this->_init('strakertranslations_easytranslationplatform/cms_block_translate');
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
//
|
16 |
-
//
|
17 |
-
//
|
18 |
-
// $newEntityId =Mage::getModel('strakertranslations_easytranslationplatform/job_cms_block')->load($this->getJobCmsId())
|
19 |
-
// ->getNewEntityId();
|
20 |
//
|
|
|
|
|
21 |
//
|
22 |
-
//// if ($this->getTranslate()){
|
23 |
-
////
|
24 |
-
//// $writeConnection = $this->_getConnection();
|
25 |
-
////
|
26 |
-
//// $query = 'UPDATE `'.Mage::getSingleton('core/resource')->getTableName('cms/block')
|
27 |
-
//// . '` SET '.$this->getColumnName() .' = \''.addslashes($this->getTranslate()).' \' WHERE block_id = '.$newEntityId;
|
28 |
-
////
|
29 |
-
////
|
30 |
-
//// $writeConnection->query($query);
|
31 |
-
////
|
32 |
-
////
|
33 |
-
//// }
|
34 |
//
|
35 |
-
//
|
36 |
-
// $model = Mage::getModel('cms/block')->load($newEntityId);
|
37 |
-
// if($model->getId()){
|
38 |
-
// $model->setData($this->getColumnName(), $this->getTranslate());
|
39 |
-
// $model->save();
|
40 |
-
// }
|
41 |
-
// }
|
42 |
//
|
43 |
-
// $this->setIsImported(1)->save();
|
44 |
//
|
45 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
//
|
47 |
// private function _getConnection() {
|
48 |
// return Mage::getSingleton('core/resource')->getConnection('core_write');
|
12 |
{
|
13 |
$this->_init('strakertranslations_easytranslationplatform/cms_block_translate');
|
14 |
}
|
15 |
+
|
16 |
+
public function importTranslation(){
|
17 |
+
|
18 |
+
$newEntityId =Mage::getModel('strakertranslations_easytranslationplatform/job_cms_block')->load($this->getJobCmsId())
|
19 |
+
->getNewEntityId();
|
20 |
+
|
21 |
+
|
22 |
+
// if ($this->getTranslate()){
|
23 |
//
|
24 |
+
// $writeConnection = $this->_getConnection();
|
|
|
|
|
|
|
25 |
//
|
26 |
+
// $query = 'UPDATE `'.Mage::getSingleton('core/resource')->getTableName('cms/block')
|
27 |
+
// . '` SET '.$this->getColumnName() .' = \''.addslashes($this->getTranslate()).' \' WHERE block_id = '.$newEntityId;
|
28 |
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
//
|
30 |
+
// $writeConnection->query($query);
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
//
|
|
|
32 |
//
|
33 |
+
// }
|
34 |
+
|
35 |
+
if ($this->getTranslate()){
|
36 |
+
$model = Mage::getModel('cms/block')->load($newEntityId);
|
37 |
+
if($model->getId()){
|
38 |
+
$model->setData($this->getColumnName(), $this->getTranslate());
|
39 |
+
$model->save();
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
$this->setIsImported(1)->save();
|
44 |
+
|
45 |
+
}
|
46 |
//
|
47 |
// private function _getConnection() {
|
48 |
// return Mage::getSingleton('core/resource')->getConnection('core_write');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Cms/Page/Translate.php
CHANGED
@@ -13,48 +13,40 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Cms_Page_Translate exten
|
|
13 |
$this->_init('strakertranslations_easytranslationplatform/cms_page_translate');
|
14 |
}
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
//
|
29 |
-
//
|
30 |
-
//
|
31 |
-
//
|
32 |
-
//
|
33 |
-
// $model->setData($this->getColumnName(), $translation );
|
34 |
-
// $model->setData('stores', $this->getStoreId());
|
35 |
-
// // try to save it
|
36 |
-
// try {
|
37 |
-
// // save the data
|
38 |
-
// $model->save();
|
39 |
-
//
|
40 |
-
// // display success message
|
41 |
-
// Mage::getSingleton('adminhtml/session')->addSuccess(
|
42 |
-
// Mage::helper('cms')->__('The page has been saved.'));
|
43 |
-
// $this->setIsImported(1)->save();
|
44 |
-
// }catch (Exception $e) {
|
45 |
-
// $success = false;
|
46 |
-
// Mage::getSingleton('adminhtml/session')->addError($e->getMessage()
|
47 |
-
// . ' Page ID: ' . $this->getJobCmsId()
|
48 |
-
// . ' Attribute: ' . $this->getColumnName());
|
49 |
-
// }
|
50 |
-
// }
|
51 |
// }
|
52 |
-
//
|
53 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
//
|
55 |
// private function _getConnection() {
|
56 |
// return Mage::getSingleton('core/resource')->getConnection('core_write');
|
57 |
// }
|
58 |
|
59 |
-
|
60 |
}
|
13 |
$this->_init('strakertranslations_easytranslationplatform/cms_page_translate');
|
14 |
}
|
15 |
|
16 |
+
public function importTranslation(){
|
17 |
+
|
18 |
+
$newEntityId =Mage::getModel('strakertranslations_easytranslationplatform/job_cms_page')->load($this->getJobCmsId())
|
19 |
+
->getNewEntityId();
|
20 |
+
|
21 |
+
|
22 |
+
// if ($this->getTranslate()){
|
23 |
+
//
|
24 |
+
// $writeConnection = $this->_getConnection();
|
25 |
+
//
|
26 |
+
// $query = 'UPDATE `'.Mage::getSingleton('core/resource')->getTableName('cms/page')
|
27 |
+
// . '` SET '.$this->getColumnName() .' = \''.addslashes($this->getTranslate()).' \' WHERE page_id = '.$newEntityId;
|
28 |
+
//
|
29 |
+
//
|
30 |
+
// $writeConnection->query($query);
|
31 |
+
//
|
32 |
+
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
// }
|
34 |
+
//
|
35 |
+
// $this->setIsImported(1)->save();
|
36 |
+
$translation = $this->getTranslate();
|
37 |
+
if( !empty($translation) ){
|
38 |
+
$model = Mage::getModel('cms/page')->load($newEntityId);
|
39 |
+
if($model->getId()){
|
40 |
+
$model->setData($this->getColumnName(), $translation );
|
41 |
+
$model->save();
|
42 |
+
$model->unsetData();
|
43 |
+
}
|
44 |
+
}
|
45 |
+
$this->setIsImported(1)->save();
|
46 |
+
}
|
47 |
//
|
48 |
// private function _getConnection() {
|
49 |
// return Mage::getSingleton('core/resource')->getConnection('core_write');
|
50 |
// }
|
51 |
|
|
|
52 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Job.php
CHANGED
@@ -9,15 +9,12 @@
|
|
9 |
class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Model_Abstract
|
10 |
{
|
11 |
protected $_attributes = array();
|
|
|
12 |
protected $_translateFilePath = '/var/straker/';
|
13 |
-
/** @var $conn Varien_Db_Adapter_Interface */
|
14 |
-
protected $conn;
|
15 |
|
16 |
protected function _construct()
|
17 |
{
|
18 |
$this->_init('strakertranslations_easytranslationplatform/job');
|
19 |
-
/** @var $conn Varien_Db_Adapter_Interface */
|
20 |
-
$this->conn = $this->getWriteAdapter();
|
21 |
}
|
22 |
|
23 |
protected function addProductAttributes($productAttributeIds)
|
@@ -34,51 +31,27 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
34 |
|
35 |
protected function addProductIds($productIds)
|
36 |
{
|
37 |
-
$
|
38 |
-
$jobProductTableName = $this->getResource()->getTable('strakertranslations_easytranslationplatform/job_product');
|
39 |
-
|
40 |
foreach ($productIds as $productId) {
|
41 |
-
$
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
}
|
46 |
-
|
47 |
-
$this->conn->insertMultiple($jobProductTableName, $data);
|
48 |
-
// $model = Mage::getModel('strakertranslations_easytranslationplatform/job_product');
|
49 |
-
// foreach ($productIds as $productId) {
|
50 |
-
// $model->setProductId($productId);
|
51 |
-
// $model->setJobId($this->getId());
|
52 |
-
// $model->save();
|
53 |
-
// $model->unsetData();
|
54 |
-
// }
|
55 |
return $this;
|
56 |
}
|
57 |
|
58 |
protected function addProductTranslateOriginal($productAttributeId, $productCollection)
|
59 |
{
|
60 |
-
$
|
61 |
-
$productTranslateTableName = $this->getResource()->getTable('strakertranslations_easytranslationplatform/product_translate');
|
62 |
$productAttributeCode = Mage::getModel('eav/entity_attribute')->load($productAttributeId)->getAttributeCode();
|
63 |
-
// $model = Mage::getModel('strakertranslations_easytranslationplatform/product_translate');
|
64 |
foreach ($productCollection as $product) {
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
];
|
72 |
-
}
|
73 |
-
// $model->setJobId($this->getId());
|
74 |
-
// $model->setProductId($product->getId());
|
75 |
-
// $model->setAttributeId($productAttributeId);
|
76 |
-
// $model->setOriginal($product->getData($productAttributeCode));
|
77 |
-
// $model->save();
|
78 |
-
// $model->unsetData();
|
79 |
-
}
|
80 |
-
if($data){
|
81 |
-
$this->conn->insertMultiple($productTranslateTableName, $data);
|
82 |
}
|
83 |
return $this;
|
84 |
}
|
@@ -114,14 +87,12 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
114 |
$model = Mage::getModel('strakertranslations_easytranslationplatform/category_translate');
|
115 |
$categoryAttributeCode = Mage::getModel('eav/entity_attribute')->load($categoryAttributeId)->getAttributeCode();
|
116 |
foreach ($categoryCollection as $category) {
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
$model->unsetData();
|
124 |
-
}
|
125 |
}
|
126 |
return $this;
|
127 |
}
|
@@ -157,15 +128,13 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
157 |
break;
|
158 |
}
|
159 |
}
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
$model->unsetData();
|
168 |
-
}
|
169 |
}
|
170 |
|
171 |
return $this;
|
@@ -552,27 +521,23 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
552 |
$attributeFrontLabel = array();
|
553 |
|
554 |
foreach ($productTranslateCollection as $productTranslate) {
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
Mage::getModel('eav/entity_attribute')->load($productTranslate->getAttributeId())->getFrontendLabel();
|
560 |
-
}
|
561 |
-
|
562 |
-
$dataElement = $_xml->createElement('data');
|
563 |
-
$dataElement->setAttribute('name', $this->getTypeId() . '_' . $this->getStoreId() . '_' . $productTranslate->getAttributeId() . '_' . $productTranslate->getProductId());
|
564 |
-
$dataElement->setAttribute('content_context', $attributeFrontLabel[$productTranslate->getAttributeId()]);
|
565 |
-
$dataElement->setAttribute('content_context_url',Mage::getStoreConfig('web/unsecure/base_link_url', $this->getStoreId()) . 'catalog/category/view/id/' . $productTranslate->getProductId());
|
566 |
-
$dataElement->setAttribute('content_id', $productTranslate->getId());
|
567 |
|
568 |
-
|
569 |
-
|
570 |
-
|
|
|
|
|
571 |
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
|
|
|
|
|
576 |
}
|
577 |
|
578 |
$_xml->appendChild($rootElement);
|
@@ -725,6 +690,7 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
725 |
|
726 |
public function submitProducts($productAttributeIds, $productIds)
|
727 |
{
|
|
|
728 |
//product
|
729 |
$this->setTypeId(1);
|
730 |
$this->addProducts($productAttributeIds, $productIds)
|
@@ -764,7 +730,7 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
764 |
return $this;
|
765 |
}
|
766 |
|
767 |
-
public function
|
768 |
{
|
769 |
|
770 |
$this->setTypeId(6);
|
@@ -804,7 +770,6 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
804 |
if ($this->getJobKey()) {
|
805 |
$request = array();
|
806 |
$request['job_key'] = $this->getJobKey();
|
807 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Api $api */
|
808 |
$api = $this->_getApi();
|
809 |
$response = $api->getTranslation($request);
|
810 |
if ($response->job) {
|
@@ -813,11 +778,7 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
813 |
$updateFlag = $this->updateJob($job);
|
814 |
}
|
815 |
}
|
816 |
-
|
817 |
-
$this->setLastStatus(1);
|
818 |
-
}else{
|
819 |
-
$this->setLastStatus(0);
|
820 |
-
}
|
821 |
}
|
822 |
else{
|
823 |
$this->setLastStatus(0);
|
@@ -830,7 +791,6 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
830 |
}
|
831 |
|
832 |
public function bulkUpdateTranslation(){
|
833 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Api $api */
|
834 |
$api = $this->_getApi();
|
835 |
$response = $api->getTranslation(array());
|
836 |
return $response->job ? $response->job : false;
|
@@ -862,8 +822,7 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
862 |
foreach ($job->translated_file as $file) {
|
863 |
if ($file->download_url && !$this->getDownloadUrl()) {
|
864 |
$this->setDownloadUrl($file->download_url)->save();
|
865 |
-
$
|
866 |
-
$updateFlag = $result === false ? false : true;
|
867 |
}
|
868 |
}
|
869 |
return $updateFlag;
|
@@ -882,46 +841,52 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
882 |
|
883 |
protected function _importTranslation()
|
884 |
{
|
885 |
-
|
886 |
-
$
|
887 |
-
|
888 |
file_put_contents(Mage::getBaseDir() . $this->_translateFilePath . 'translated_job' . $this->getId() . '.xml', $xml, LOCK_EX);
|
|
|
889 |
$data = simplexml_load_string($xml);
|
890 |
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
if ($_translation->attributes()->content_context == "product attribute title") {
|
900 |
-
$_translationValueGroup[$_entityTranslationId]['title'] = (string)$_translation->value;
|
901 |
-
}
|
902 |
-
if ($_translation->attributes()->content_context == "product attribute option") {
|
903 |
-
$_translationValueGroup[$_entityTranslationId]['option']['id_' . $_translation->attributes()->option_id] = (string)$_translation->value;
|
904 |
-
}
|
905 |
-
} else {
|
906 |
-
$_translationValueGroup[$_entityTranslationId] = (string)$_translation->value;
|
907 |
}
|
908 |
-
}
|
909 |
|
910 |
-
|
911 |
-
|
912 |
-
if (is_array($_translationValue)) {
|
913 |
-
$xml = new SimpleXMLElement('<attribute/>');
|
914 |
-
$this->array_to_xml($_translationValue, $xml);
|
915 |
-
$value = (string)$xml->asXML();
|
916 |
}
|
917 |
|
918 |
-
|
919 |
-
$
|
920 |
-
|
921 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
922 |
}
|
923 |
-
|
|
|
|
|
|
|
|
|
|
|
924 |
}
|
|
|
|
|
|
|
925 |
}
|
926 |
|
927 |
protected function _getType()
|
@@ -948,99 +913,44 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
948 |
|
949 |
public function applyTranslation($entityIds = array())
|
950 |
{
|
951 |
-
$
|
952 |
-
$jobType = $this->_getType(); //product, category, cms_page ...
|
953 |
-
// collection for straker_<TYPE>_translate tables
|
954 |
-
$collection = Mage::getModel('strakertranslations_easytranslationplatform/' . $jobType . '_translate')->getCollection()->addFieldToFilter('job_id', $this->getId());
|
955 |
|
956 |
if ($entityIds) {
|
957 |
-
$collection->addFieldToFilter($
|
958 |
}
|
959 |
|
960 |
$updatedIds = array();
|
961 |
$writeConnection = $this->getWriteAdapter();
|
962 |
-
$prefix = Mage::getConfig()->getTablePrefix()->__toString();
|
963 |
-
|
964 |
-
try{
|
965 |
-
if (in_array($jobType, array('cms_block', 'cms_page'))) {
|
966 |
-
$result = $this->createNewCms($entityIds);
|
967 |
-
$cmsTableName = str_replace('_', '', $jobType); //cmsxxx
|
968 |
-
$cmsColumnName = str_replace('cms_', '', $jobType); //xxx
|
969 |
-
$cmsModelName = 'cms/'.$cmsColumnName;
|
970 |
-
|
971 |
-
if($result['success']){
|
972 |
-
//translated content array
|
973 |
-
$newCmsData = [];
|
974 |
-
foreach($collection as $translation){
|
975 |
-
if(!$translation->getIsImported()){
|
976 |
-
if(empty($newCmsData[$translation->getData($jobType . '_id')])){
|
977 |
-
$newCmsData[$translation->getData($jobType . '_id')] = [
|
978 |
-
$translation->getColumnName() => $translation->getTranslate(),
|
979 |
-
];
|
980 |
-
}else{
|
981 |
-
$newCmsData[$translation->getData($jobType . '_id')][$translation->getColumnName()] = $translation->getTranslate();
|
982 |
-
}
|
983 |
-
}
|
984 |
-
}
|
985 |
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
$updatedIds[$entityId] = true;
|
1004 |
-
$writeConnection->update($prefix . 'straker_job_' . $cmsTableName, array('version' => 1), $cmsColumnName . "_id = {$entityId} and job_id ={$this->getId()}");
|
1005 |
-
}
|
1006 |
-
}
|
1007 |
-
}else{
|
1008 |
-
$success = false;
|
1009 |
-
}
|
1010 |
-
}else{
|
1011 |
-
foreach ($collection as $translation) {
|
1012 |
-
if(!$translation->getVersion()){
|
1013 |
-
$return = $translation->setStoreId($this->getStoreId())->importTranslation();
|
1014 |
-
if($return){
|
1015 |
-
$entityId = call_user_func(array($translation, 'getData'), strtolower(str_replace(' ', '_', $this->getTypeName() . '_id')));
|
1016 |
-
if (empty($updatedIds[$entityId])) {
|
1017 |
-
$updatedIds[$entityId] = true;
|
1018 |
-
$writeConnection->update($prefix . 'straker_job_' . $jobType, array('version' => 1), $jobType . "_id = {$entityId} and job_id ={$this->getId()}");
|
1019 |
-
}
|
1020 |
-
}else{
|
1021 |
-
$success = false;
|
1022 |
-
}
|
1023 |
-
}
|
1024 |
}
|
1025 |
}
|
1026 |
-
}catch(Exception $e){
|
1027 |
-
$success = false;
|
1028 |
}
|
1029 |
-
|
1030 |
-
return $success;
|
1031 |
}
|
1032 |
|
1033 |
protected function createNewCms($entityIds)
|
1034 |
{
|
1035 |
-
$
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
$jobType = $this->_getType();
|
1040 |
-
$cmsType = str_replace('cms_', '', $jobType);
|
1041 |
-
$cmsModelName = str_replace('_', '/', $jobType);
|
1042 |
-
|
1043 |
-
$collection = Mage::getModel('strakertranslations_easytranslationplatform/job_' . $jobType)->getCollection();
|
1044 |
$collection->addFieldToFilter('job_id', $this->getId());
|
1045 |
|
1046 |
if ($entityIds) {
|
@@ -1056,18 +966,10 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
1056 |
}
|
1057 |
//add target store id
|
1058 |
// $cmsModel->setStores(array())->save();
|
1059 |
-
$cmsModel->setStores([$this->getStoreId()]);
|
1060 |
-
|
1061 |
-
$cmsModel->save();
|
1062 |
-
$jobCms->setNewEntityId($cmsModel->getId())->save();
|
1063 |
-
$return['new_entity_ids'][$jobCms->getData($cmsType . '_id')] = $cmsModel->getId();
|
1064 |
-
}catch(Exception $e){
|
1065 |
-
$return['success'] = false;
|
1066 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage() . 'URL Key: ' . $jobCms->getIdentifier());
|
1067 |
-
}
|
1068 |
}
|
1069 |
}
|
1070 |
-
return $return;
|
1071 |
}
|
1072 |
|
1073 |
public function isPublished()
|
@@ -1119,9 +1021,6 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
1119 |
|
1120 |
}
|
1121 |
|
1122 |
-
/**
|
1123 |
-
* @return Varien_Db_Adapter_Interface
|
1124 |
-
*/
|
1125 |
protected function getWriteAdapter()
|
1126 |
{
|
1127 |
return Mage::getSingleton('core/resource')->getConnection('core_write');
|
@@ -1143,7 +1042,7 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Mo
|
|
1143 |
$collection->distinct(true)->addFieldToSelect($filter);
|
1144 |
$languages = [];
|
1145 |
foreach ($collection->getData() as $lang) {
|
1146 |
-
$languages
|
1147 |
}
|
1148 |
/** @var $helper StrakerTranslations_EasyTranslationPlatform_Model_Api */
|
1149 |
$helper = Mage::getModel('strakertranslations_easytranslationplatform/api');
|
9 |
class StrakerTranslations_EasyTranslationPlatform_Model_Job extends Mage_Core_Model_Abstract
|
10 |
{
|
11 |
protected $_attributes = array();
|
12 |
+
|
13 |
protected $_translateFilePath = '/var/straker/';
|
|
|
|
|
14 |
|
15 |
protected function _construct()
|
16 |
{
|
17 |
$this->_init('strakertranslations_easytranslationplatform/job');
|
|
|
|
|
18 |
}
|
19 |
|
20 |
protected function addProductAttributes($productAttributeIds)
|
31 |
|
32 |
protected function addProductIds($productIds)
|
33 |
{
|
34 |
+
$model = Mage::getModel('strakertranslations_easytranslationplatform/job_product');
|
|
|
|
|
35 |
foreach ($productIds as $productId) {
|
36 |
+
$model->setProductId($productId);
|
37 |
+
$model->setJobId($this->getId());
|
38 |
+
$model->save();
|
39 |
+
$model->unsetData();
|
40 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
return $this;
|
42 |
}
|
43 |
|
44 |
protected function addProductTranslateOriginal($productAttributeId, $productCollection)
|
45 |
{
|
46 |
+
$model = Mage::getModel('strakertranslations_easytranslationplatform/product_translate');
|
|
|
47 |
$productAttributeCode = Mage::getModel('eav/entity_attribute')->load($productAttributeId)->getAttributeCode();
|
|
|
48 |
foreach ($productCollection as $product) {
|
49 |
+
$model->setJobId($this->getId());
|
50 |
+
$model->setProductId($product->getId());
|
51 |
+
$model->setAttributeId($productAttributeId);
|
52 |
+
$model->setOriginal($product->getData($productAttributeCode));
|
53 |
+
$model->save();
|
54 |
+
$model->unsetData();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
return $this;
|
57 |
}
|
87 |
$model = Mage::getModel('strakertranslations_easytranslationplatform/category_translate');
|
88 |
$categoryAttributeCode = Mage::getModel('eav/entity_attribute')->load($categoryAttributeId)->getAttributeCode();
|
89 |
foreach ($categoryCollection as $category) {
|
90 |
+
$model->setJobId($this->getId());
|
91 |
+
$model->setCategoryId($category->getId());
|
92 |
+
$model->setAttributeId($categoryAttributeId);
|
93 |
+
$model->setOriginal($category->getData($categoryAttributeCode));
|
94 |
+
$model->save();
|
95 |
+
$model->unsetData();
|
|
|
|
|
96 |
}
|
97 |
return $this;
|
98 |
}
|
128 |
break;
|
129 |
}
|
130 |
}
|
131 |
+
$model->setJobId($this->getId());
|
132 |
+
$model->setData('cms_'.$type.'_id', $cmsData[$type . '_id']);
|
133 |
+
$model->setcolumnName($Column);
|
134 |
+
$model->setOriginal($cmsData[$Column]);
|
135 |
+
$model->setJobCmsId($jobCmsId);
|
136 |
+
$model->save();
|
137 |
+
$model->unsetData();
|
|
|
|
|
138 |
}
|
139 |
|
140 |
return $this;
|
521 |
$attributeFrontLabel = array();
|
522 |
|
523 |
foreach ($productTranslateCollection as $productTranslate) {
|
524 |
+
if (!isset($attributeFrontLabel[$productTranslate->getAttributeId()])) {
|
525 |
+
$attributeFrontLabel[$productTranslate->getAttributeId()] =
|
526 |
+
Mage::getModel('eav/entity_attribute')->load($productTranslate->getAttributeId())->getFrontendLabel();
|
527 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
|
529 |
+
$dataElement = $_xml->createElement('data');
|
530 |
+
$dataElement->setAttribute('name', $this->getTypeId() . '_' . $this->getStoreId() . '_' . $productTranslate->getAttributeId() . '_' . $productTranslate->getProductId());
|
531 |
+
$dataElement->setAttribute('content_context', $attributeFrontLabel[$productTranslate->getAttributeId()]);
|
532 |
+
$dataElement->setAttribute('content_context_url',Mage::getStoreConfig('web/unsecure/base_link_url', $this->getStoreId()) . 'catalog/category/view/id/' . $productTranslate->getProductId());
|
533 |
+
$dataElement->setAttribute('content_id', $productTranslate->getId());
|
534 |
|
535 |
+
$valueElement = $_xml->createElement('value');
|
536 |
+
$CDATAValueNode = $_xml->createCDATASection($productTranslate->getOriginal());
|
537 |
+
$valueElement->appendChild($CDATAValueNode);
|
538 |
|
539 |
+
$dataElement->appendChild($valueElement);
|
540 |
+
$rootElement->appendChild($dataElement);
|
541 |
}
|
542 |
|
543 |
$_xml->appendChild($rootElement);
|
690 |
|
691 |
public function submitProducts($productAttributeIds, $productIds)
|
692 |
{
|
693 |
+
|
694 |
//product
|
695 |
$this->setTypeId(1);
|
696 |
$this->addProducts($productAttributeIds, $productIds)
|
730 |
return $this;
|
731 |
}
|
732 |
|
733 |
+
public function submitCmsblock($cmsIds, $columns = array('title', 'content'))
|
734 |
{
|
735 |
|
736 |
$this->setTypeId(6);
|
770 |
if ($this->getJobKey()) {
|
771 |
$request = array();
|
772 |
$request['job_key'] = $this->getJobKey();
|
|
|
773 |
$api = $this->_getApi();
|
774 |
$response = $api->getTranslation($request);
|
775 |
if ($response->job) {
|
778 |
$updateFlag = $this->updateJob($job);
|
779 |
}
|
780 |
}
|
781 |
+
$this->setLastStatus(1);
|
|
|
|
|
|
|
|
|
782 |
}
|
783 |
else{
|
784 |
$this->setLastStatus(0);
|
791 |
}
|
792 |
|
793 |
public function bulkUpdateTranslation(){
|
|
|
794 |
$api = $this->_getApi();
|
795 |
$response = $api->getTranslation(array());
|
796 |
return $response->job ? $response->job : false;
|
822 |
foreach ($job->translated_file as $file) {
|
823 |
if ($file->download_url && !$this->getDownloadUrl()) {
|
824 |
$this->setDownloadUrl($file->download_url)->save();
|
825 |
+
$this->_importTranslation();
|
|
|
826 |
}
|
827 |
}
|
828 |
return $updateFlag;
|
841 |
|
842 |
protected function _importTranslation()
|
843 |
{
|
844 |
+
|
845 |
+
$xml = $this->_getApi()->getTranslatedFile($this->getDownloadUrl());
|
846 |
+
|
847 |
file_put_contents(Mage::getBaseDir() . $this->_translateFilePath . 'translated_job' . $this->getId() . '.xml', $xml, LOCK_EX);
|
848 |
+
|
849 |
$data = simplexml_load_string($xml);
|
850 |
|
851 |
+
$_translationValueGroup = array();
|
852 |
+
|
853 |
+
foreach ($data->children() as $_translation) {
|
854 |
+
|
855 |
+
$_entityTranslationId = (string)$_translation->attributes()->content_id;
|
856 |
+
if ($this->_getType() == 'attribute') {
|
857 |
+
if ($_translation->attributes()->content_context == "product attribute title") {
|
858 |
+
$_translationValueGroup[$_entityTranslationId]['title'] = (string)$_translation->value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
859 |
}
|
|
|
860 |
|
861 |
+
if ($_translation->attributes()->content_context == "product attribute option") {
|
862 |
+
$_translationValueGroup[$_entityTranslationId]['option']['id_' . $_translation->attributes()->option_id] = (string)$_translation->value;
|
|
|
|
|
|
|
|
|
863 |
}
|
864 |
|
865 |
+
} else {
|
866 |
+
$_translationValueGroup[$_entityTranslationId] = (string)$_translation->value;
|
867 |
+
}
|
868 |
+
|
869 |
+
}
|
870 |
+
|
871 |
+
foreach ($_translationValueGroup as $content_id => $_translationValue) {
|
872 |
+
|
873 |
+
$value = $_translationValue;
|
874 |
+
|
875 |
+
if (is_array($_translationValue)) {
|
876 |
+
$xml = new SimpleXMLElement('<attribute/>');
|
877 |
+
$this->array_to_xml($_translationValue, $xml);
|
878 |
+
$value = (string)$xml->asXML();
|
879 |
}
|
880 |
+
|
881 |
+
|
882 |
+
$_entityTranslation = Mage::getModel('strakertranslations_easytranslationplatform/' . $this->_getType() . '_translate')->load($content_id);
|
883 |
+
$_entityTranslation->setTranslate($value);
|
884 |
+
$_entityTranslation->save();
|
885 |
+
$_entityTranslation->clearInstance();
|
886 |
}
|
887 |
+
|
888 |
+
return $this->setDownloadedVersion(1)->save();
|
889 |
+
|
890 |
}
|
891 |
|
892 |
protected function _getType()
|
913 |
|
914 |
public function applyTranslation($entityIds = array())
|
915 |
{
|
916 |
+
$collection = Mage::getModel('strakertranslations_easytranslationplatform/' . $this->_getType() . '_translate')->getCollection()->addFieldToFilter('job_id', $this->getId());
|
|
|
|
|
|
|
917 |
|
918 |
if ($entityIds) {
|
919 |
+
$collection->addFieldToFilter($this->_getType() . '_id', array('in' => $entityIds));
|
920 |
}
|
921 |
|
922 |
$updatedIds = array();
|
923 |
$writeConnection = $this->getWriteAdapter();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
924 |
|
925 |
+
if (in_array($this->_getType(), array('cms_block', 'cms_page'))) {
|
926 |
+
$this->createNewCms($entityIds);
|
927 |
+
}
|
928 |
+
|
929 |
+
foreach ($collection as $translation) {
|
930 |
+
$translation->setStoreId($this->getStoreId())->importTranslation();
|
931 |
+
$entityId = call_user_func(array($translation, 'getData'), strtolower(str_replace(' ', '_', $this->getTypeName() . '_id')));
|
932 |
+
if (empty($updatedIds[$entityId])) {
|
933 |
+
$updatedIds[$entityId] = true;
|
934 |
+
$prefix = Mage::getConfig()->getTablePrefix()->__toString();
|
935 |
+
if (in_array($this->_getType(), array('cms_block', 'cms_page'))) {
|
936 |
+
$cmstableName = str_replace('_', '', $this->_getType());
|
937 |
+
$cmsColumnName = str_replace('cms_', '', $this->_getType());
|
938 |
+
$entityId = $translation->getData($this->_getType() . '_id');
|
939 |
+
$writeConnection->update($prefix . 'straker_job_' . $cmstableName, array('version' => 1), $cmsColumnName . "_id = {$entityId} and job_id ={$this->getId()}");
|
940 |
+
} else {
|
941 |
+
$writeConnection->update($prefix . 'straker_job_' . $this->_getType(), array('version' => 1), $this->_getType() . "_id = {$entityId} and job_id ={$this->getId()}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
942 |
}
|
943 |
}
|
|
|
|
|
944 |
}
|
945 |
+
return true;
|
|
|
946 |
}
|
947 |
|
948 |
protected function createNewCms($entityIds)
|
949 |
{
|
950 |
+
$cmsType = str_replace('cms_', '', $this->_getType());
|
951 |
+
$cmsModelName = str_replace('_', '/', $this->_getType());
|
952 |
+
|
953 |
+
$collection = Mage::getModel('strakertranslations_easytranslationplatform/job_' . $this->_getType())->getCollection();
|
|
|
|
|
|
|
|
|
|
|
954 |
$collection->addFieldToFilter('job_id', $this->getId());
|
955 |
|
956 |
if ($entityIds) {
|
966 |
}
|
967 |
//add target store id
|
968 |
// $cmsModel->setStores(array())->save();
|
969 |
+
$cmsModel->setStores([$this->getStoreId()])->save();
|
970 |
+
$jobCms->setNewEntityId($cmsModel->getId())->save();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
971 |
}
|
972 |
}
|
|
|
973 |
}
|
974 |
|
975 |
public function isPublished()
|
1021 |
|
1022 |
}
|
1023 |
|
|
|
|
|
|
|
1024 |
protected function getWriteAdapter()
|
1025 |
{
|
1026 |
return Mage::getSingleton('core/resource')->getConnection('core_write');
|
1042 |
$collection->distinct(true)->addFieldToSelect($filter);
|
1043 |
$languages = [];
|
1044 |
foreach ($collection->getData() as $lang) {
|
1045 |
+
array_push($languages, $lang[$filter]);
|
1046 |
}
|
1047 |
/** @var $helper StrakerTranslations_EasyTranslationPlatform_Model_Api */
|
1048 |
$helper = Mage::getModel('strakertranslations_easytranslationplatform/api');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Product/Translate.php
CHANGED
@@ -14,29 +14,30 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Product_Translate extend
|
|
14 |
}
|
15 |
|
16 |
public function importTranslation(){
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
$product = Mage::getModel('catalog/product')
|
23 |
-
->setStoreId($this->getStoreId())
|
24 |
-
->load($this->getProductId());
|
25 |
-
$productAttributeCode = $this->_getAttributeCode($this->getAttributeId());
|
26 |
-
$this->setBackup($product->getData($productAttributeCode));
|
27 |
-
$product->setData($productAttributeCode, $translatedValue)
|
28 |
-
->getResource()
|
29 |
-
->saveAttribute($product, $productAttributeCode);
|
30 |
-
$this->setIsImported(1)->save();
|
31 |
-
$product->clearInstance();
|
32 |
-
}
|
33 |
-
}catch(Exception $e){
|
34 |
-
$success = false;
|
35 |
}
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
protected function _getAttributeCode($attributeId){
|
|
|
40 |
if (!Mage::registry('attributeCodeCache_'.$attributeId)){
|
41 |
$productAttributeCode = Mage::getModel('eav/entity_attribute')->load($attributeId)->getAttributeCode();
|
42 |
Mage::register('attributeCodeCache_'.$attributeId,$productAttributeCode);
|
@@ -44,5 +45,7 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Product_Translate extend
|
|
44 |
$productAttributeCode = Mage::registry('attributeCodeCache_'.$attributeId);
|
45 |
}
|
46 |
return $productAttributeCode;
|
|
|
47 |
}
|
|
|
48 |
}
|
14 |
}
|
15 |
|
16 |
public function importTranslation(){
|
17 |
+
|
18 |
+
//if translated value is null, skip
|
19 |
+
$translatedValue = $this->getTranslate();
|
20 |
+
if (is_null($translatedValue)){
|
21 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
+
|
24 |
+
$product = Mage::getModel('catalog/product')->setStoreId($this->getStoreId())->load($this->getProductId());
|
25 |
+
|
26 |
+
$productAttributeCode = $this->_getAttributeCode($this->getAttributeId());
|
27 |
+
|
28 |
+
$this->setBackup($product->getData($productAttributeCode));
|
29 |
+
|
30 |
+
$product->setData($productAttributeCode, $translatedValue)
|
31 |
+
->getResource()
|
32 |
+
->saveAttribute($product, $productAttributeCode);
|
33 |
+
$this->setIsImported(1)->save();
|
34 |
+
|
35 |
+
$product->clearInstance();
|
36 |
+
|
37 |
}
|
38 |
|
39 |
protected function _getAttributeCode($attributeId){
|
40 |
+
|
41 |
if (!Mage::registry('attributeCodeCache_'.$attributeId)){
|
42 |
$productAttributeCode = Mage::getModel('eav/entity_attribute')->load($attributeId)->getAttributeCode();
|
43 |
Mage::register('attributeCodeCache_'.$attributeId,$productAttributeCode);
|
45 |
$productAttributeCode = Mage::registry('attributeCodeCache_'.$attributeId);
|
46 |
}
|
47 |
return $productAttributeCode;
|
48 |
+
|
49 |
}
|
50 |
+
|
51 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Resource/Job/Attribute/Collection.php
CHANGED
@@ -13,15 +13,4 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Resource_Job_Attribute_C
|
|
13 |
$this->_init('strakertranslations_easytranslationplatform/job_attribute');
|
14 |
}
|
15 |
|
16 |
-
public function getAllIds()
|
17 |
-
{
|
18 |
-
$idsSelect = clone $this->getSelect();
|
19 |
-
$idsSelect->reset(Zend_Db_Select::ORDER);
|
20 |
-
$idsSelect->reset(Zend_Db_Select::LIMIT_COUNT);
|
21 |
-
$idsSelect->reset(Zend_Db_Select::LIMIT_OFFSET);
|
22 |
-
$idsSelect->reset(Zend_Db_Select::COLUMNS);
|
23 |
-
|
24 |
-
$idsSelect->columns('attribute_id', 'main_table');
|
25 |
-
return $this->getConnection()->fetchCol($idsSelect);
|
26 |
-
}
|
27 |
}
|
13 |
$this->_init('strakertranslations_easytranslationplatform/job_attribute');
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Resource/Job/Cms/Block/Collection.php
CHANGED
@@ -13,16 +13,4 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Resource_Job_Cms_Block_C
|
|
13 |
$this->_init('strakertranslations_easytranslationplatform/job_cms_block');
|
14 |
}
|
15 |
|
16 |
-
public function getAllIds()
|
17 |
-
{
|
18 |
-
$idsSelect = clone $this->getSelect();
|
19 |
-
$idsSelect->reset(Zend_Db_Select::ORDER);
|
20 |
-
$idsSelect->reset(Zend_Db_Select::LIMIT_COUNT);
|
21 |
-
$idsSelect->reset(Zend_Db_Select::LIMIT_OFFSET);
|
22 |
-
$idsSelect->reset(Zend_Db_Select::COLUMNS);
|
23 |
-
|
24 |
-
$idsSelect->columns('block_id', 'main_table');
|
25 |
-
return $this->getConnection()->fetchCol($idsSelect);
|
26 |
-
}
|
27 |
-
|
28 |
}
|
13 |
$this->_init('strakertranslations_easytranslationplatform/job_cms_block');
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/Model/Resource/Job/Cms/Page/Collection.php
CHANGED
@@ -13,16 +13,4 @@ class StrakerTranslations_EasyTranslationPlatform_Model_Resource_Job_Cms_Page_Co
|
|
13 |
$this->_init('strakertranslations_easytranslationplatform/job_cms_page');
|
14 |
}
|
15 |
|
16 |
-
public function getAllIds()
|
17 |
-
{
|
18 |
-
$idsSelect = clone $this->getSelect();
|
19 |
-
$idsSelect->reset(Zend_Db_Select::ORDER);
|
20 |
-
$idsSelect->reset(Zend_Db_Select::LIMIT_COUNT);
|
21 |
-
$idsSelect->reset(Zend_Db_Select::LIMIT_OFFSET);
|
22 |
-
$idsSelect->reset(Zend_Db_Select::COLUMNS);
|
23 |
-
|
24 |
-
$idsSelect->columns('page_id', 'main_table');
|
25 |
-
return $this->getConnection()->fetchCol($idsSelect);
|
26 |
-
}
|
27 |
-
|
28 |
}
|
13 |
$this->_init('strakertranslations_easytranslationplatform/job_cms_page');
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/AttributeController.php
CHANGED
@@ -61,7 +61,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_AttributeCon
|
|
61 |
}
|
62 |
}
|
63 |
|
64 |
-
public function
|
65 |
$data = $this->getRequest()->getParams();
|
66 |
if(empty($data['attribute']) && empty($data['option'])){
|
67 |
$data['attribute'] = Mage::getSingleton('adminhtml/session')->getData('straker_new_attribute');
|
@@ -87,7 +87,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_AttributeCon
|
|
87 |
}
|
88 |
}
|
89 |
|
90 |
-
public function
|
91 |
$data = $this->getRequest()->getParams();
|
92 |
if( $data['store'] && isset($data['attribute']) && isset($data['option']) ){
|
93 |
$attribute = !empty($data['attribute'])?explode(',', $data['attribute']):array();
|
@@ -147,7 +147,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_AttributeCon
|
|
147 |
}
|
148 |
}
|
149 |
|
150 |
-
public function
|
151 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
152 |
|
153 |
if (!$job->getId()){
|
@@ -168,7 +168,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_AttributeCon
|
|
168 |
|
169 |
}
|
170 |
|
171 |
-
public function
|
172 |
$jobId = $this->getRequest()->getParam('job_id');
|
173 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
174 |
|
@@ -204,8 +204,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_AttributeCon
|
|
204 |
}
|
205 |
|
206 |
public function removeFromCartAction(){
|
207 |
-
$attributeId =
|
208 |
-
if(!empty($
|
209 |
$attributeId = $this->getRequest()->getParam('attribute_id');
|
210 |
}
|
211 |
$attributeIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_attribute');
|
@@ -227,7 +227,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_AttributeCon
|
|
227 |
// var_dump($optionIds);
|
228 |
// exit;
|
229 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_option', implode(',', $optionIds));
|
230 |
-
$this->_redirect('*/*/
|
231 |
}
|
232 |
|
233 |
public function gridAction()
|
61 |
}
|
62 |
}
|
63 |
|
64 |
+
public function addtoconfirmAction(){
|
65 |
$data = $this->getRequest()->getParams();
|
66 |
if(empty($data['attribute']) && empty($data['option'])){
|
67 |
$data['attribute'] = Mage::getSingleton('adminhtml/session')->getData('straker_new_attribute');
|
87 |
}
|
88 |
}
|
89 |
|
90 |
+
public function submitjobAction(){
|
91 |
$data = $this->getRequest()->getParams();
|
92 |
if( $data['store'] && isset($data['attribute']) && isset($data['option']) ){
|
93 |
$attribute = !empty($data['attribute'])?explode(',', $data['attribute']):array();
|
147 |
}
|
148 |
}
|
149 |
|
150 |
+
public function copyAllAction(){
|
151 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
152 |
|
153 |
if (!$job->getId()){
|
168 |
|
169 |
}
|
170 |
|
171 |
+
public function applyTranslationAction(){
|
172 |
$jobId = $this->getRequest()->getParam('job_id');
|
173 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
174 |
|
204 |
}
|
205 |
|
206 |
public function removeFromCartAction(){
|
207 |
+
$attributeId = 0;
|
208 |
+
if(!empty($this->getRequest()->getParam('attribute_id'))){
|
209 |
$attributeId = $this->getRequest()->getParam('attribute_id');
|
210 |
}
|
211 |
$attributeIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_attribute');
|
227 |
// var_dump($optionIds);
|
228 |
// exit;
|
229 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_option', implode(',', $optionIds));
|
230 |
+
$this->_redirect('*/*/addtoconfirm');
|
231 |
}
|
232 |
|
233 |
public function gridAction()
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/CategoryController.php
CHANGED
@@ -78,7 +78,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_CategoryCont
|
|
78 |
}
|
79 |
}
|
80 |
|
81 |
-
public function
|
82 |
{
|
83 |
$data = $this->getRequest()->getParams();
|
84 |
if($data['attr'] && $data['store'] && $data['category']){
|
@@ -159,7 +159,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_CategoryCont
|
|
159 |
// }
|
160 |
}
|
161 |
|
162 |
-
public function
|
163 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
164 |
|
165 |
if (!$job->getId()){
|
@@ -180,7 +180,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_CategoryCont
|
|
180 |
|
181 |
}
|
182 |
|
183 |
-
public function
|
184 |
$jobId = $this->getRequest()->getParam('job_id');
|
185 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
186 |
|
@@ -262,8 +262,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_CategoryCont
|
|
262 |
}
|
263 |
|
264 |
public function removeFromCartAction(){
|
265 |
-
$entityId =
|
266 |
-
if(!empty($
|
267 |
$entityId = $this->getRequest()->getParam('entity_id');
|
268 |
}
|
269 |
$categoryIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_category');
|
78 |
}
|
79 |
}
|
80 |
|
81 |
+
public function submitjobAction()
|
82 |
{
|
83 |
$data = $this->getRequest()->getParams();
|
84 |
if($data['attr'] && $data['store'] && $data['category']){
|
159 |
// }
|
160 |
}
|
161 |
|
162 |
+
public function copyAllAction(){
|
163 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
164 |
|
165 |
if (!$job->getId()){
|
180 |
|
181 |
}
|
182 |
|
183 |
+
public function applyTranslationAction(){
|
184 |
$jobId = $this->getRequest()->getParam('job_id');
|
185 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
186 |
|
262 |
}
|
263 |
|
264 |
public function removeFromCartAction(){
|
265 |
+
$entityId = 0;
|
266 |
+
if(!empty($this->getRequest()->getParam('entity_id'))){
|
267 |
$entityId = $this->getRequest()->getParam('entity_id');
|
268 |
}
|
269 |
$categoryIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_category');
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/Cms/BlockController.php
CHANGED
@@ -74,7 +74,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_BlockCon
|
|
74 |
}
|
75 |
}
|
76 |
|
77 |
-
public function
|
78 |
$data = $this->_getParamArray();
|
79 |
if(!empty($data['attr']) && !empty($data['store']) && !empty($data['cms_block'])){
|
80 |
Mage::getSingleton('adminhtml/session')
|
@@ -94,10 +94,9 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_BlockCon
|
|
94 |
}
|
95 |
}
|
96 |
|
97 |
-
public function
|
98 |
$data = $this->getRequest()->getParams();
|
99 |
if($data['attr'] && $data['store'] && $data['cms_block']){
|
100 |
-
/** @var $jobModel StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
101 |
$jobModel = Mage::getModel('strakertranslations_easytranslationplatform/job');
|
102 |
try {
|
103 |
$jobModel->checkAndCreateFolder();
|
@@ -134,8 +133,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_BlockCon
|
|
134 |
}
|
135 |
}
|
136 |
|
137 |
-
public function
|
138 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Job $job */
|
139 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
140 |
|
141 |
if (!$job->getId()){
|
@@ -156,9 +154,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_BlockCon
|
|
156 |
|
157 |
}
|
158 |
|
159 |
-
public function
|
160 |
$jobId = $this->getRequest()->getParam('job_id');
|
161 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Job $job */
|
162 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
163 |
|
164 |
if (!$job->getId()){
|
@@ -242,8 +239,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_BlockCon
|
|
242 |
}
|
243 |
|
244 |
public function removeFromCartAction(){
|
245 |
-
$entityId =
|
246 |
-
if(!empty($
|
247 |
$entityId = $this->getRequest()->getParam('block_id');
|
248 |
}
|
249 |
$blockIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_cms_block');
|
@@ -254,7 +251,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_BlockCon
|
|
254 |
unset($blockIds[$key]);
|
255 |
}
|
256 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_cms_block', $blockIds);
|
257 |
-
$this->_redirect('*/*/
|
258 |
}
|
259 |
|
260 |
private function _getParamArray(){
|
74 |
}
|
75 |
}
|
76 |
|
77 |
+
public function addtoconfirmAction(){
|
78 |
$data = $this->_getParamArray();
|
79 |
if(!empty($data['attr']) && !empty($data['store']) && !empty($data['cms_block'])){
|
80 |
Mage::getSingleton('adminhtml/session')
|
94 |
}
|
95 |
}
|
96 |
|
97 |
+
public function submitjobAction(){
|
98 |
$data = $this->getRequest()->getParams();
|
99 |
if($data['attr'] && $data['store'] && $data['cms_block']){
|
|
|
100 |
$jobModel = Mage::getModel('strakertranslations_easytranslationplatform/job');
|
101 |
try {
|
102 |
$jobModel->checkAndCreateFolder();
|
133 |
}
|
134 |
}
|
135 |
|
136 |
+
public function copyAllAction(){
|
|
|
137 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
138 |
|
139 |
if (!$job->getId()){
|
154 |
|
155 |
}
|
156 |
|
157 |
+
public function applyTranslationAction(){
|
158 |
$jobId = $this->getRequest()->getParam('job_id');
|
|
|
159 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
160 |
|
161 |
if (!$job->getId()){
|
239 |
}
|
240 |
|
241 |
public function removeFromCartAction(){
|
242 |
+
$entityId = 0;
|
243 |
+
if(!empty($this->getRequest()->getParam('block_id'))){
|
244 |
$entityId = $this->getRequest()->getParam('block_id');
|
245 |
}
|
246 |
$blockIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_cms_block');
|
251 |
unset($blockIds[$key]);
|
252 |
}
|
253 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_cms_block', $blockIds);
|
254 |
+
$this->_redirect('*/*/addtoconfirm');
|
255 |
}
|
256 |
|
257 |
private function _getParamArray(){
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/Cms/PageController.php
CHANGED
@@ -74,7 +74,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_PageCont
|
|
74 |
}
|
75 |
}
|
76 |
|
77 |
-
public function
|
78 |
$data = $this->_getParamArray();
|
79 |
if(!empty($data['attr']) && !empty($data['store']) && !empty($data['cms_page'])){
|
80 |
Mage::getSingleton('adminhtml/session')
|
@@ -94,7 +94,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_PageCont
|
|
94 |
}
|
95 |
}
|
96 |
|
97 |
-
public function
|
98 |
$data = $this->getRequest()->getParams();
|
99 |
if($data['attr'] && $data['store'] && $data['cms_page']){
|
100 |
/** @var $jobModel StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
@@ -134,7 +134,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_PageCont
|
|
134 |
}
|
135 |
}
|
136 |
|
137 |
-
public function
|
138 |
/** @var $job StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
139 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
140 |
|
@@ -156,9 +156,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_PageCont
|
|
156 |
|
157 |
}
|
158 |
|
159 |
-
public function
|
160 |
$jobId = $this->getRequest()->getParam('job_id');
|
161 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Job $job */
|
162 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
163 |
|
164 |
if (!$job->getId()){
|
@@ -242,8 +241,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_PageCont
|
|
242 |
}
|
243 |
|
244 |
public function removeFromCartAction(){
|
245 |
-
$entityId =
|
246 |
-
if(!empty($
|
247 |
$entityId = $this->getRequest()->getParam('page_id');
|
248 |
}
|
249 |
$pageIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_cms_page');
|
@@ -254,7 +253,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_Cms_PageCont
|
|
254 |
unset($pageIds[$key]);
|
255 |
}
|
256 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_cms_page', $pageIds);
|
257 |
-
$this->_redirect('*/*/
|
258 |
}
|
259 |
|
260 |
private function _getParamArray(){
|
74 |
}
|
75 |
}
|
76 |
|
77 |
+
public function addtoconfirmAction(){
|
78 |
$data = $this->_getParamArray();
|
79 |
if(!empty($data['attr']) && !empty($data['store']) && !empty($data['cms_page'])){
|
80 |
Mage::getSingleton('adminhtml/session')
|
94 |
}
|
95 |
}
|
96 |
|
97 |
+
public function submitjobAction(){
|
98 |
$data = $this->getRequest()->getParams();
|
99 |
if($data['attr'] && $data['store'] && $data['cms_page']){
|
100 |
/** @var $jobModel StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
134 |
}
|
135 |
}
|
136 |
|
137 |
+
public function copyAllAction(){
|
138 |
/** @var $job StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
139 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
140 |
|
156 |
|
157 |
}
|
158 |
|
159 |
+
public function applyTranslationAction(){
|
160 |
$jobId = $this->getRequest()->getParam('job_id');
|
|
|
161 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
162 |
|
163 |
if (!$job->getId()){
|
241 |
}
|
242 |
|
243 |
public function removeFromCartAction(){
|
244 |
+
$entityId = 0;
|
245 |
+
if(!empty($this->getRequest()->getParam('page_id'))){
|
246 |
$entityId = $this->getRequest()->getParam('page_id');
|
247 |
}
|
248 |
$pageIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_cms_page');
|
253 |
unset($pageIds[$key]);
|
254 |
}
|
255 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_cms_page', $pageIds);
|
256 |
+
$this->_redirect('*/*/addtoconfirm');
|
257 |
}
|
258 |
|
259 |
private function _getParamArray(){
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/JobController.php
CHANGED
@@ -16,6 +16,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_JobControlle
|
|
16 |
}
|
17 |
|
18 |
public function indexAction(){
|
|
|
19 |
/** @var $helper StrakerTranslations_EasyTranslationPlatform_Helper_Data */
|
20 |
$helper = Mage::helper('strakertranslations_easytranslationplatform');
|
21 |
$helper->checkSiteMode();
|
@@ -37,22 +38,19 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_JobControlle
|
|
37 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job');
|
38 |
$response = $job->bulkUpdateTranslation();
|
39 |
if ( $response ) {
|
40 |
-
/** @var StrakerTranslations_EasyTranslationPlatform_Model_Job $jobModel */
|
41 |
foreach($collection as $jobModel){
|
42 |
foreach ($response as $jobResponse) {
|
43 |
if ($jobResponse->token == $jobModel->getId()) {
|
44 |
$jobModel = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobModel->getId());
|
45 |
-
$
|
46 |
-
if($result){
|
47 |
-
Mage::getSingleton('core/session')->addSuccess($this->__('Job %s has been updated.', $jobModel->getId()));
|
48 |
-
}
|
49 |
}
|
50 |
}
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
}
|
53 |
-
}else if($collection->count() === 1){
|
54 |
-
$id = $collection->getFirstItem()->getData('id');
|
55 |
-
$this->_updateJob($id);
|
56 |
}
|
57 |
|
58 |
$this->_title($this->__('Straker Translations'))
|
@@ -63,19 +61,10 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_JobControlle
|
|
63 |
}
|
64 |
|
65 |
public function updateJobAction() {
|
66 |
-
$data = $this->getRequest()->getParams();
|
67 |
-
$id = $data['job_id'];
|
68 |
-
if($id){
|
69 |
-
$this->_updateJob($id);
|
70 |
-
$this->_redirect('*/*/');
|
71 |
-
}
|
72 |
-
return false;
|
73 |
-
}
|
74 |
|
75 |
-
|
76 |
-
if($
|
77 |
-
|
78 |
-
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load((int)$id);
|
79 |
|
80 |
if(!$job->getJobKey()){
|
81 |
return false;
|
@@ -84,11 +73,16 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_JobControlle
|
|
84 |
if( $job->updateTranslation() ){
|
85 |
Mage::getSingleton('core/session')->addSuccess($this->__('Job %s has been updated.', $job->getId()));
|
86 |
}
|
87 |
-
|
|
|
|
|
88 |
}
|
|
|
89 |
return false;
|
|
|
90 |
}
|
91 |
|
|
|
92 |
public function disputeAction() {
|
93 |
$data = $this->getRequest()->getParams();
|
94 |
if($data['job_id'] && $data['message']){
|
16 |
}
|
17 |
|
18 |
public function indexAction(){
|
19 |
+
|
20 |
/** @var $helper StrakerTranslations_EasyTranslationPlatform_Helper_Data */
|
21 |
$helper = Mage::helper('strakertranslations_easytranslationplatform');
|
22 |
$helper->checkSiteMode();
|
38 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job');
|
39 |
$response = $job->bulkUpdateTranslation();
|
40 |
if ( $response ) {
|
|
|
41 |
foreach($collection as $jobModel){
|
42 |
foreach ($response as $jobResponse) {
|
43 |
if ($jobResponse->token == $jobModel->getId()) {
|
44 |
$jobModel = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobModel->getId());
|
45 |
+
$jobModel->updateJob($jobResponse);
|
|
|
|
|
|
|
46 |
}
|
47 |
}
|
48 |
+
if ( $job->updateTranslation() ){
|
49 |
+
|
50 |
+
Mage::getSingleton('core/session')->addSuccess($this->__('Job %s has been updated.', $job->getId()));
|
51 |
+
}
|
52 |
}
|
53 |
}
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
$this->_title($this->__('Straker Translations'))
|
61 |
}
|
62 |
|
63 |
public function updateJobAction() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
+
$data = $this->getRequest()->getParams();
|
66 |
+
if($data['job_id']){
|
67 |
+
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load((int) $data['job_id']);
|
|
|
68 |
|
69 |
if(!$job->getJobKey()){
|
70 |
return false;
|
73 |
if( $job->updateTranslation() ){
|
74 |
Mage::getSingleton('core/session')->addSuccess($this->__('Job %s has been updated.', $job->getId()));
|
75 |
}
|
76 |
+
$this->_redirect('*/*/');
|
77 |
+
return;
|
78 |
+
|
79 |
}
|
80 |
+
|
81 |
return false;
|
82 |
+
|
83 |
}
|
84 |
|
85 |
+
|
86 |
public function disputeAction() {
|
87 |
$data = $this->getRequest()->getParams();
|
88 |
if($data['job_id'] && $data['message']){
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/Adminhtml/Straker/ProductController.php
CHANGED
@@ -83,7 +83,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
83 |
}
|
84 |
}
|
85 |
|
86 |
-
public function
|
87 |
$data = $this->_getParamArray();
|
88 |
if(!empty($data['attr']) && !empty($data['store']) && !empty($data['product'])){
|
89 |
Mage::getSingleton('adminhtml/session')
|
@@ -103,10 +103,9 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
103 |
}
|
104 |
}
|
105 |
|
106 |
-
public function
|
107 |
$data = $this->getRequest()->getParams();
|
108 |
if($data['attr'] && $data['store'] && $data['product']){
|
109 |
-
/** @var $jobModel StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
110 |
$jobModel = Mage::getModel('strakertranslations_easytranslationplatform/job');
|
111 |
try {
|
112 |
$jobModel->checkAndCreateFolder();
|
@@ -120,7 +119,6 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
120 |
return;
|
121 |
}
|
122 |
$attributeCodes = array_unique(explode(',', $data['attr']));
|
123 |
-
$attr_ids = [];
|
124 |
foreach($attributeCodes as $attributeCode){
|
125 |
$attr_ids[] = $attribute = Mage::getSingleton('eav/config')
|
126 |
->getAttribute(Mage_Catalog_Model_Product::ENTITY, $attributeCode)->getAttributeId();
|
@@ -151,8 +149,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
151 |
}
|
152 |
}
|
153 |
|
154 |
-
public function
|
155 |
-
/** @var $job StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
156 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
157 |
|
158 |
if (!$job->getId()){
|
@@ -173,9 +170,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
173 |
|
174 |
}
|
175 |
|
176 |
-
public function
|
177 |
$jobId = $this->getRequest()->getParam('job_id');
|
178 |
-
/** @var $job StrakerTranslations_EasyTranslationPlatform_Model_Job */
|
179 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
180 |
|
181 |
if (!$job->getId()){
|
@@ -210,8 +206,8 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
210 |
}
|
211 |
|
212 |
public function removeFromCartAction(){
|
213 |
-
$entityId =
|
214 |
-
if(!empty($
|
215 |
$entityId = $this->getRequest()->getParam('entity_id');
|
216 |
}
|
217 |
$productIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_product');
|
@@ -222,7 +218,7 @@ Class StrakerTranslations_EasyTranslationPlatform_Adminhtml_Straker_ProductContr
|
|
222 |
unset($productIds[$key]);
|
223 |
}
|
224 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_product', $productIds);
|
225 |
-
$this->_redirect('*/*/
|
226 |
}
|
227 |
|
228 |
public function gridAction()
|
83 |
}
|
84 |
}
|
85 |
|
86 |
+
public function addtoconfirmAction(){
|
87 |
$data = $this->_getParamArray();
|
88 |
if(!empty($data['attr']) && !empty($data['store']) && !empty($data['product'])){
|
89 |
Mage::getSingleton('adminhtml/session')
|
103 |
}
|
104 |
}
|
105 |
|
106 |
+
public function submitjobAction(){
|
107 |
$data = $this->getRequest()->getParams();
|
108 |
if($data['attr'] && $data['store'] && $data['product']){
|
|
|
109 |
$jobModel = Mage::getModel('strakertranslations_easytranslationplatform/job');
|
110 |
try {
|
111 |
$jobModel->checkAndCreateFolder();
|
119 |
return;
|
120 |
}
|
121 |
$attributeCodes = array_unique(explode(',', $data['attr']));
|
|
|
122 |
foreach($attributeCodes as $attributeCode){
|
123 |
$attr_ids[] = $attribute = Mage::getSingleton('eav/config')
|
124 |
->getAttribute(Mage_Catalog_Model_Product::ENTITY, $attributeCode)->getAttributeId();
|
149 |
}
|
150 |
}
|
151 |
|
152 |
+
public function copyAllAction(){
|
|
|
153 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($this->getRequest()->getParam('job_id'));
|
154 |
|
155 |
if (!$job->getId()){
|
170 |
|
171 |
}
|
172 |
|
173 |
+
public function applyTranslationAction(){
|
174 |
$jobId = $this->getRequest()->getParam('job_id');
|
|
|
175 |
$job = Mage::getModel('strakertranslations_easytranslationplatform/job')->load($jobId);
|
176 |
|
177 |
if (!$job->getId()){
|
206 |
}
|
207 |
|
208 |
public function removeFromCartAction(){
|
209 |
+
$entityId = 0;
|
210 |
+
if(!empty($this->getRequest()->getParam('entity_id'))){
|
211 |
$entityId = $this->getRequest()->getParam('entity_id');
|
212 |
}
|
213 |
$productIds = Mage::getSingleton('adminhtml/session')->getData('straker_new_product');
|
218 |
unset($productIds[$key]);
|
219 |
}
|
220 |
Mage::getSingleton('adminhtml/session')->setData('straker_new_product', $productIds);
|
221 |
+
$this->_redirect('*/*/addtoconfirm');
|
222 |
}
|
223 |
|
224 |
public function gridAction()
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/controllers/CallbackController.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
class StrakerTranslations_EasyTranslationPlatform_CallbackController extends Mage_Core_Controller_Front_Action{
|
3 |
-
|
4 |
$data = $this->getRequest()->getPost();
|
5 |
Mage::log(print_r($data,true), null , 'straker_callback.log' , true);
|
6 |
|
1 |
<?php
|
2 |
class StrakerTranslations_EasyTranslationPlatform_CallbackController extends Mage_Core_Controller_Front_Action{
|
3 |
+
function indexAction(){
|
4 |
$data = $this->getRequest()->getPost();
|
5 |
Mage::log(print_r($data,true), null , 'straker_callback.log' , true);
|
6 |
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<StrakerTranslations_EasyTranslationPlatform>
|
5 |
-
<version>1.4.
|
6 |
</StrakerTranslations_EasyTranslationPlatform>
|
7 |
</modules>
|
8 |
<global>
|
@@ -140,19 +140,16 @@
|
|
140 |
</adminhtml>
|
141 |
<default>
|
142 |
<straker>
|
143 |
-
<general>
|
144 |
-
<site_mode>0</site_mode>
|
145 |
-
</general>
|
146 |
<api_url>
|
147 |
-
<register>https://
|
148 |
-
<languages>https://
|
149 |
-
<translate>https://
|
150 |
-
<translate_sandbox>https://
|
151 |
-
<quote>https://
|
152 |
-
<countries>https://
|
153 |
-
<payment>https://
|
154 |
-
<payment_page>https://
|
155 |
-
<support>https://
|
156 |
</api_url>
|
157 |
</straker>
|
158 |
</default>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<StrakerTranslations_EasyTranslationPlatform>
|
5 |
+
<version>1.4.1</version>
|
6 |
</StrakerTranslations_EasyTranslationPlatform>
|
7 |
</modules>
|
8 |
<global>
|
140 |
</adminhtml>
|
141 |
<default>
|
142 |
<straker>
|
|
|
|
|
|
|
143 |
<api_url>
|
144 |
+
<register>https://app.strakertranslations.com/v1/ta1ma/register</register>
|
145 |
+
<languages>https://app.strakertranslations.com/v1/languages</languages>
|
146 |
+
<translate>https://app.strakertranslations.com/v1/ta1ma/translate</translate>
|
147 |
+
<translate_sandbox>https://app-sandbox.strakertranslations.com/v1/ta1ma/translate</translate_sandbox>
|
148 |
+
<quote>https://app.strakertranslations.com/v1/quote</quote>
|
149 |
+
<countries>https://app.strakertranslations.com/v1/countries</countries>
|
150 |
+
<payment>https://app.strakertranslations.com/v1/payment</payment>
|
151 |
+
<payment_page>https://myaccount.strakertranslations.com/o/?action=api.quote</payment_page>
|
152 |
+
<support>https://app.strakertranslations.com/v1/ta1ma/support</support>
|
153 |
</api_url>
|
154 |
</straker>
|
155 |
</default>
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/config_live.xml
DELETED
@@ -1,156 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<StrakerTranslations_EasyTranslationPlatform>
|
5 |
-
<version>1.4.0</version>
|
6 |
-
</StrakerTranslations_EasyTranslationPlatform>
|
7 |
-
</modules>
|
8 |
-
<global>
|
9 |
-
<models>
|
10 |
-
<strakertranslations_easytranslationplatform>
|
11 |
-
<class>StrakerTranslations_EasyTranslationPlatform_Model</class>
|
12 |
-
<resourceModel>strakertranslations_easytranslationplatform_resource</resourceModel>
|
13 |
-
</strakertranslations_easytranslationplatform>
|
14 |
-
<strakertranslations_easytranslationplatform_resource>
|
15 |
-
<class>StrakerTranslations_EasyTranslationPlatform_Model_Resource</class>
|
16 |
-
<entities>
|
17 |
-
<actionlog>
|
18 |
-
<table>straker_actionlog</table>
|
19 |
-
</actionlog>
|
20 |
-
<job>
|
21 |
-
<table>straker_job</table>
|
22 |
-
</job>
|
23 |
-
<job_product>
|
24 |
-
<table>straker_job_product</table>
|
25 |
-
</job_product>
|
26 |
-
<job_type>
|
27 |
-
<table>straker_job_type</table>
|
28 |
-
</job_type>
|
29 |
-
<job_status>
|
30 |
-
<table>straker_job_status</table>
|
31 |
-
</job_status>
|
32 |
-
<product_attributes>
|
33 |
-
<table>straker_product_attributes</table>
|
34 |
-
</product_attributes>
|
35 |
-
<product_translate>
|
36 |
-
<table>straker_product_translate</table>
|
37 |
-
</product_translate>
|
38 |
-
<job_category>
|
39 |
-
<table>straker_job_category</table>
|
40 |
-
</job_category>
|
41 |
-
<category_translate>
|
42 |
-
<table>straker_category_translate</table>
|
43 |
-
</category_translate>
|
44 |
-
<category_attributes>
|
45 |
-
<table>straker_category_attributes</table>
|
46 |
-
</category_attributes>
|
47 |
-
<job_attribute>
|
48 |
-
<table>straker_job_attribute</table>
|
49 |
-
</job_attribute>
|
50 |
-
<straker_attribute_translate>
|
51 |
-
<table>straker_attribute_translate</table>
|
52 |
-
</straker_attribute_translate>
|
53 |
-
<job_cmspage>
|
54 |
-
<table>straker_job_cmspage</table>
|
55 |
-
</job_cmspage>
|
56 |
-
<job_cmsblock>
|
57 |
-
<table>straker_job_cmsblock</table>
|
58 |
-
</job_cmsblock>
|
59 |
-
<cms_page_translate>
|
60 |
-
<table>straker_cms_page_translate</table>
|
61 |
-
</cms_page_translate>
|
62 |
-
<cms_block_translate>
|
63 |
-
<table>straker_cms_block_translate</table>
|
64 |
-
</cms_block_translate>
|
65 |
-
<cms_block_attributes>
|
66 |
-
<table>straker_cms_block_attributes</table>
|
67 |
-
</cms_block_attributes>
|
68 |
-
<cms_page_attributes>
|
69 |
-
<table>straker_cms_page_attributes</table>
|
70 |
-
</cms_page_attributes>
|
71 |
-
</entities>
|
72 |
-
</strakertranslations_easytranslationplatform_resource>
|
73 |
-
</models>
|
74 |
-
<blocks>
|
75 |
-
<strakertranslations_easytranslationplatform>
|
76 |
-
<class>StrakerTranslations_EasyTranslationPlatform_Block</class>
|
77 |
-
</strakertranslations_easytranslationplatform>
|
78 |
-
<adminhtml>
|
79 |
-
<rewrite>
|
80 |
-
<cms_page_grid>StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Cms_Page_Grid</cms_page_grid>
|
81 |
-
<cms_block_grid>StrakerTranslations_EasyTranslationPlatform_Block_Adminhtml_Cms_Block_Grid</cms_block_grid>
|
82 |
-
</rewrite>
|
83 |
-
</adminhtml>
|
84 |
-
</blocks>
|
85 |
-
<helpers>
|
86 |
-
<strakertranslations_easytranslationplatform>
|
87 |
-
<class>StrakerTranslations_EasyTranslationPlatform_Helper</class>
|
88 |
-
</strakertranslations_easytranslationplatform>
|
89 |
-
</helpers>
|
90 |
-
<resources>
|
91 |
-
<strakertranslations_easytranslationplatform_setup>
|
92 |
-
<setup>
|
93 |
-
<module>StrakerTranslations_EasyTranslationPlatform</module>
|
94 |
-
</setup>
|
95 |
-
</strakertranslations_easytranslationplatform_setup>
|
96 |
-
</resources>
|
97 |
-
</global>
|
98 |
-
<admin>
|
99 |
-
<routers>
|
100 |
-
<adminhtml>
|
101 |
-
<args>
|
102 |
-
<modules>
|
103 |
-
<StrakerTranslations before="Mage_Adminhtml">StrakerTranslations_EasyTranslationPlatform_Adminhtml</StrakerTranslations>
|
104 |
-
</modules>
|
105 |
-
</args>
|
106 |
-
</adminhtml>
|
107 |
-
</routers>
|
108 |
-
</admin>
|
109 |
-
<frontend>
|
110 |
-
<routers>
|
111 |
-
<StrakerTranslations>
|
112 |
-
<use>standard</use>
|
113 |
-
<args>
|
114 |
-
<module>StrakerTranslations_EasyTranslationPlatform</module>
|
115 |
-
<frontName>straker</frontName>
|
116 |
-
</args>
|
117 |
-
</StrakerTranslations>
|
118 |
-
</routers>
|
119 |
-
</frontend>
|
120 |
-
<stores>
|
121 |
-
<admin>
|
122 |
-
<design>
|
123 |
-
<package>
|
124 |
-
<name>default</name>
|
125 |
-
</package>
|
126 |
-
<theme>
|
127 |
-
<default>straker</default>
|
128 |
-
</theme>
|
129 |
-
</design>
|
130 |
-
</admin>
|
131 |
-
</stores>
|
132 |
-
<adminhtml>
|
133 |
-
<layout>
|
134 |
-
<updates>
|
135 |
-
<StrakerTranslations_EasyTranslationPlatform>
|
136 |
-
<file>straker.xml</file>
|
137 |
-
</StrakerTranslations_EasyTranslationPlatform>
|
138 |
-
</updates>
|
139 |
-
</layout>
|
140 |
-
</adminhtml>
|
141 |
-
<default>
|
142 |
-
<straker>
|
143 |
-
<api_url>
|
144 |
-
<register>https://app.strakertranslations.com/v1/ta1ma/register</register>
|
145 |
-
<languages>https://app.strakertranslations.com/v1/languages</languages>
|
146 |
-
<translate>https://app.strakertranslations.com/v1/ta1ma/translate</translate>
|
147 |
-
<translate_sandbox>https://app-sandbox.strakertranslations.com/v1/ta1ma/translate</translate_sandbox>
|
148 |
-
<quote>https://app.strakertranslations.com/v1/quote</quote>
|
149 |
-
<countries>https://app.strakertranslations.com/v1/countries</countries>
|
150 |
-
<payment>https://app.strakertranslations.com/v1/payment</payment>
|
151 |
-
<payment_page>https://myaccount.strakertranslations.com/o/?action=api.quote</payment_page>
|
152 |
-
<support>https://app.strakertranslations.com/v1/ta1ma/support</support>
|
153 |
-
</api_url>
|
154 |
-
</straker>
|
155 |
-
</default>
|
156 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/system.xml
CHANGED
@@ -33,22 +33,22 @@
|
|
33 |
<!--<show_in_website>1</show_in_website>-->
|
34 |
<!--<show_in_store>1</show_in_store>-->
|
35 |
<!--</site_mode>-->
|
36 |
-
<access_token translate="label comment" >
|
37 |
-
<label>Access Token</label>
|
38 |
-
<frontend_type>text</frontend_type>
|
39 |
-
<sort_order>10</sort_order>
|
40 |
-
<show_in_default>1</show_in_default>
|
41 |
-
<show_in_website>1</show_in_website>
|
42 |
-
<show_in_store>1</show_in_store>
|
43 |
-
</access_token>
|
44 |
-
<application_key translate="label comment" >
|
45 |
-
<label>Application Key</label>
|
46 |
-
<frontend_type>text</frontend_type>
|
47 |
-
<sort_order>20</sort_order>
|
48 |
-
<show_in_default>1</show_in_default>
|
49 |
-
<show_in_website>1</show_in_website>
|
50 |
-
<show_in_store>1</show_in_store>
|
51 |
-
</application_key>
|
52 |
<clear translate="label">
|
53 |
<label>Clear All Language Settings</label>
|
54 |
<frontend_type>button</frontend_type>
|
@@ -67,100 +67,100 @@
|
|
67 |
<show_in_website>1</show_in_website>
|
68 |
<show_in_store>1</show_in_store>
|
69 |
</store>
|
70 |
-
<backup translate="label">
|
71 |
-
<label>Backup Product Data</label>
|
72 |
-
<frontend_type>button</frontend_type>
|
73 |
-
<frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_backupbutton</frontend_model>
|
74 |
-
<sort_order>50</sort_order>
|
75 |
-
<show_in_default>1</show_in_default>
|
76 |
-
<show_in_website>1</show_in_website>
|
77 |
-
<show_in_store>1</show_in_store>
|
78 |
-
</backup>
|
79 |
-
<restore translate="label">
|
80 |
-
<label>Backup Product Data</label>
|
81 |
-
<frontend_type>button</frontend_type>
|
82 |
-
<frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_restorebutton</frontend_model>
|
83 |
-
<sort_order>60</sort_order>
|
84 |
-
<show_in_default>1</show_in_default>
|
85 |
-
<show_in_website>1</show_in_website>
|
86 |
-
<show_in_store>1</show_in_store>
|
87 |
-
</restore>
|
88 |
</fields>
|
89 |
</general>
|
90 |
-
<api_url translate="label">
|
91 |
-
<label>Api Url</label>
|
92 |
-
<frontend_type>text</frontend_type>
|
93 |
-
<sort_order>100</sort_order>
|
94 |
-
<show_in_default>1</show_in_default>
|
95 |
-
<show_in_website>1</show_in_website>
|
96 |
-
<show_in_store>1</show_in_store>
|
97 |
-
<fields>
|
98 |
-
<register translate="label comment" >
|
99 |
-
<label>Register</label>
|
100 |
-
<frontend_type>text</frontend_type>
|
101 |
-
<sort_order>10</sort_order>
|
102 |
-
<show_in_default>1</show_in_default>
|
103 |
-
<show_in_website>1</show_in_website>
|
104 |
-
<show_in_store>1</show_in_store>
|
105 |
-
</register>
|
106 |
-
<quote translate="label comment" >
|
107 |
-
<label>Quote</label>
|
108 |
-
<frontend_type>text</frontend_type>
|
109 |
-
<sort_order>20</sort_order>
|
110 |
-
<show_in_default>1</show_in_default>
|
111 |
-
<show_in_website>1</show_in_website>
|
112 |
-
<show_in_store>1</show_in_store>
|
113 |
-
</quote>
|
114 |
-
<countries translate="label comment" >
|
115 |
-
<label>Countries</label>
|
116 |
-
<frontend_type>text</frontend_type>
|
117 |
-
<sort_order>30</sort_order>
|
118 |
-
<show_in_default>1</show_in_default>
|
119 |
-
<show_in_website>1</show_in_website>
|
120 |
-
<show_in_store>1</show_in_store>
|
121 |
-
</countries>
|
122 |
-
<languages translate="label comment" >
|
123 |
-
<label>Languages</label>
|
124 |
-
<frontend_type>text</frontend_type>
|
125 |
-
<sort_order>40</sort_order>
|
126 |
-
<show_in_default>1</show_in_default>
|
127 |
-
<show_in_website>1</show_in_website>
|
128 |
-
<show_in_store>1</show_in_store>
|
129 |
-
</languages>
|
130 |
-
<translate translate="label comment" >
|
131 |
-
<label>Translate</label>
|
132 |
-
<frontend_type>text</frontend_type>
|
133 |
-
<sort_order>50</sort_order>
|
134 |
-
<show_in_default>1</show_in_default>
|
135 |
-
<show_in_website>1</show_in_website>
|
136 |
-
<show_in_store>1</show_in_store>
|
137 |
-
</translate>
|
138 |
-
<translate_sandbox translate="label comment" >
|
139 |
-
<label>Translate (Sandbox)</label>
|
140 |
-
<frontend_type>text</frontend_type>
|
141 |
-
<sort_order>50</sort_order>
|
142 |
-
<show_in_default>0</show_in_default>
|
143 |
-
<show_in_website>0</show_in_website>
|
144 |
-
<show_in_store>0</show_in_store>
|
145 |
-
</translate_sandbox>
|
146 |
-
<payment_page translate="label comment" >
|
147 |
-
<label>Payment Page</label>
|
148 |
-
<frontend_type>text</frontend_type>
|
149 |
-
<sort_order>70</sort_order>
|
150 |
-
<show_in_default>1</show_in_default>
|
151 |
-
<show_in_website>1</show_in_website>
|
152 |
-
<show_in_store>1</show_in_store>
|
153 |
-
</payment_page>
|
154 |
-
<payment translate="label comment" >
|
155 |
-
<label>Payment</label>
|
156 |
-
<frontend_type>text</frontend_type>
|
157 |
-
<sort_order>80</sort_order>
|
158 |
-
<show_in_default>1</show_in_default>
|
159 |
-
<show_in_website>1</show_in_website>
|
160 |
-
<show_in_store>1</show_in_store>
|
161 |
-
</payment>
|
162 |
-
</fields>
|
163 |
-
</api_url>
|
164 |
</groups>
|
165 |
</straker>
|
166 |
</sections>
|
33 |
<!--<show_in_website>1</show_in_website>-->
|
34 |
<!--<show_in_store>1</show_in_store>-->
|
35 |
<!--</site_mode>-->
|
36 |
+
<!-- <access_token translate="label comment" > -->
|
37 |
+
<!-- <label>Access Token</label> -->
|
38 |
+
<!-- <frontend_type>text</frontend_type> -->
|
39 |
+
<!-- <sort_order>10</sort_order> -->
|
40 |
+
<!-- <show_in_default>1</show_in_default> -->
|
41 |
+
<!-- <show_in_website>1</show_in_website> -->
|
42 |
+
<!-- <show_in_store>1</show_in_store> -->
|
43 |
+
<!-- </access_token> -->
|
44 |
+
<!-- <application_key translate="label comment" > -->
|
45 |
+
<!-- <label>Application Key</label> -->
|
46 |
+
<!-- <frontend_type>text</frontend_type> -->
|
47 |
+
<!-- <sort_order>20</sort_order> -->
|
48 |
+
<!-- <show_in_default>1</show_in_default> -->
|
49 |
+
<!-- <show_in_website>1</show_in_website> -->
|
50 |
+
<!-- <show_in_store>1</show_in_store> -->
|
51 |
+
<!-- </application_key> -->
|
52 |
<clear translate="label">
|
53 |
<label>Clear All Language Settings</label>
|
54 |
<frontend_type>button</frontend_type>
|
67 |
<show_in_website>1</show_in_website>
|
68 |
<show_in_store>1</show_in_store>
|
69 |
</store>
|
70 |
+
<!-- <backup translate="label"> -->
|
71 |
+
<!-- <label>Backup Product Data</label> -->
|
72 |
+
<!-- <frontend_type>button</frontend_type> -->
|
73 |
+
<!-- <frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_backupbutton</frontend_model> -->
|
74 |
+
<!-- <sort_order>50</sort_order> -->
|
75 |
+
<!-- <show_in_default>1</show_in_default> -->
|
76 |
+
<!-- <show_in_website>1</show_in_website> -->
|
77 |
+
<!-- <show_in_store>1</show_in_store> -->
|
78 |
+
<!-- </backup> -->
|
79 |
+
<!-- <restore translate="label"> -->
|
80 |
+
<!-- <label>Backup Product Data</label> -->
|
81 |
+
<!-- <frontend_type>button</frontend_type> -->
|
82 |
+
<!-- <frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_restorebutton</frontend_model> -->
|
83 |
+
<!-- <sort_order>60</sort_order> -->
|
84 |
+
<!-- <show_in_default>1</show_in_default> -->
|
85 |
+
<!-- <show_in_website>1</show_in_website> -->
|
86 |
+
<!-- <show_in_store>1</show_in_store> -->
|
87 |
+
<!-- </restore> -->
|
88 |
</fields>
|
89 |
</general>
|
90 |
+
<!-- <api_url translate="label"> -->
|
91 |
+
<!-- <label>Api Url</label> -->
|
92 |
+
<!-- <frontend_type>text</frontend_type> -->
|
93 |
+
<!-- <sort_order>100</sort_order> -->
|
94 |
+
<!-- <show_in_default>1</show_in_default> -->
|
95 |
+
<!-- <show_in_website>1</show_in_website> -->
|
96 |
+
<!-- <show_in_store>1</show_in_store> -->
|
97 |
+
<!-- <fields> -->
|
98 |
+
<!-- <register translate="label comment" > -->
|
99 |
+
<!-- <label>Register</label> -->
|
100 |
+
<!-- <frontend_type>text</frontend_type> -->
|
101 |
+
<!-- <sort_order>10</sort_order> -->
|
102 |
+
<!-- <show_in_default>1</show_in_default> -->
|
103 |
+
<!-- <show_in_website>1</show_in_website> -->
|
104 |
+
<!-- <show_in_store>1</show_in_store> -->
|
105 |
+
<!-- </register> -->
|
106 |
+
<!-- <quote translate="label comment" > -->
|
107 |
+
<!-- <label>Quote</label> -->
|
108 |
+
<!-- <frontend_type>text</frontend_type> -->
|
109 |
+
<!-- <sort_order>20</sort_order> -->
|
110 |
+
<!-- <show_in_default>1</show_in_default> -->
|
111 |
+
<!-- <show_in_website>1</show_in_website> -->
|
112 |
+
<!-- <show_in_store>1</show_in_store> -->
|
113 |
+
<!-- </quote> -->
|
114 |
+
<!-- <countries translate="label comment" > -->
|
115 |
+
<!-- <label>Countries</label> -->
|
116 |
+
<!-- <frontend_type>text</frontend_type> -->
|
117 |
+
<!-- <sort_order>30</sort_order> -->
|
118 |
+
<!-- <show_in_default>1</show_in_default> -->
|
119 |
+
<!-- <show_in_website>1</show_in_website> -->
|
120 |
+
<!-- <show_in_store>1</show_in_store> -->
|
121 |
+
<!-- </countries> -->
|
122 |
+
<!-- <languages translate="label comment" > -->
|
123 |
+
<!-- <label>Languages</label> -->
|
124 |
+
<!-- <frontend_type>text</frontend_type> -->
|
125 |
+
<!-- <sort_order>40</sort_order> -->
|
126 |
+
<!-- <show_in_default>1</show_in_default> -->
|
127 |
+
<!-- <show_in_website>1</show_in_website> -->
|
128 |
+
<!-- <show_in_store>1</show_in_store> -->
|
129 |
+
<!-- </languages> -->
|
130 |
+
<!-- <translate translate="label comment" > -->
|
131 |
+
<!-- <label>Translate</label> -->
|
132 |
+
<!-- <frontend_type>text</frontend_type> -->
|
133 |
+
<!-- <sort_order>50</sort_order> -->
|
134 |
+
<!-- <show_in_default>1</show_in_default> -->
|
135 |
+
<!-- <show_in_website>1</show_in_website> -->
|
136 |
+
<!-- <show_in_store>1</show_in_store> -->
|
137 |
+
<!-- </translate> -->
|
138 |
+
<!-- <translate_sandbox translate="label comment" > -->
|
139 |
+
<!-- <label>Translate (Sandbox)</label> -->
|
140 |
+
<!-- <frontend_type>text</frontend_type> -->
|
141 |
+
<!-- <sort_order>50</sort_order> -->
|
142 |
+
<!-- <show_in_default>0</show_in_default> -->
|
143 |
+
<!-- <show_in_website>0</show_in_website> -->
|
144 |
+
<!-- <show_in_store>0</show_in_store> -->
|
145 |
+
<!-- </translate_sandbox> -->
|
146 |
+
<!-- <payment_page translate="label comment" > -->
|
147 |
+
<!-- <label>Payment Page</label> -->
|
148 |
+
<!-- <frontend_type>text</frontend_type> -->
|
149 |
+
<!-- <sort_order>70</sort_order> -->
|
150 |
+
<!-- <show_in_default>1</show_in_default> -->
|
151 |
+
<!-- <show_in_website>1</show_in_website> -->
|
152 |
+
<!-- <show_in_store>1</show_in_store> -->
|
153 |
+
<!-- </payment_page> -->
|
154 |
+
<!-- <payment translate="label comment" > -->
|
155 |
+
<!-- <label>Payment</label> -->
|
156 |
+
<!-- <frontend_type>text</frontend_type> -->
|
157 |
+
<!-- <sort_order>80</sort_order> -->
|
158 |
+
<!-- <show_in_default>1</show_in_default> -->
|
159 |
+
<!-- <show_in_website>1</show_in_website> -->
|
160 |
+
<!-- <show_in_store>1</show_in_store> -->
|
161 |
+
<!-- </payment> -->
|
162 |
+
<!-- </fields> -->
|
163 |
+
<!-- </api_url> -->
|
164 |
</groups>
|
165 |
</straker>
|
166 |
</sections>
|
app/code/community/StrakerTranslations/EasyTranslationPlatform/etc/system_live.xml
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<tabs>
|
4 |
-
<straker translate="label">
|
5 |
-
<label>Straker Translations</label>
|
6 |
-
<sort_order>10</sort_order>
|
7 |
-
</straker>
|
8 |
-
</tabs>
|
9 |
-
<sections>
|
10 |
-
<straker>
|
11 |
-
<label>Straker Translation Extension</label>
|
12 |
-
<tab>straker</tab>
|
13 |
-
<frontend_type>text</frontend_type>
|
14 |
-
<sort_order>20</sort_order>
|
15 |
-
<show_in_default>1</show_in_default>
|
16 |
-
<show_in_website>1</show_in_website>
|
17 |
-
<show_in_store>1</show_in_store>
|
18 |
-
<groups>
|
19 |
-
<general translate="label">
|
20 |
-
<label>Account</label>
|
21 |
-
<frontend_type>text</frontend_type>
|
22 |
-
<sort_order>100</sort_order>
|
23 |
-
<show_in_default>1</show_in_default>
|
24 |
-
<show_in_website>1</show_in_website>
|
25 |
-
<show_in_store>1</show_in_store>
|
26 |
-
<fields>
|
27 |
-
<!--<site_mode translate="label comment" >-->
|
28 |
-
<!--<label>Site Mode</label>-->
|
29 |
-
<!--<frontend_type>select</frontend_type>-->
|
30 |
-
<!--<sort_order>0</sort_order>-->
|
31 |
-
<!--<source_model>strakertranslations_easytranslationplatform/system_config_source_siteMode</source_model>-->
|
32 |
-
<!--<show_in_default>1</show_in_default>-->
|
33 |
-
<!--<show_in_website>1</show_in_website>-->
|
34 |
-
<!--<show_in_store>1</show_in_store>-->
|
35 |
-
<!--</site_mode>-->
|
36 |
-
<!-- <access_token translate="label comment" > -->
|
37 |
-
<!-- <label>Access Token</label> -->
|
38 |
-
<!-- <frontend_type>text</frontend_type> -->
|
39 |
-
<!-- <sort_order>10</sort_order> -->
|
40 |
-
<!-- <show_in_default>1</show_in_default> -->
|
41 |
-
<!-- <show_in_website>1</show_in_website> -->
|
42 |
-
<!-- <show_in_store>1</show_in_store> -->
|
43 |
-
<!-- </access_token> -->
|
44 |
-
<!-- <application_key translate="label comment" > -->
|
45 |
-
<!-- <label>Application Key</label> -->
|
46 |
-
<!-- <frontend_type>text</frontend_type> -->
|
47 |
-
<!-- <sort_order>20</sort_order> -->
|
48 |
-
<!-- <show_in_default>1</show_in_default> -->
|
49 |
-
<!-- <show_in_website>1</show_in_website> -->
|
50 |
-
<!-- <show_in_store>1</show_in_store> -->
|
51 |
-
<!-- </application_key> -->
|
52 |
-
<clear translate="label">
|
53 |
-
<label>Clear All Language Settings</label>
|
54 |
-
<frontend_type>button</frontend_type>
|
55 |
-
<frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_button</frontend_model>
|
56 |
-
<sort_order>30</sort_order>
|
57 |
-
<show_in_default>1</show_in_default>
|
58 |
-
<show_in_website>1</show_in_website>
|
59 |
-
<show_in_store>1</show_in_store>
|
60 |
-
</clear>
|
61 |
-
<store translate="label">
|
62 |
-
<label>Reset Language Settings for a Store</label>
|
63 |
-
<frontend_type>button</frontend_type>
|
64 |
-
<frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_store</frontend_model>
|
65 |
-
<sort_order>40</sort_order>
|
66 |
-
<show_in_default>1</show_in_default>
|
67 |
-
<show_in_website>1</show_in_website>
|
68 |
-
<show_in_store>1</show_in_store>
|
69 |
-
</store>
|
70 |
-
<!-- <backup translate="label"> -->
|
71 |
-
<!-- <label>Backup Product Data</label> -->
|
72 |
-
<!-- <frontend_type>button</frontend_type> -->
|
73 |
-
<!-- <frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_backupbutton</frontend_model> -->
|
74 |
-
<!-- <sort_order>50</sort_order> -->
|
75 |
-
<!-- <show_in_default>1</show_in_default> -->
|
76 |
-
<!-- <show_in_website>1</show_in_website> -->
|
77 |
-
<!-- <show_in_store>1</show_in_store> -->
|
78 |
-
<!-- </backup> -->
|
79 |
-
<!-- <restore translate="label"> -->
|
80 |
-
<!-- <label>Backup Product Data</label> -->
|
81 |
-
<!-- <frontend_type>button</frontend_type> -->
|
82 |
-
<!-- <frontend_model>strakertranslations_easytranslationplatform/adminhtml_system_config_form_restorebutton</frontend_model> -->
|
83 |
-
<!-- <sort_order>60</sort_order> -->
|
84 |
-
<!-- <show_in_default>1</show_in_default> -->
|
85 |
-
<!-- <show_in_website>1</show_in_website> -->
|
86 |
-
<!-- <show_in_store>1</show_in_store> -->
|
87 |
-
<!-- </restore> -->
|
88 |
-
</fields>
|
89 |
-
</general>
|
90 |
-
<!-- <api_url translate="label"> -->
|
91 |
-
<!-- <label>Api Url</label> -->
|
92 |
-
<!-- <frontend_type>text</frontend_type> -->
|
93 |
-
<!-- <sort_order>100</sort_order> -->
|
94 |
-
<!-- <show_in_default>1</show_in_default> -->
|
95 |
-
<!-- <show_in_website>1</show_in_website> -->
|
96 |
-
<!-- <show_in_store>1</show_in_store> -->
|
97 |
-
<!-- <fields> -->
|
98 |
-
<!-- <register translate="label comment" > -->
|
99 |
-
<!-- <label>Register</label> -->
|
100 |
-
<!-- <frontend_type>text</frontend_type> -->
|
101 |
-
<!-- <sort_order>10</sort_order> -->
|
102 |
-
<!-- <show_in_default>1</show_in_default> -->
|
103 |
-
<!-- <show_in_website>1</show_in_website> -->
|
104 |
-
<!-- <show_in_store>1</show_in_store> -->
|
105 |
-
<!-- </register> -->
|
106 |
-
<!-- <quote translate="label comment" > -->
|
107 |
-
<!-- <label>Quote</label> -->
|
108 |
-
<!-- <frontend_type>text</frontend_type> -->
|
109 |
-
<!-- <sort_order>20</sort_order> -->
|
110 |
-
<!-- <show_in_default>1</show_in_default> -->
|
111 |
-
<!-- <show_in_website>1</show_in_website> -->
|
112 |
-
<!-- <show_in_store>1</show_in_store> -->
|
113 |
-
<!-- </quote> -->
|
114 |
-
<!-- <countries translate="label comment" > -->
|
115 |
-
<!-- <label>Countries</label> -->
|
116 |
-
<!-- <frontend_type>text</frontend_type> -->
|
117 |
-
<!-- <sort_order>30</sort_order> -->
|
118 |
-
<!-- <show_in_default>1</show_in_default> -->
|
119 |
-
<!-- <show_in_website>1</show_in_website> -->
|
120 |
-
<!-- <show_in_store>1</show_in_store> -->
|
121 |
-
<!-- </countries> -->
|
122 |
-
<!-- <languages translate="label comment" > -->
|
123 |
-
<!-- <label>Languages</label> -->
|
124 |
-
<!-- <frontend_type>text</frontend_type> -->
|
125 |
-
<!-- <sort_order>40</sort_order> -->
|
126 |
-
<!-- <show_in_default>1</show_in_default> -->
|
127 |
-
<!-- <show_in_website>1</show_in_website> -->
|
128 |
-
<!-- <show_in_store>1</show_in_store> -->
|
129 |
-
<!-- </languages> -->
|
130 |
-
<!-- <translate translate="label comment" > -->
|
131 |
-
<!-- <label>Translate</label> -->
|
132 |
-
<!-- <frontend_type>text</frontend_type> -->
|
133 |
-
<!-- <sort_order>50</sort_order> -->
|
134 |
-
<!-- <show_in_default>1</show_in_default> -->
|
135 |
-
<!-- <show_in_website>1</show_in_website> -->
|
136 |
-
<!-- <show_in_store>1</show_in_store> -->
|
137 |
-
<!-- </translate> -->
|
138 |
-
<!-- <translate_sandbox translate="label comment" > -->
|
139 |
-
<!-- <label>Translate (Sandbox)</label> -->
|
140 |
-
<!-- <frontend_type>text</frontend_type> -->
|
141 |
-
<!-- <sort_order>50</sort_order> -->
|
142 |
-
<!-- <show_in_default>0</show_in_default> -->
|
143 |
-
<!-- <show_in_website>0</show_in_website> -->
|
144 |
-
<!-- <show_in_store>0</show_in_store> -->
|
145 |
-
<!-- </translate_sandbox> -->
|
146 |
-
<!-- <payment_page translate="label comment" > -->
|
147 |
-
<!-- <label>Payment Page</label> -->
|
148 |
-
<!-- <frontend_type>text</frontend_type> -->
|
149 |
-
<!-- <sort_order>70</sort_order> -->
|
150 |
-
<!-- <show_in_default>1</show_in_default> -->
|
151 |
-
<!-- <show_in_website>1</show_in_website> -->
|
152 |
-
<!-- <show_in_store>1</show_in_store> -->
|
153 |
-
<!-- </payment_page> -->
|
154 |
-
<!-- <payment translate="label comment" > -->
|
155 |
-
<!-- <label>Payment</label> -->
|
156 |
-
<!-- <frontend_type>text</frontend_type> -->
|
157 |
-
<!-- <sort_order>80</sort_order> -->
|
158 |
-
<!-- <show_in_default>1</show_in_default> -->
|
159 |
-
<!-- <show_in_website>1</show_in_website> -->
|
160 |
-
<!-- <show_in_store>1</show_in_store> -->
|
161 |
-
<!-- </payment> -->
|
162 |
-
<!-- </fields> -->
|
163 |
-
<!-- </api_url> -->
|
164 |
-
</groups>
|
165 |
-
</straker>
|
166 |
-
</sections>
|
167 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/straker/layout/straker.xml
CHANGED
@@ -9,8 +9,12 @@
|
|
9 |
<name>straker/translations.js</name>
|
10 |
</action>
|
11 |
</reference>
|
12 |
-
<reference name="
|
13 |
-
<block type="
|
|
|
|
|
|
|
|
|
14 |
</reference>
|
15 |
</default>
|
16 |
<adminhtml_straker_job_index>
|
9 |
<name>straker/translations.js</name>
|
10 |
</action>
|
11 |
</reference>
|
12 |
+
<reference name="footer">
|
13 |
+
<block type="page/footer" name="footer">
|
14 |
+
<action method="setTemplate">
|
15 |
+
<template>straker/footer_script.phtml</template>
|
16 |
+
</action>
|
17 |
+
</block>
|
18 |
</reference>
|
19 |
</default>
|
20 |
<adminhtml_straker_job_index>
|
app/design/adminhtml/default/straker/template/straker/feedback_script.phtml
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
<!--<a href="#" id="feedback-button" class="btn btn-primary btn-large"><h1>*********Report**********</h1></a>-->
|
2 |
-
|
3 |
-
<script type="text/javascript"
|
4 |
-
src="https://strakertranslations.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-646wy8/b/c/7ebd7d8b8f8cafb14c7b0966803e5701/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-UK&collectorId=1f7ba3bb"></script>
|
5 |
-
|
6 |
-
<script>
|
7 |
-
jQuery(document).ready(function () {
|
8 |
-
window.ATL_JQ_PAGE_PROPS = {
|
9 |
-
"triggerFunction": function (showCollectorDialog) {
|
10 |
-
var supportAnchor = jQuery('#nav span:contains("Straker Translations")').parent().parent().find('span:contains("Feedback")');
|
11 |
-
supportAnchor.click(function (e) {
|
12 |
-
e.preventDefault();
|
13 |
-
showCollectorDialog();
|
14 |
-
});
|
15 |
-
}
|
16 |
-
};
|
17 |
-
})
|
18 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/straker/template/straker/new/attribute/confirm.phtml
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
<form id="submit-new-job-form" action="<?php echo Mage::helper("adminhtml")->getUrl("adminhtml/straker_attribute/submitjob") ?>" method="post">
|
29 |
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" >
|
30 |
<input type="hidden" name="attribute" value="<?php echo implode(',', $this->getAttribute()) ?>" >
|
31 |
-
<input type="hidden" name="option" value="<?php
|
32 |
<input type="hidden" name="store" value="<?php echo $this->getStore() ?>" >
|
33 |
</form>
|
34 |
<div>
|
28 |
<form id="submit-new-job-form" action="<?php echo Mage::helper("adminhtml")->getUrl("adminhtml/straker_attribute/submitjob") ?>" method="post">
|
29 |
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" >
|
30 |
<input type="hidden" name="attribute" value="<?php echo implode(',', $this->getAttribute()) ?>" >
|
31 |
+
<input type="hidden" name="option" value="<?php echo empty($this->getOption()) ? '' : $this->getOption() ?>" >
|
32 |
<input type="hidden" name="store" value="<?php echo $this->getStore() ?>" >
|
33 |
</form>
|
34 |
<div>
|
package.xml
CHANGED
@@ -1,20 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>straker-translations-easy-translation-platform</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Multilingual eCommerce extensions from the award-winning global translation company.</summary>
|
10 |
<description>Total automation of the translation process, simple installation and setup, quality human translation at cost-effective rates, scalable to more than 80 languages and 1000s of projects and powerful dashboard reporting.</description>
|
11 |
-
<notes>
|
12 |
-
|
13 |
-
|
14 |
-
<
|
15 |
-
<date>2017-07-25</date>
|
16 |
-
<time>20:09:39</time>
|
17 |
-
<contents><target name="magecommunity"><dir name="StrakerTranslations"><dir name="EasyTranslationPlatform"><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Block"><file name="Grid.php" hash="d5025661046d92144808f58069cff28a"/></dir><dir name="Page"><file name="Grid.php" hash="13cdb5d3fdcfeb3c9a7c3efdd45cdd67"/></dir></dir><dir name="Job"><dir name="Attribute"><file name="Grid.php" hash="1773053de14cb493ba8fedfd60888b10"/></dir><file name="Attribute.php" hash="8bb105655c6b83e45954fe670c8c9f32"/><dir name="Category"><file name="Grid.php" hash="84489bc03446efb5f81cb95e1c114bf0"/></dir><file name="Category.php" hash="586cfe35e0066c2edfc460b6a6f1ac93"/><dir name="Cms"><dir name="Block"><file name="Grid.php" hash="a33e3d2b2314ac6d6de3927b8c28f86d"/></dir><file name="Block.php" hash="a431b8c8ef406409dbe86bd5997b98be"/><dir name="Page"><file name="Grid.php" hash="6fd2c4b8c3939fdca2c3808e93b9cbc4"/></dir><file name="Page.php" hash="92196a1f9dac1b24adb526856302626b"/></dir><file name="Grid.php" hash="254051a9faa41a1561c1618baf759057"/><dir name="Product"><file name="Grid.php" hash="f8259dd081d8806480c94c10612bd719"/></dir><file name="Product.php" hash="53bf6328c12efa36c4e33c255a2328d3"/></dir><file name="Job.php" hash="bf5ad4cd596a3a93a54447ee112c0a23"/><dir name="New"><dir name="Attribute"><dir name="Confirm"><file name="Grid.php" hash="875c81d547bf99a2f0e2c0075364cb2c"/></dir><file name="Confirm.php" hash="d7ed18d35d0df6b899b402beb0800caa"/><file name="Grid.php" hash="04149571c4d77106b1be887a67352410"/></dir><file name="Attribute.php" hash="31f61557f7c69d8b90521e60bbb79898"/><dir name="Category"><file name="Attribute.php" hash="b6698a36ee449853edff1815fca6a56f"/><dir name="Confirm"><file name="Grid.php" hash="1580b1fa19b1cb3d2ce25e4e0e175ffc"/></dir><file name="Confirm.php" hash="b710371dceb26866857a62f9d19425e7"/><file name="Tree.php" hash="f3300aaf82fffb0e38a5475beb0d8736"/></dir><dir name="Cms"><dir name="Block"><file name="Attribute.php" hash="698021304ad1346b6f8476fd629c8eed"/><dir name="Confirm"><file name="Grid.php" hash="bc6fa3b492e14861aa29ee48ef3d7364"/></dir><file name="Confirm.php" hash="d38a9be9238e8eff3c322529e066b2ae"/><file name="Grid.php" hash="7eaafb63c3627c43e454787c9c7731f0"/></dir><file name="Block.php" hash="771df45fe8fa9d24b7a920f485cc67a4"/><dir name="Page"><file name="Attribute.php" hash="3643f4821171d2efb08f478db03b2eaa"/><dir name="Confirm"><file name="Grid.php" hash="06d503f92a63cd59c6f41c518763549b"/></dir><file name="Confirm.php" hash="ca21f36fe293b10f5a7f0be7d4acd437"/><file name="Grid.php" hash="0128316eb474c09f8c033ab0697421b6"/></dir><file name="Page.php" hash="d4f32301e714f1e6692ace8ed40ec5c4"/></dir><dir name="Confirm"><file name="Grid.php" hash="5a22c0ba2ffc1f04684a50e3cebad740"/></dir><file name="Confirm.php" hash="a903a2f53c3b44fb8c72dc70716ff0d3"/><dir name="Products"><file name="Attribute.php" hash="f9b11618404c31e7ac91622a0188479d"/><dir name="Confirm"><file name="Grid.php" hash="a66dbc0234332558f86cb7e51c84f82f"/></dir><file name="Confirm.php" hash="d4dddb499ff29d646fcd48246666126a"/><file name="Grid.php" hash="b7e1861b52f0131f53e31038f399ccd4"/></dir><file name="Products.php" hash="cd0c2de765d91c4c7a82cc74bb1797c9"/><file name="Register.php" hash="7f43aee445980708a6cb8510eec21e78"/><file name="Selectstore.php" hash="42553d67a4e14ca8f754ea096ddf9cf6"/><file name="Setupstore.php" hash="bc1ca941654f47f763d0e7605fc7b050"/><file name="Type.php" hash="6786a8663d019a616dfcd229f609b0cf"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Backupbutton.php" hash="8bfae419ddceed0553db1f5dc5322356"/><file name="Button.php" hash="eb5d2544ba93cbcd09e534dc5b81bbc1"/><file name="Restorebutton.php" hash="e98058e6769f5308fa9f48fa19a22704"/><file name="Store.php" hash="5b98d4711b04acbb60d1b7c17405a4a6"/></dir></dir></dir><dir name="Template"><dir name="Grid"><dir name="Renderer"><file name="Action.php" hash="bd25cb1504b9e7334ce1fe604f6f68c3"/><file name="AttributeOriginalLabel.php" hash="895fdf18d8993d3268d95541cca1a7a3"/><file name="AttributeOriginalOption.php" hash="3cbe41544c9a32a5742950392973a533"/><file name="AttributeTranslateLabel.php" hash="eef210480eea84f5fd69ded360697acf"/><file name="AttributeTranslateOption.php" hash="2393ee81a57d67de08d38c5e81ea9403"/><file name="Backend.php" hash="b88464844be7fedff637c79c567e4985"/><file name="CmsOriginTitle.php" hash="e66578d499b77b65226ec3be9e727c56"/><file name="CmsVersion.php" hash="e9f87509b3de3880a9146de628a4a434"/><file name="ConfirmTranslateLabel.php" hash="09fdb0146ab6f9fad36bff50042d2587"/><file name="ConfirmTranslateOptions.php" hash="60bf976c33b78ebe7623df92e273815e"/><file name="Dispute.php" hash="3bae4a4bbf43890a53a8c2698315430e"/><file name="Frontend.php" hash="d599e9a89015444b4b8a3554464267e3"/><file name="Language.php" hash="ee2762259a51b54373f1fbaff4d0bade"/><file name="PageGridAction.php" hash="218b42e250005a7128a550385f2409eb"/><file name="Path.php" hash="5d9e268bde77a5e1d6d435a48d9f60b7"/><file name="Quote.php" hash="728f3e53af9619760a3921993a823ca6"/><file name="Refresh.php" hash="28db5556c4dad64f4d3aa808758673dd"/><file name="Selected.php" hash="2e73f0ffd01804833c6f878241c4a398"/><file name="Status.php" hash="6d45439ff9d882ec3299e0911e7460fc"/><file name="StrakerTranslated.php" hash="8f6d3a963627f02fcd092c4103843c61"/><file name="TextArea.php" hash="62889015953a49d24540f6fec7aef950"/><file name="TranslateOptions.php" hash="8b26c5f45b8fc1af1646dc645c4e35de"/><file name="Translated.php" hash="cda1f5c402ed086974b76ee427c2a23a"/><file name="Update.php" hash="43a114983b2c00af3432e664512b1704"/><file name="Version.php" hash="908c1697bd48848a2ebf00cd38aa8dc1"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="38219988bd02da246fd32535a1bd9525"/></dir><dir name="Model"><file name="Actionlog.php" hash="bd8a61e14712e32937e0622376b07ae7"/><file name="Api.php" hash="e3345a3338cfa7f8b45aff2c26680711"/><dir name="Attribute"><file name="Translate.php" hash="be5ff8a58d2d180b025d737e5e1b5671"/></dir><dir name="Category"><file name="Attributes.php" hash="31639770ebe8f2aa4b320d686786f716"/><file name="Translate.php" hash="7e9bdbe25f61653bf7e54b3054046684"/></dir><dir name="Cms"><dir name="Block"><file name="Attributes.php" hash="1df167ceeea902db512b297d601336b8"/><file name="Translate.php" hash="2aa14af64c00d92ed8edd160248e2615"/></dir><dir name="Page"><file name="Attributes.php" hash="f9aa8f988a06b442d44c5e1e3c044b0c"/><file name="Translate.php" hash="a8d7b60c9274bbfe137dfd59c0f390e0"/></dir></dir><dir name="Job"><file name="Attribute.php" hash="6bc9221934346093ec6054704625808e"/><file name="Category.php" hash="37079e7131a4d10a9577afb499c6d7b6"/><dir name="Cms"><file name="Block.php" hash="2263b8165de77cda0c368a6b127e5edb"/><file name="Page.php" hash="54cf2ffb4943b3bcffe28a5fc60a0d00"/></dir><file name="Product.php" hash="9f02ce34f909df6dd26c3414356ad565"/><file name="Status.php" hash="e6546b9af4d665a15b1419d380692756"/><file name="Type.php" hash="ded64454eb196668ae1deb4ce5e92b72"/></dir><file name="Job.php" hash="487f4383b61a2188b9fe91389efc39a5"/><dir name="Product"><file name="Attributes.php" hash="f8539bb8a73a59017b811bea7d99835b"/><file name="Translate.php" hash="0578fc66f350be03cd140504055b44cc"/></dir><dir name="Resource"><dir name="Actionlog"><file name="Collection.php" hash="a60fb59aa09d55b5e5d4f41d58e20e6f"/></dir><file name="Actionlog.php" hash="5742408ecac5dce23b3492d118d6ca41"/><dir name="Attribute"><dir name="Translate"><file name="Collection.php" hash="dc15902d152cdc907123bbd847bc124a"/></dir><file name="Translate.php" hash="f619af9fb3bb71e346d89a314c1d0a2c"/></dir><dir name="Category"><dir name="Attributes"><file name="Collection.php" hash="d0d1bdb74c8b6d3ebcd00e986bbda5ac"/></dir><file name="Attributes.php" hash="438aefd7fd4768a18dea3835e592d020"/><dir name="Translate"><file name="Collection.php" hash="6f9b263579ba9c988dbf476a9a8d5254"/></dir><file name="Translate.php" hash="3493c3a5f4dff5278e61cf758b58f09e"/></dir><dir name="Cms"><dir name="Block"><dir name="Attributes"><file name="Collection.php" hash="877832a90560893e916e43b967e6dc34"/></dir><file name="Attributes.php" hash="09ff0c55a851e01cb84ea36d04f25991"/><dir name="Translate"><file name="Collection.php" hash="de7c22817b8216ba532469e22530fc9e"/></dir><file name="Translate.php" hash="a42c5543d64b231251c50623c06267e3"/></dir><dir name="Page"><dir name="Attributes"><file name="Collection.php" hash="e1316d1cd3595bbfb7733b2ac237796e"/></dir><file name="Attributes.php" hash="17aad05de17f6e1457ee41022acdce17"/><dir name="Translate"><file name="Collection.php" hash="6d3a9c65e8cab69179ac62d3cf4a86eb"/></dir><file name="Translate.php" hash="875bb57fe743508ff7fb46d7cb5031f9"/></dir></dir><dir name="Job"><dir name="Attribute"><file name="Collection.php" hash="87d28e2625afaaea8a0c28380b6868dd"/></dir><file name="Attribute.php" hash="6c096169a8867d54b37997312753a94e"/><dir name="Category"><file name="Collection.php" hash="6e29696c703503c821fb4fbeb04f7169"/></dir><file name="Category.php" hash="5cb332770a4600be8d82d5440a42a2a6"/><dir name="Cms"><dir name="Block"><file name="Collection.php" hash="33464fcd5e5fed285a9da08f3a2c9c72"/></dir><file name="Block.php" hash="9de78cd2dad032b94b7a0fe32ca6b785"/><dir name="Page"><file name="Collection.php" hash="19bae4185f684854d86c0e429603a53d"/></dir><file name="Page.php" hash="0d449938e643605e500efc3f4c4f13ea"/></dir><file name="Collection.php" hash="26b821d388a969c048418254c702767d"/><dir name="Product"><file name="Collection.php" hash="0b333a2caf8977dbc9a8e71e58c54de6"/></dir><file name="Product.php" hash="8b0dfa9ce28bc4292021055f9253ea5d"/><dir name="Status"><file name="Collection.php" hash="84dd6c9d32fda84ea11102692b5359a9"/></dir><file name="Status.php" hash="5e29fbf619c9b1278273266fb2ce2afa"/><dir name="Type"><file name="Collection.php" hash="625b61447aee152376c19f36a347d5d8"/></dir><file name="Type.php" hash="36b8ec250e3bc2377c1fb755459fad95"/></dir><file name="Job.php" hash="22b19e144ede17aa8c57f817f3c84046"/><dir name="Product"><dir name="Attributes"><file name="Collection.php" hash="3f479577ce23ba9f264125439c1d1099"/></dir><file name="Attributes.php" hash="93c962dc76384771d9139574796c16b5"/><dir name="Translate"><file name="Collection.php" hash="4dc7e3a0a44edd6acea4b8cf45b40d05"/></dir><file name="Translate.php" hash="f88f7ea6f6e1dfdc55ef648ddea2ca38"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="SiteMode.php" hash="89a8260d88855f2caea230e3466c8f9a"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Straker"><file name="AttributeController.php" hash="4f1404392786e1f9db44ed03f817ecb7"/><file name="CategoryController.php" hash="d67e403ffe01b6a4fa6298dffbc2ca2e"/><dir name="Cms"><file name="BlockController.php" hash="4320bf379b10154f9cb59844095c846b"/><file name="PageController.php" hash="e4527af7fb8845a1129454f05517f6c9"/></dir><file name="JobController.php" hash="cee6118aadbb81f38806d2668982ee85"/><file name="NewController.php" hash="807b3257688072559c2c3638b1537fe7"/><file name="ProductController.php" hash="76404f4a921caf945f79bc49eee21faf"/></dir></dir><file name="CallbackController.php" hash="4673cd016712d8b7672a628c3e0a511d"/></dir><dir name="data"><dir name="strakertranslations_easytranslationplatform_setup"><file name="data-install-1.2.0.php" hash="8f64e0b9eea4fe7b0d880cd354f59412"/><file name="data-upgrade-1.2.0-1.3.0.php" hash="5e01aabbd2c80e6c6d1c3e12126a4e6e"/><file name="data-upgrade-1.3.6-1.3.7.php" hash="5643184a268212dfdd31dfd80bc4ed1f"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3f6c6b9408e6a5add0642f3910d5b926"/><file name="config.xml" hash="0bcbce61de532fe6ce97d51e05e5e214"/><file name="config_live.xml" hash="3dedadc7fa410cc3850e7fc104b4e634"/><file name="system.xml" hash="a6a5e72fc78bcaa6d330379b829b425e"/><file name="system_live.xml" hash="577f61032f35ff143513513ae5bdac95"/></dir><dir name="sql"><dir name="strakertranslations_easytranslationplatform_setup"><file name="install-1.2.0.php" hash="a93fd3369feb8cf12e1c69a8ae3bbe8b"/><file name="upgrade-1.2.0-1.3.0.php" hash="55e4e676d70e9ca6371b7b7ccd7a48e4"/><file name="upgrade-1.3.0-1.3.1.php" hash="8b426d63399accbf61889a0e2547cb40"/><file name="upgrade-1.3.3-1.3.4.php" hash="4fb79a636db845f176ce27e7eaf3e8e5"/><file name="upgrade-1.3.6-1.3.7.php" hash="5e8125590b0e9ed4e7b7183ee5b5726c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="straker"><dir name="layout"><file name="straker.xml" hash="339b6159b0f49542618159bbe6068b53"/></dir><dir name="template"><dir name="cms"><dir name="form"><file name="container.phtml" hash="9069e9f2e13f3f0c1f175920c295ee65"/></dir></dir><dir name="straker"><file name="feedback_script.phtml" hash="0a412b4f664d33199191ca550797d0ec"/><dir name="job"><dir name="attribute"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="attribute.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/><dir name="category"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="category.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/><dir name="cms"><dir name="block"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="block.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/><dir name="page"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="page.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/></dir><dir name="product"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="product.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/></dir><file name="job.phtml" hash="63c7a5b66b969635ee9996638878d63c"/><dir name="new"><dir name="attribute"><file name="confirm.phtml" hash="8709f74383de69fd1139700a61c49476"/><file name="massaction.phtml" hash="67c280b642ca8ddd44f3af9dc036c277"/></dir><file name="attribute.phtml" hash="740fb10b16ff1128b23027c0dc53808b"/><file name="attributes.phtml" hash="a2b5136923f2afad369185077a3c4c53"/><dir name="category"><file name="attributes.phtml" hash="bdd965a35471405448809b2e6b7687cd"/><dir name="confirm"><file name="grid.phtml" hash="8336aad4f7275992704b1b7ddaccac3e"/></dir><file name="confirm.phtml" hash="a5151a4f8c0852e7441421f2dab78ecb"/><file name="tree.phtml" hash="70f1392f20f926176fc01f0bbf9ee554"/></dir><dir name="cms"><dir name="block"><file name="attributes.phtml" hash="c133b4d5ebbdea37016f985b6940f6ea"/><file name="confirm.phtml" hash="68a155e50459bf430487f3f2aca7c878"/><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="block.phtml" hash="55f72be16f231bf858453b4606bdcece"/><dir name="page"><file name="attributes.phtml" hash="0e1044e341d24894212e6743c71c089e"/><file name="confirm.phtml" hash="74e918432b4ff3d45f18c3a95718dadb"/><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="page.phtml" hash="a8163d1d5ebe203cad1c5514e9191077"/></dir><file name="confirm.phtml" hash="72552d8f56335eb644a4c0ffe314f12b"/><dir name="products"><file name="attributes.phtml" hash="4f385ebe47ebcb6dcccbaac9c76b98c6"/><file name="confirm.phtml" hash="e5abac8b93afc9ea35e9903f2e65081b"/><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="products.phtml" hash="96faf03ba542534b343748376c5c9b05"/><file name="register.phtml" hash="13da4e89dafcdf0508343905121a6ed3"/><file name="selectstore.phtml" hash="59b46141938afec500ce3acf36da5427"/><file name="setupstore.phtml" hash="c3dab5a53f6007ac9608721bd75761bf"/><file name="type.phtml" hash="4a82a15d0ec58c5531ea7feaf4f19ab0"/></dir><dir name="system"><dir name="config"><file name="button.phtml" hash="9725dd1eea9e0a5c6ff9a34a31d5e433"/><file name="store.phtml" hash="accefd80ff19bf7c917c923b2aed961c"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="straker"><dir name="css"><file name="straker.css" hash="a97c854cb62da659fad0c0a024e4d135"/><file name="straker.less" hash="31c0eef6673e5e454f2d9c086f63526e"/></dir><dir name="images"><dir name="default"><file name="bottom_left.gif" hash="fb99ffa815a8648f95f42698fe5dfaa1"/><file name="bottom_mid.gif" hash="49b9ca7025562ea7f070a9111282364b"/><file name="bottom_right.gif" hash="e46768f632765cd86c5fe5d0166dcf2c"/><file name="bottom_right_resize.gif" hash="1b35a4ec3b734dfe37e31ba87bcc7d99"/><file name="center_left.gif" hash="bd567580b4ee16a7a2734057cfbbe219"/><file name="center_right.gif" hash="eef184d5d89d1710313581a2ccf408e8"/><file name="clear.gif" hash="7af1206eeb0e7834a75e69d70676060d"/><file name="close.gif" hash="8a08f243c37a8e25a88d4ac135b2f07d"/><file name="inspect.gif" hash="aa2a0961067aad5c54b8634919af863b"/><file name="maximize.gif" hash="e73cd71c4979ebeadeb9e27d40a9e8fb"/><file name="minimize.gif" hash="2d2f4b1bd0506f342425f80ab76c49a3"/><file name="overlay.png" hash="536d40e87cda0c7ae7b11f1721aa52d0"/><file name="resize.gif" hash="320f534b5d444b39701e0b679529e779"/><file name="sizer.gif" hash="1b35a4ec3b734dfe37e31ba87bcc7d99"/><file name="top_left.gif" hash="9c5e5920bfc189a45cc618099af93aa8"/><file name="top_mid.gif" hash="a12ff2b944025ad2d127d033dae5e9e1"/><file name="top_right.gif" hash="0cf1ec5b93f8ac8fcce0e2f72cf7f45e"/></dir><file name="magento-banner.jpg" hash="b3105fd2dd00004ab903db4fbb81b61e"/><file name="refresh_32.png" hash="96e793bcbcc2dc48768b8e124beea378"/><file name="straker-translations-logo.png" hash="7cb5e29f562420142f918147d95ed232"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="StrakerTranslations_EasyTranslationPlatform.xml" hash="eb61fdaac7559a75e39bc01206165d0c"/></dir></target><target name="mage"><dir name="js"><dir name="straker"><file name="translations.js" hash="4e553d345d444828b54cb3a2098512e7"/></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
-
<dependencies><required><php><min>5.
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>straker-translations-easy-translation-platform</name>
|
4 |
+
<version>1.4.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Multilingual eCommerce extensions from the award-winning global translation company.</summary>
|
10 |
<description>Total automation of the translation process, simple installation and setup, quality human translation at cost-effective rates, scalable to more than 80 languages and 1000s of projects and powerful dashboard reporting.</description>
|
11 |
+
<notes>Bug fix release</notes>
|
12 |
+
<authors><author><name>Chris</name><user>Straker_support</user><email>extensions@strakertranslations.com</email></author></authors>
|
13 |
+
<date>2017-09-05</date>
|
14 |
+
<time>22:03:50</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="StrakerTranslations"><dir name="EasyTranslationPlatform"><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Block"><file name="Grid.php" hash="f3f619834386cc32c7b0d938d85b1b94"/></dir><dir name="Page"><file name="Grid.php" hash="b24310c42254a22bc94fa926f93735fd"/></dir></dir><dir name="Job"><dir name="Attribute"><file name="Grid.php" hash="517552303a58fe6f3073c39384194639"/></dir><file name="Attribute.php" hash="c355f64a030766afcf646b411035f85f"/><dir name="Category"><file name="Grid.php" hash="c4e063414d9311a967a1805598a2997a"/></dir><file name="Category.php" hash="f2c9c52e51b2112f32065beee4c3cafe"/><dir name="Cms"><dir name="Block"><file name="Grid.php" hash="158162d13df45c9aa8b1b71cc6c0e81c"/></dir><file name="Block.php" hash="e5ab4001b92c2bccc442ae4cfb59f047"/><dir name="Page"><file name="Grid.php" hash="11a6895a8dd093f4adde187c62c88240"/></dir><file name="Page.php" hash="b7c14cf9b9892977d4c945d7d4b5e4bd"/></dir><file name="Grid.php" hash="254051a9faa41a1561c1618baf759057"/><dir name="Product"><file name="Grid.php" hash="48e2a791333e0bfd317863ed5ebeb989"/></dir><file name="Product.php" hash="85f95b9ffd2a3f80fb62ad37b3cf11b5"/></dir><file name="Job.php" hash="bf5ad4cd596a3a93a54447ee112c0a23"/><dir name="New"><dir name="Attribute"><dir name="Confirm"><file name="Grid.php" hash="875c81d547bf99a2f0e2c0075364cb2c"/></dir><file name="Confirm.php" hash="d7ed18d35d0df6b899b402beb0800caa"/><file name="Grid.php" hash="5a209fbbee26f223af8f4c8284e0c40b"/></dir><file name="Attribute.php" hash="31f61557f7c69d8b90521e60bbb79898"/><dir name="Category"><file name="Attribute.php" hash="b6698a36ee449853edff1815fca6a56f"/><dir name="Confirm"><file name="Grid.php" hash="1580b1fa19b1cb3d2ce25e4e0e175ffc"/></dir><file name="Confirm.php" hash="b710371dceb26866857a62f9d19425e7"/><file name="Tree.php" hash="f3300aaf82fffb0e38a5475beb0d8736"/></dir><dir name="Cms"><dir name="Block"><file name="Attribute.php" hash="698021304ad1346b6f8476fd629c8eed"/><dir name="Confirm"><file name="Grid.php" hash="bc6fa3b492e14861aa29ee48ef3d7364"/></dir><file name="Confirm.php" hash="d38a9be9238e8eff3c322529e066b2ae"/><file name="Grid.php" hash="34d3cfe1556b50846b52710fe84bdaaf"/></dir><file name="Block.php" hash="771df45fe8fa9d24b7a920f485cc67a4"/><dir name="Page"><file name="Attribute.php" hash="3643f4821171d2efb08f478db03b2eaa"/><dir name="Confirm"><file name="Grid.php" hash="06d503f92a63cd59c6f41c518763549b"/></dir><file name="Confirm.php" hash="ca21f36fe293b10f5a7f0be7d4acd437"/><file name="Grid.php" hash="5d276f9642a5c6a0d66073b0e0313fc2"/></dir><file name="Page.php" hash="d4f32301e714f1e6692ace8ed40ec5c4"/></dir><dir name="Confirm"><file name="Grid.php" hash="4c1abd9162879e6cf58fa6616152393d"/></dir><file name="Confirm.php" hash="a903a2f53c3b44fb8c72dc70716ff0d3"/><dir name="Products"><file name="Attribute.php" hash="f9b11618404c31e7ac91622a0188479d"/><dir name="Confirm"><file name="Grid.php" hash="a66dbc0234332558f86cb7e51c84f82f"/></dir><file name="Confirm.php" hash="d4dddb499ff29d646fcd48246666126a"/><file name="Grid.php" hash="adf2eb179349e5933f3780c080306911"/></dir><file name="Products.php" hash="cd0c2de765d91c4c7a82cc74bb1797c9"/><file name="Register.php" hash="7f43aee445980708a6cb8510eec21e78"/><file name="Selectstore.php" hash="42553d67a4e14ca8f754ea096ddf9cf6"/><file name="Setupstore.php" hash="bc1ca941654f47f763d0e7605fc7b050"/><file name="Type.php" hash="6786a8663d019a616dfcd229f609b0cf"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Backupbutton.php" hash="8bfae419ddceed0553db1f5dc5322356"/><file name="Button.php" hash="eb5d2544ba93cbcd09e534dc5b81bbc1"/><file name="Restorebutton.php" hash="e98058e6769f5308fa9f48fa19a22704"/><file name="Store.php" hash="5b98d4711b04acbb60d1b7c17405a4a6"/></dir></dir></dir><dir name="Template"><dir name="Grid"><dir name="Renderer"><file name="Action.php" hash="bd25cb1504b9e7334ce1fe604f6f68c3"/><file name="AttributeOriginalLabel.php" hash="895fdf18d8993d3268d95541cca1a7a3"/><file name="AttributeOriginalOption.php" hash="3cbe41544c9a32a5742950392973a533"/><file name="AttributeTranslateLabel.php" hash="eef210480eea84f5fd69ded360697acf"/><file name="AttributeTranslateOption.php" hash="2393ee81a57d67de08d38c5e81ea9403"/><file name="Backend.php" hash="6ca085c9a5c50e635f8f4aa41d3314e1"/><file name="CmsOriginTitle.php" hash="e66578d499b77b65226ec3be9e727c56"/><file name="CmsVersion.php" hash="aa045e2f5f490e4f82d56b1da14ad8e1"/><file name="ConfirmTranslateLabel.php" hash="09fdb0146ab6f9fad36bff50042d2587"/><file name="ConfirmTranslateOptions.php" hash="90ba018bb7eef8d6ac3006b058d66197"/><file name="Dispute.php" hash="3bae4a4bbf43890a53a8c2698315430e"/><file name="Frontend.php" hash="b74e5b2e3472128ab6e3edb7375dce4a"/><file name="Language.php" hash="ee2762259a51b54373f1fbaff4d0bade"/><file name="PageGridAction.php" hash="218b42e250005a7128a550385f2409eb"/><file name="Path.php" hash="5d9e268bde77a5e1d6d435a48d9f60b7"/><file name="Quote.php" hash="728f3e53af9619760a3921993a823ca6"/><file name="Refresh.php" hash="28db5556c4dad64f4d3aa808758673dd"/><file name="Selected.php" hash="88f58ed6edb419d1701a6f6a4955d881"/><file name="Status.php" hash="6d45439ff9d882ec3299e0911e7460fc"/><file name="StrakerTranslated.php" hash="8f6d3a963627f02fcd092c4103843c61"/><file name="TranslateOptions.php" hash="00f1c42c2205f76db4322fa0dbd686f6"/><file name="Translated.php" hash="cda1f5c402ed086974b76ee427c2a23a"/><file name="Update.php" hash="43a114983b2c00af3432e664512b1704"/><file name="Version.php" hash="908c1697bd48848a2ebf00cd38aa8dc1"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="38219988bd02da246fd32535a1bd9525"/></dir><dir name="Model"><file name="Actionlog.php" hash="bd8a61e14712e32937e0622376b07ae7"/><file name="Api.php" hash="e3345a3338cfa7f8b45aff2c26680711"/><dir name="Attribute"><file name="Translate.php" hash="f4b60a7a30ca4dbbce7fb46abdf415e7"/></dir><dir name="Category"><file name="Attributes.php" hash="31639770ebe8f2aa4b320d686786f716"/><file name="Translate.php" hash="63888c2d229d1cc860b2d3555470f597"/></dir><dir name="Cms"><dir name="Block"><file name="Attributes.php" hash="1df167ceeea902db512b297d601336b8"/><file name="Translate.php" hash="239afe3bb57efe43687f7fd4abaabe11"/></dir><dir name="Page"><file name="Attributes.php" hash="f9aa8f988a06b442d44c5e1e3c044b0c"/><file name="Translate.php" hash="bea3a9275187cab1460e106cefa2c10e"/></dir></dir><dir name="Job"><file name="Attribute.php" hash="6bc9221934346093ec6054704625808e"/><file name="Category.php" hash="37079e7131a4d10a9577afb499c6d7b6"/><dir name="Cms"><file name="Block.php" hash="2263b8165de77cda0c368a6b127e5edb"/><file name="Page.php" hash="54cf2ffb4943b3bcffe28a5fc60a0d00"/></dir><file name="Product.php" hash="9f02ce34f909df6dd26c3414356ad565"/><file name="Status.php" hash="e6546b9af4d665a15b1419d380692756"/><file name="Type.php" hash="ded64454eb196668ae1deb4ce5e92b72"/></dir><file name="Job.php" hash="f12316220e96409b7fede2998e6d4943"/><dir name="Product"><file name="Attributes.php" hash="f8539bb8a73a59017b811bea7d99835b"/><file name="Translate.php" hash="ebe6df5219d4ca3ee71290bf3e1de0da"/></dir><dir name="Resource"><dir name="Actionlog"><file name="Collection.php" hash="a60fb59aa09d55b5e5d4f41d58e20e6f"/></dir><file name="Actionlog.php" hash="5742408ecac5dce23b3492d118d6ca41"/><dir name="Attribute"><dir name="Translate"><file name="Collection.php" hash="dc15902d152cdc907123bbd847bc124a"/></dir><file name="Translate.php" hash="f619af9fb3bb71e346d89a314c1d0a2c"/></dir><dir name="Category"><dir name="Attributes"><file name="Collection.php" hash="d0d1bdb74c8b6d3ebcd00e986bbda5ac"/></dir><file name="Attributes.php" hash="438aefd7fd4768a18dea3835e592d020"/><dir name="Translate"><file name="Collection.php" hash="6f9b263579ba9c988dbf476a9a8d5254"/></dir><file name="Translate.php" hash="3493c3a5f4dff5278e61cf758b58f09e"/></dir><dir name="Cms"><dir name="Block"><dir name="Attributes"><file name="Collection.php" hash="877832a90560893e916e43b967e6dc34"/></dir><file name="Attributes.php" hash="09ff0c55a851e01cb84ea36d04f25991"/><dir name="Translate"><file name="Collection.php" hash="de7c22817b8216ba532469e22530fc9e"/></dir><file name="Translate.php" hash="a42c5543d64b231251c50623c06267e3"/></dir><dir name="Page"><dir name="Attributes"><file name="Collection.php" hash="e1316d1cd3595bbfb7733b2ac237796e"/></dir><file name="Attributes.php" hash="17aad05de17f6e1457ee41022acdce17"/><dir name="Translate"><file name="Collection.php" hash="6d3a9c65e8cab69179ac62d3cf4a86eb"/></dir><file name="Translate.php" hash="875bb57fe743508ff7fb46d7cb5031f9"/></dir></dir><dir name="Job"><dir name="Attribute"><file name="Collection.php" hash="e336ec26c414bdb050ae87d70487349a"/></dir><file name="Attribute.php" hash="6c096169a8867d54b37997312753a94e"/><dir name="Category"><file name="Collection.php" hash="6e29696c703503c821fb4fbeb04f7169"/></dir><file name="Category.php" hash="5cb332770a4600be8d82d5440a42a2a6"/><dir name="Cms"><dir name="Block"><file name="Collection.php" hash="6524c7d53db9e32d2802e571cc54a8ca"/></dir><file name="Block.php" hash="9de78cd2dad032b94b7a0fe32ca6b785"/><dir name="Page"><file name="Collection.php" hash="b36385630e4cd6fd25a233305bd8d359"/></dir><file name="Page.php" hash="0d449938e643605e500efc3f4c4f13ea"/></dir><file name="Collection.php" hash="26b821d388a969c048418254c702767d"/><dir name="Product"><file name="Collection.php" hash="0b333a2caf8977dbc9a8e71e58c54de6"/></dir><file name="Product.php" hash="8b0dfa9ce28bc4292021055f9253ea5d"/><dir name="Status"><file name="Collection.php" hash="84dd6c9d32fda84ea11102692b5359a9"/></dir><file name="Status.php" hash="5e29fbf619c9b1278273266fb2ce2afa"/><dir name="Type"><file name="Collection.php" hash="625b61447aee152376c19f36a347d5d8"/></dir><file name="Type.php" hash="36b8ec250e3bc2377c1fb755459fad95"/></dir><file name="Job.php" hash="22b19e144ede17aa8c57f817f3c84046"/><dir name="Product"><dir name="Attributes"><file name="Collection.php" hash="3f479577ce23ba9f264125439c1d1099"/></dir><file name="Attributes.php" hash="93c962dc76384771d9139574796c16b5"/><dir name="Translate"><file name="Collection.php" hash="4dc7e3a0a44edd6acea4b8cf45b40d05"/></dir><file name="Translate.php" hash="f88f7ea6f6e1dfdc55ef648ddea2ca38"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="SiteMode.php" hash="89a8260d88855f2caea230e3466c8f9a"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Straker"><file name="AttributeController.php" hash="fee5d8f280329f3161be823590506ad0"/><file name="CategoryController.php" hash="c59de73d9427cf2b6297cce5c15766b7"/><dir name="Cms"><file name="BlockController.php" hash="c2e4c05b5f3a3d71126cc98039cb95ec"/><file name="PageController.php" hash="444fbaf138b40520a4d548073e35abdd"/></dir><file name="JobController.php" hash="ba0d27641ef3f0de524abd89206149df"/><file name="NewController.php" hash="807b3257688072559c2c3638b1537fe7"/><file name="ProductController.php" hash="0fd964fa3fd410e65891c2ffd2364c15"/></dir></dir><file name="CallbackController.php" hash="c9abd6304f6f071940735a47ab658633"/></dir><dir name="data"><dir name="strakertranslations_easytranslationplatform_setup"><file name="data-install-1.2.0.php" hash="8f64e0b9eea4fe7b0d880cd354f59412"/><file name="data-upgrade-1.2.0-1.3.0.php" hash="5e01aabbd2c80e6c6d1c3e12126a4e6e"/><file name="data-upgrade-1.3.6-1.3.7.php" hash="5643184a268212dfdd31dfd80bc4ed1f"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3f6c6b9408e6a5add0642f3910d5b926"/><file name="config.xml" hash="421cebaf23cd73a34860dc9a741314b6"/><file name="system.xml" hash="577f61032f35ff143513513ae5bdac95"/></dir><dir name="sql"><dir name="strakertranslations_easytranslationplatform_setup"><file name="install-1.2.0.php" hash="a93fd3369feb8cf12e1c69a8ae3bbe8b"/><file name="upgrade-1.2.0-1.3.0.php" hash="55e4e676d70e9ca6371b7b7ccd7a48e4"/><file name="upgrade-1.3.0-1.3.1.php" hash="8b426d63399accbf61889a0e2547cb40"/><file name="upgrade-1.3.3-1.3.4.php" hash="4fb79a636db845f176ce27e7eaf3e8e5"/><file name="upgrade-1.3.6-1.3.7.php" hash="5e8125590b0e9ed4e7b7183ee5b5726c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="straker"><dir name="layout"><file name="straker.xml" hash="b95ab431bacd04d7abf1c691672819c9"/></dir><dir name="template"><dir name="cms"><dir name="form"><file name="container.phtml" hash="9069e9f2e13f3f0c1f175920c295ee65"/></dir></dir><dir name="straker"><dir name="job"><dir name="attribute"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="attribute.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/><dir name="category"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="category.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/><dir name="cms"><dir name="block"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="block.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/><dir name="page"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="page.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/></dir><dir name="product"><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="product.phtml" hash="e908bcbf0ad1435a35d6009f599c4f77"/></dir><file name="job.phtml" hash="63c7a5b66b969635ee9996638878d63c"/><dir name="new"><dir name="attribute"><file name="confirm.phtml" hash="4d670363c686f190f31239881479a5d3"/><file name="massaction.phtml" hash="67c280b642ca8ddd44f3af9dc036c277"/></dir><file name="attribute.phtml" hash="740fb10b16ff1128b23027c0dc53808b"/><file name="attributes.phtml" hash="a2b5136923f2afad369185077a3c4c53"/><dir name="category"><file name="attributes.phtml" hash="bdd965a35471405448809b2e6b7687cd"/><dir name="confirm"><file name="grid.phtml" hash="8336aad4f7275992704b1b7ddaccac3e"/></dir><file name="confirm.phtml" hash="a5151a4f8c0852e7441421f2dab78ecb"/><file name="tree.phtml" hash="70f1392f20f926176fc01f0bbf9ee554"/></dir><dir name="cms"><dir name="block"><file name="attributes.phtml" hash="c133b4d5ebbdea37016f985b6940f6ea"/><file name="confirm.phtml" hash="68a155e50459bf430487f3f2aca7c878"/><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="block.phtml" hash="55f72be16f231bf858453b4606bdcece"/><dir name="page"><file name="attributes.phtml" hash="0e1044e341d24894212e6743c71c089e"/><file name="confirm.phtml" hash="74e918432b4ff3d45f18c3a95718dadb"/><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="page.phtml" hash="a8163d1d5ebe203cad1c5514e9191077"/></dir><file name="confirm.phtml" hash="72552d8f56335eb644a4c0ffe314f12b"/><dir name="products"><file name="attributes.phtml" hash="4f385ebe47ebcb6dcccbaac9c76b98c6"/><file name="confirm.phtml" hash="e5abac8b93afc9ea35e9903f2e65081b"/><file name="massaction.phtml" hash="1c3b4ce443f6e4086bcc362d43f75354"/></dir><file name="products.phtml" hash="96faf03ba542534b343748376c5c9b05"/><file name="register.phtml" hash="13da4e89dafcdf0508343905121a6ed3"/><file name="selectstore.phtml" hash="59b46141938afec500ce3acf36da5427"/><file name="setupstore.phtml" hash="c3dab5a53f6007ac9608721bd75761bf"/><file name="type.phtml" hash="4a82a15d0ec58c5531ea7feaf4f19ab0"/></dir><dir name="system"><dir name="config"><file name="button.phtml" hash="9725dd1eea9e0a5c6ff9a34a31d5e433"/><file name="store.phtml" hash="accefd80ff19bf7c917c923b2aed961c"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="straker"><dir name="css"><file name="straker.css" hash="c7688b8e0ba910472b9a8dda58948003"/><file name="straker.less" hash="31c0eef6673e5e454f2d9c086f63526e"/></dir><dir name="images"><dir name="default"><file name="bottom_left.gif" hash="fb99ffa815a8648f95f42698fe5dfaa1"/><file name="bottom_mid.gif" hash="49b9ca7025562ea7f070a9111282364b"/><file name="bottom_right.gif" hash="e46768f632765cd86c5fe5d0166dcf2c"/><file name="bottom_right_resize.gif" hash="1b35a4ec3b734dfe37e31ba87bcc7d99"/><file name="center_left.gif" hash="bd567580b4ee16a7a2734057cfbbe219"/><file name="center_right.gif" hash="eef184d5d89d1710313581a2ccf408e8"/><file name="clear.gif" hash="7af1206eeb0e7834a75e69d70676060d"/><file name="close.gif" hash="8a08f243c37a8e25a88d4ac135b2f07d"/><file name="inspect.gif" hash="aa2a0961067aad5c54b8634919af863b"/><file name="maximize.gif" hash="e73cd71c4979ebeadeb9e27d40a9e8fb"/><file name="minimize.gif" hash="2d2f4b1bd0506f342425f80ab76c49a3"/><file name="overlay.png" hash="536d40e87cda0c7ae7b11f1721aa52d0"/><file name="resize.gif" hash="320f534b5d444b39701e0b679529e779"/><file name="sizer.gif" hash="1b35a4ec3b734dfe37e31ba87bcc7d99"/><file name="top_left.gif" hash="9c5e5920bfc189a45cc618099af93aa8"/><file name="top_mid.gif" hash="a12ff2b944025ad2d127d033dae5e9e1"/><file name="top_right.gif" hash="0cf1ec5b93f8ac8fcce0e2f72cf7f45e"/></dir><file name="magento-banner.jpg" hash="b3105fd2dd00004ab903db4fbb81b61e"/><file name="refresh_32.png" hash="96e793bcbcc2dc48768b8e124beea378"/><file name="straker-translations-logo.png" hash="7cb5e29f562420142f918147d95ed232"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="StrakerTranslations_EasyTranslationPlatform.xml" hash="eb61fdaac7559a75e39bc01206165d0c"/></dir></target><target name="mage"><dir name="js"><dir name="straker"><file name="translations.js" hash="4e553d345d444828b54cb3a2098512e7"/></dir></dir></target></contents>
|
|
|
|
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/adminhtml/default/straker/css/straker.css
CHANGED
@@ -260,10 +260,7 @@
|
|
260 |
text-decoration: underline;
|
261 |
}
|
262 |
.adminhtml-straker-product-index p.inactive,
|
263 |
-
.adminhtml-straker-category-index p.inactive
|
264 |
-
.adminhtml-straker-attribute-index p.inactive,
|
265 |
-
.adminhtml-straker-cms-page-index p.inactive,
|
266 |
-
.adminhtml-straker-cms-block-index p.inactive{
|
267 |
color: #888888;
|
268 |
text-decoration: underline;
|
269 |
}
|
260 |
text-decoration: underline;
|
261 |
}
|
262 |
.adminhtml-straker-product-index p.inactive,
|
263 |
+
.adminhtml-straker-category-index p.inactive {
|
|
|
|
|
|
|
264 |
color: #888888;
|
265 |
text-decoration: underline;
|
266 |
}
|