src/OpenCart/Config/ShopCapabilities.php
protected function paymentMethodToOptions(array $extensions)
    {
        $results = array();
        $registry = $this->getRegistry();
        $directory = !$registry->isOc1() ? 'extension/payment/' : 'payment/';
        foreach ($extensions as $extension) {
            $registry->language->load($directory . $extension);
            $results[$extension] = $registry->language->get('heading_title');
        }
        return $results;
    }
protected function paymentMethodToOptions(array $extensions)
    {
        $results = array();
        $registry = $this->getRegistry();
        $directory = !$registry->isOc1() ? 'extension/payment/' : 'payment/';
        foreach ($extensions as $extension) {
            $registry->language->load($directory . $extension);
            $results[$extension] = $registry->language->get('heading_title');
        }
        return $results;
    }
protected function paymentMethodToOptions ( array $ extensions ) { $ results = array ( ) ; $ registry = $ this -> getRegistry ( ) ; $ directory = ! $ registry -> isOc1 ( ) ? 'extension/payment/' : 'payment/' ; foreach ( $ extensions as $ extension ) { $ registry -> language -> load ( $ directory . $ extension ) ; $ results [ $ extension ] = $ registry -> language -> get ( 'heading_title' ) ; } return $ results ; }
Turns the list into a translated list of options for a select.

@param array $extensions

@return array
an array with the extensions as key and their translated name as value.
Turns the list into a translated list of options for a select .