Skip to content

Commit 133668c

Browse files
committed
localization updates
1 parent 3f75f12 commit 133668c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/Plugin.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ public static function loadProcessing(GenericEvent $event)
104104
/**
105105
* @param \Symfony\Component\EventDispatcher\GenericEvent $event
106106
*/
107-
public static function getSettings(GenericEvent $event)
108-
{
109-
$settings = $event->getSubject();
110-
$settings->add_dropdown_setting(self::$module, 'General', 'outofstock_ssl', 'Out Of Stock Ssl', 'Enable/Disable Sales Of This Type', $settings->get_setting('OUTOFSTOCK_SSL'), ['0', '1'], ['No', 'Yes']);
107+
public static function getSettings(GenericEvent $event)
108+
{
109+
/**
110+
* @var \MyAdmin\Settings $settings
111+
**/
112+
$settings = $event->getSubject();
113+
$settings->add_dropdown_setting(self::$module, __('General'), 'outofstock_ssl', __('Out Of Stock Ssl'), __('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_SSL'), ['0', '1'], ['No', 'Yes']);
111114
}
112115
}

0 commit comments

Comments
 (0)