Skip to content

Commit

Permalink
Update label
Browse files Browse the repository at this point in the history
  • Loading branch information
ninhkx committed Aug 7, 2018
1 parent 5305829 commit ea0c3ae
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Block/Adminhtml/Slider/Edit/Tab/Design.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ protected function _prepareForm()
]);
$fieldset->addField('limit_number', 'text', [
'name' => 'limit_number',
'label' => __('Limit number of products'),
'title' => __('Limit number of products'),
'label' => __('Limit the number of products'),
'title' => __('Limit the number of products'),
]);

$fieldset->addField('display_additional', 'multiselect', [
Expand Down
2 changes: 1 addition & 1 deletion Model/Config/Source/ProductType.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function toArray()
self::BEST_SELLER_PRODUCTS => __('Best Seller Products'),
self::FEATURED_PRODUCTS => __('Featured Products'),
self::MOSTVIEWED_PRODUCTS => __('Most Viewed Products'),
self::ONSALE_PRODUCTS => __('OnSale Products'),
self::ONSALE_PRODUCTS => __('On Sale Products'),
self::RECENT_PRODUCT => __('Recent Products'),
// self::WISHLIST_PRODUCT => __('WishList Products'),
self::CATEGORY => __('Select By Category'),
Expand Down
2 changes: 1 addition & 1 deletion Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
->addColumn('description', Table::TYPE_TEXT, '64k', [], 'Description')
->addColumn('store_ids', Table::TYPE_TEXT, 255, [])
->addColumn('customer_group_ids', Table::TYPE_TEXT, 255, [])
->addColumn('limit_number', Table::TYPE_SMALLINT, null, ['unsigned' => true, 'nullable' => false], 'Limit Number Of Products')
->addColumn('limit_number', Table::TYPE_SMALLINT, null, ['unsigned' => true, 'nullable' => false], 'Limit the number of products')
->addColumn('location', Table::TYPE_TEXT, 255, [], 'Location')
->addColumn('time_cache', Table::TYPE_TEXT, 255, [], 'Cache Lifetime')
->addColumn('from_date', Table::TYPE_DATE, null, ['nullable' => true, 'default' => null], 'From')
Expand Down
13 changes: 11 additions & 2 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
<comment>Select Yes to enable this module</comment>
</field>
<field id="display_information" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Default Display Additional Information</label>
<label>Default displayed additional info</label>
<source_model>Mageplaza\Productslider\Model\Config\Source\Additional</source_model>
<comment>This default settings will be used when using code to insert the slider</comment>
</field>
</group>
<group id="slider_design" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Slider Design Configuration</label>
<field id="responsive" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Is Responsive</label>
<label>Responsive</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
</field>
Expand All @@ -57,35 +58,42 @@
<label>Loop Slider</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>Select Yes to re-display the slider after it shows the last item</comment>
</field>
<field id="margin" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Margin Between Items</label>
<validate>validate-digits</validate>
<comment>pixel. This is the distance between two items in the slider</comment>
</field>
<field id="nav" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Next/Prev buttons</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>Select Yes to display the Next/Pre button in the slider</comment>
</field>
<field id="dots" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Show Dots Navigation</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>Select Yes to display dot navigation of the slider</comment>
</field>
<field id="lazyLoad" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Lazy load images</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>Select Yes to lazy load images</comment>
</field>
<field id="autoplay" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Autoplay</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>Select Yes to allow auto-displaying the next products</comment>
</field>
<field id="autoplayTimeout" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Autoplay TimeOut</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>ms. This is the time which an item is auto-moved to the left</comment>
<depends>
<field id="autoplay">1</field>
</depends>
Expand All @@ -94,6 +102,7 @@
<label>Autoplay HoverPause</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<validate>validate-digits</validate>
<comment>Select Yes to stop the slider when hovering the mouse over the slider area</comment>
<depends>
<field id="autoplay">1</field>
</depends>
Expand Down
2 changes: 1 addition & 1 deletion etc/widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<label translate="true">Description</label>
</parameter>
<parameter name="products_count" xsi:type="text" required="false" visible="true">
<label translate="true">Limit number of products</label>
<label translate="true">Limit the number of products</label>
</parameter>
<parameter name="product_type" xsi:type="select" required="true" visible="true" source_model="Mageplaza\Productslider\Model\Config\Source\ProductTypeWidget">
<label translate="true">Select Slider</label>
Expand Down

0 comments on commit ea0c3ae

Please sign in to comment.