Skip to content

Commit 106549a

Browse files
committed
localization updates
1 parent c710025 commit 106549a

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
@@ -147,9 +147,12 @@ public static function loadProcessing(GenericEvent $event)
147147
/**
148148
* @param \Symfony\Component\EventDispatcher\GenericEvent $event
149149
*/
150-
public static function getSettings(GenericEvent $event)
151-
{
152-
$settings = $event->getSubject();
153-
$settings->add_dropdown_setting(self::$module, 'General', 'outofstock_licenses', 'Out Of Stock Licenses', 'Enable/Disable Sales Of This Type', $settings->get_setting('OUTOFSTOCK_LICENSES'), ['0', '1'], ['No', 'Yes']);
150+
public static function getSettings(GenericEvent $event)
151+
{
152+
/**
153+
* @var \MyAdmin\Settings $settings
154+
**/
155+
$settings = $event->getSubject();
156+
$settings->add_dropdown_setting(self::$module, __('General'), 'outofstock_licenses', __('Out Of Stock Licenses'), __('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_LICENSES'), ['0', '1'], ['No', 'Yes']);
154157
}
155158
}

0 commit comments

Comments
 (0)