Skip to content

Commit dd37910

Browse files
committed
localization updates
1 parent bae6202 commit dd37910

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
@@ -105,9 +105,12 @@ public static function loadProcessing(GenericEvent $event)
105105
/**
106106
* @param \Symfony\Component\EventDispatcher\GenericEvent $event
107107
*/
108-
public static function getSettings(GenericEvent $event)
109-
{
110-
$settings = $event->getSubject();
111-
$settings->add_dropdown_setting(self::$module, 'General', 'outofstock_servers', 'Out Of Stock Servers', 'Enable/Disable Sales Of This Type', $settings->get_setting('OUTOFSTOCK_SERVERS'), ['0', '1'], ['No', 'Yes']);
108+
public static function getSettings(GenericEvent $event)
109+
{
110+
/**
111+
* @var \MyAdmin\Settings $settings
112+
**/
113+
$settings = $event->getSubject();
114+
$settings->add_dropdown_setting(self::$module, __('General'), 'outofstock_servers', __('Out Of Stock Servers'), __('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_SERVERS'), ['0', '1'], ['No', 'Yes']);
112115
}
113116
}

0 commit comments

Comments
 (0)