Plugin Directory

Changeset 1511703


Ignore:
Timestamp:
10/10/2016 10:57:54 AM (9 years ago)
Author:
criptopay
Message:

translations Fixed

Location:
criptopay-wp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • criptopay-wp/tags/3.2.0/class-wc-criptopay.php

    r1511681 r1511703  
    2626 * Developer:           Carlos González, Víctor García
    2727 * Text Domain:         woocriptopay
     28 * Domain Path:         /languages
    2829 * Version:             3.2.0
    2930 * License:             Copyright 2014-2016 CriptoPay S.L., MIT License
     
    4546 * Definimos el dominio
    4647 */
    47 if(!defined('WOOCOMMERCE_CRIPTOPAY_DOMAIN')){
    48     define( 'WOOCOMMERCE_CRIPTOPAY_DOMAIN', 'woocriptopay' );
    49 }
    50 load_plugin_textdomain( WOOCOMMERCE_CRIPTOPAY_DOMAIN, null,'/languages' );
     48load_plugin_textdomain( 'woocriptopay', null,'/languages' );
    5149       
    5250add_action('admin_notices', 'showAdminMessages');
     
    6361        echo '<h3>Cripto-Pay.com Gateway</h3>';
    6462        foreach ($plugin_messages as $message) {
    65             echo '<p><strong>' . __('Required plugins',WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';
     63            echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>';
    6664        }
    6765        echo '</div>';
     
    8583            $this->id = 'criptopay';
    8684            $this->icon = home_url() . '/wp-content/plugins/criptopay/assets/images/CriptoPay_logo.png';
    87             $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
    88             $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     85            $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', 'woocriptopay');
     86            $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', 'woocriptopay');
    8987            $this->notify_url = add_query_arg('wc-api', 'criptopay', home_url('/'));
    9088            $this->log = new WC_Logger();
     
    113111            $this->form_fields = array(
    114112                    'enabled' => array(
    115                     'title' => __('Status', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     113                    'title' => __('Status', 'woocriptopay'),
    116114                    'type' => 'checkbox',
    117                     'label' => __('Enable CriptoPay Payments', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     115                    'label' => __('Enable CriptoPay Payments', 'woocriptopay'),
    118116                    'description' => '',
    119117                    'default' => 'yes'
    120118                ),
    121119                'title' => array(
    122                     'title' => __('Title', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     120                    'title' => __('Title', 'woocriptopay'),
    123121                    'type' => 'text',
    124                     'description' => __('This title will be displayed in the checkout process.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    125                     'default' => __('CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     122                    'description' => __('This title will be displayed in the checkout process.', 'woocriptopay'),
     123                    'default' => __('CriptoPay', 'woocriptopay'),
    126124                    'desc_tip' => true,
    127125                ),
    128126                'description' => array(
    129                     'title'       => __( 'Description', WOOCOMMERCE_CRIPTOPAY_DOMAIN ),
     127                    'title'       => __( 'Description', 'woocriptopay' ),
    130128                    'type'        => 'text',
    131129                    'desc_tip'    => true,
    132                     'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    133                     'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', WOOCOMMERCE_CRIPTOPAY_DOMAIN)
     130                    'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', 'woocriptopay'),
     131                    'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', 'woocriptopay')
    134132                ),
    135133                'CP_Servidor' => array(
    136                     'title' => __('Server', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     134                    'title' => __('Server', 'woocriptopay'),
    137135                    'type' => 'select',
    138136                    'description' => __('Enviroment to the gateway.', 'woocommerce'),
     
    140138                    'desc_tip' => true,
    141139                    'options' => array(
    142                         'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    143                         'https://cripto-pay.com' => __('Production - https://cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    144                         'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     140                        'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', 'woocriptopay'),
     141                        'https://cripto-pay.com' => __('Production - https://cripto-pay.com', 'woocriptopay'),
     142                        'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', 'woocriptopay'),
    145143                    )
    146144                ),
    147145                'CP_ApiId' => array(
    148                     'title' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     146                    'title' => __('API ID', 'woocriptopay'),
    149147                    'type' => 'text',
    150                     'description' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     148                    'description' => __('API ID', 'woocriptopay'),
    151149                    'default' => ''
    152150                ),
    153151                'CP_ApiPassword' => array(
    154                     'title' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     152                    'title' => __('API Password', 'woocriptopay'),
    155153                    'type' => 'text',
    156                     'description' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     154                    'description' => __('API Password', 'woocriptopay'),
    157155                    'default' => ''
    158156                ),
    159157                'Cert_Publi' => array(
    160                     'title' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     158                    'title' => __('Public certificate', 'woocriptopay'),
    161159                    'type' => 'file',
    162                     'description' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     160                    'description' => __('Public certificate', 'woocriptopay'),
    163161                    'default' => ''
    164162                ),
    165163                'Cert_Priv' => array(
    166                     'title' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     164                    'title' => __('Private certificate', 'woocriptopay'),
    167165                    'type' => 'file',
    168                     'description' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     166                    'description' => __('Private certificate', 'woocriptopay'),
    169167                    'default' => ''
    170168                )
     
    181179            global $woocommerce;
    182180            $order = new WC_Order($order_id);
    183             $this->log->add(WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciado proceso de pago");
     181            $this->log->add('woocriptopay', "Iniciado proceso de pago");
    184182
    185183            //Instancia del Objeto para realizar la acciones
     
    206204                );
    207205            }else{
    208                 throw new Exception(__("CriptoPay payments is not configured correctly",WOOCOMMERCE_CRIPTOPAY_DOMAIN));
     206                throw new Exception(__("CriptoPay payments is not configured correctly",'woocriptopay'));
    209207            }
    210208
     
    221219                $res = mkdir(__DIR__.'/certificados', 0755, true);
    222220                if (!$res) {
    223                     throw new Exception(__('The directory is not writeable, check permisions', WOOCOMMERCE_CRIPTOPAY_DOMAIN));
     221                    throw new Exception(__('The directory is not writeable, check permisions', 'woocriptopay'));
    224222                }
    225223            }
     
    231229                        $move = move_uploaded_file($file['tmp_name'],__DIR__.'/certificados/'.$file['name']);
    232230                    }else{
    233                         throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'],WOOCOMMERCE_CRIPTOPAY_DOMAIN)));
     231                        throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'],'woocriptopay')));
    234232                    }
    235233                }
     
    247245            $idpago = $_POST['idpago'];
    248246            $idorder = $_POST['order'];
    249             $this->log->add(WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciada IPN Order ".$idorder." idpago ".$idpago);
     247            $this->log->add('woocriptopay', "Iniciada IPN Order ".$idorder." idpago ".$idpago);
    250248            $CRIPTOPAY = new CriptoPayApiRest\src\Comun\CriptoPayApiRest($this->CP_ApiId,$this->CP_ApiPassword,__DIR__.'/certificados/',$this->CP_Servidor);
    251249            $CRIPTOPAY->Set(array('idpago'=>$idpago));
     
    254252           
    255253            if($respuesta->estado >= 30){
    256                 $order->update_status('completed',__( 'Completed payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN ));
     254                $order->update_status('completed',__( 'Completed payment CriptoPay', 'woocriptopay' ));
    257255                $order->reduce_order_stock();
    258256                WC()->cart->empty_cart();
    259257            }elseif($respuesta->estado >= 20){
    260                 $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN ));
     258                $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', 'woocriptopay' ));
    261259                $order->reduce_order_stock();
    262260                WC()->cart->empty_cart();
    263261            }elseif($respuesta->estado == 10){
    264                 $order->update_status('processing',__( 'Incomplete payment', WOOCOMMERCE_CRIPTOPAY_DOMAIN ));
    265             }
    266             $this->log->add(WOOCOMMERCE_CRIPTOPAY_DOMAIN, "FIN IPN en estado ".$respuesta->estado);
     262                $order->update_status('processing',__( 'Incomplete payment', 'woocriptopay' ));
     263            }
     264            $this->log->add('woocriptopay', "FIN IPN en estado ".$respuesta->estado);
    267265            exit;
    268266        }
     
    276274            }
    277275            if($this->get_option('CP_ApiId') == null){
    278                 $data_messages['API Id'] = __('API ID is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     276                $data_messages['API Id'] = __('API ID is required', 'woocriptopay');
    279277            }
    280278            if($this->get_option('CP_ApiPassword') == null){
    281                 $data_messages['API Password'] = __('API password is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     279                $data_messages['API Password'] = __('API password is required', 'woocriptopay');
    282280            }
    283281            if($this->get_option('CP_Servidor') == null){
    284                 $data_messages['API Server'] = __('API server is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     282                $data_messages['API Server'] = __('API server is required', 'woocriptopay');
    285283            }
    286284
     
    290288                if (count($plugin_messages) > 0) {
    291289                    foreach ($plugin_messages as $message) {
    292                         echo '<p><strong>' . __('Required plugins',WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';
     290                        echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>';
    293291                    }
    294292                }
    295293                if (count($data_messages) > 0) {
    296                     echo '<p><strong>' . __('Required configuration data',WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><ul>';
     294                    echo '<p><strong>' . __('Required configuration data','woocriptopay') . '</strong><ul>';
    297295                    foreach ($data_messages as $head=>$message) {
    298296                        echo '<li><strong>' . $head . '</strong>'.$message.'</li>';
  • criptopay-wp/trunk/class-wc-criptopay.php

    r1511681 r1511703  
    2626 * Developer:           Carlos González, Víctor García
    2727 * Text Domain:         woocriptopay
     28 * Domain Path:         /languages
    2829 * Version:             3.2.0
    2930 * License:             Copyright 2014-2016 CriptoPay S.L., MIT License
     
    4546 * Definimos el dominio
    4647 */
    47 if(!defined('WOOCOMMERCE_CRIPTOPAY_DOMAIN')){
    48     define( 'WOOCOMMERCE_CRIPTOPAY_DOMAIN', 'woocriptopay' );
    49 }
    50 load_plugin_textdomain( WOOCOMMERCE_CRIPTOPAY_DOMAIN, null,'/languages' );
     48load_plugin_textdomain( 'woocriptopay', null,'/languages' );
    5149       
    5250add_action('admin_notices', 'showAdminMessages');
     
    6361        echo '<h3>Cripto-Pay.com Gateway</h3>';
    6462        foreach ($plugin_messages as $message) {
    65             echo '<p><strong>' . __('Required plugins',WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';
     63            echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>';
    6664        }
    6765        echo '</div>';
     
    8583            $this->id = 'criptopay';
    8684            $this->icon = home_url() . '/wp-content/plugins/criptopay/assets/images/CriptoPay_logo.png';
    87             $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
    88             $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     85            $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', 'woocriptopay');
     86            $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', 'woocriptopay');
    8987            $this->notify_url = add_query_arg('wc-api', 'criptopay', home_url('/'));
    9088            $this->log = new WC_Logger();
     
    113111            $this->form_fields = array(
    114112                    'enabled' => array(
    115                     'title' => __('Status', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     113                    'title' => __('Status', 'woocriptopay'),
    116114                    'type' => 'checkbox',
    117                     'label' => __('Enable CriptoPay Payments', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     115                    'label' => __('Enable CriptoPay Payments', 'woocriptopay'),
    118116                    'description' => '',
    119117                    'default' => 'yes'
    120118                ),
    121119                'title' => array(
    122                     'title' => __('Title', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     120                    'title' => __('Title', 'woocriptopay'),
    123121                    'type' => 'text',
    124                     'description' => __('This title will be displayed in the checkout process.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    125                     'default' => __('CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     122                    'description' => __('This title will be displayed in the checkout process.', 'woocriptopay'),
     123                    'default' => __('CriptoPay', 'woocriptopay'),
    126124                    'desc_tip' => true,
    127125                ),
    128126                'description' => array(
    129                     'title'       => __( 'Description', WOOCOMMERCE_CRIPTOPAY_DOMAIN ),
     127                    'title'       => __( 'Description', 'woocriptopay' ),
    130128                    'type'        => 'text',
    131129                    'desc_tip'    => true,
    132                     'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    133                     'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', WOOCOMMERCE_CRIPTOPAY_DOMAIN)
     130                    'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', 'woocriptopay'),
     131                    'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', 'woocriptopay')
    134132                ),
    135133                'CP_Servidor' => array(
    136                     'title' => __('Server', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     134                    'title' => __('Server', 'woocriptopay'),
    137135                    'type' => 'select',
    138136                    'description' => __('Enviroment to the gateway.', 'woocommerce'),
     
    140138                    'desc_tip' => true,
    141139                    'options' => array(
    142                         'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    143                         'https://cripto-pay.com' => __('Production - https://cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
    144                         'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     140                        'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', 'woocriptopay'),
     141                        'https://cripto-pay.com' => __('Production - https://cripto-pay.com', 'woocriptopay'),
     142                        'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', 'woocriptopay'),
    145143                    )
    146144                ),
    147145                'CP_ApiId' => array(
    148                     'title' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     146                    'title' => __('API ID', 'woocriptopay'),
    149147                    'type' => 'text',
    150                     'description' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     148                    'description' => __('API ID', 'woocriptopay'),
    151149                    'default' => ''
    152150                ),
    153151                'CP_ApiPassword' => array(
    154                     'title' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     152                    'title' => __('API Password', 'woocriptopay'),
    155153                    'type' => 'text',
    156                     'description' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     154                    'description' => __('API Password', 'woocriptopay'),
    157155                    'default' => ''
    158156                ),
    159157                'Cert_Publi' => array(
    160                     'title' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     158                    'title' => __('Public certificate', 'woocriptopay'),
    161159                    'type' => 'file',
    162                     'description' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     160                    'description' => __('Public certificate', 'woocriptopay'),
    163161                    'default' => ''
    164162                ),
    165163                'Cert_Priv' => array(
    166                     'title' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     164                    'title' => __('Private certificate', 'woocriptopay'),
    167165                    'type' => 'file',
    168                     'description' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),
     166                    'description' => __('Private certificate', 'woocriptopay'),
    169167                    'default' => ''
    170168                )
     
    181179            global $woocommerce;
    182180            $order = new WC_Order($order_id);
    183             $this->log->add(WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciado proceso de pago");
     181            $this->log->add('woocriptopay', "Iniciado proceso de pago");
    184182
    185183            //Instancia del Objeto para realizar la acciones
     
    206204                );
    207205            }else{
    208                 throw new Exception(__("CriptoPay payments is not configured correctly",WOOCOMMERCE_CRIPTOPAY_DOMAIN));
     206                throw new Exception(__("CriptoPay payments is not configured correctly",'woocriptopay'));
    209207            }
    210208
     
    221219                $res = mkdir(__DIR__.'/certificados', 0755, true);
    222220                if (!$res) {
    223                     throw new Exception(__('The directory is not writeable, check permisions', WOOCOMMERCE_CRIPTOPAY_DOMAIN));
     221                    throw new Exception(__('The directory is not writeable, check permisions', 'woocriptopay'));
    224222                }
    225223            }
     
    231229                        $move = move_uploaded_file($file['tmp_name'],__DIR__.'/certificados/'.$file['name']);
    232230                    }else{
    233                         throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'],WOOCOMMERCE_CRIPTOPAY_DOMAIN)));
     231                        throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'],'woocriptopay')));
    234232                    }
    235233                }
     
    247245            $idpago = $_POST['idpago'];
    248246            $idorder = $_POST['order'];
    249             $this->log->add(WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciada IPN Order ".$idorder." idpago ".$idpago);
     247            $this->log->add('woocriptopay', "Iniciada IPN Order ".$idorder." idpago ".$idpago);
    250248            $CRIPTOPAY = new CriptoPayApiRest\src\Comun\CriptoPayApiRest($this->CP_ApiId,$this->CP_ApiPassword,__DIR__.'/certificados/',$this->CP_Servidor);
    251249            $CRIPTOPAY->Set(array('idpago'=>$idpago));
     
    254252           
    255253            if($respuesta->estado >= 30){
    256                 $order->update_status('completed',__( 'Completed payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN ));
     254                $order->update_status('completed',__( 'Completed payment CriptoPay', 'woocriptopay' ));
    257255                $order->reduce_order_stock();
    258256                WC()->cart->empty_cart();
    259257            }elseif($respuesta->estado >= 20){
    260                 $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN ));
     258                $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', 'woocriptopay' ));
    261259                $order->reduce_order_stock();
    262260                WC()->cart->empty_cart();
    263261            }elseif($respuesta->estado == 10){
    264                 $order->update_status('processing',__( 'Incomplete payment', WOOCOMMERCE_CRIPTOPAY_DOMAIN ));
    265             }
    266             $this->log->add(WOOCOMMERCE_CRIPTOPAY_DOMAIN, "FIN IPN en estado ".$respuesta->estado);
     262                $order->update_status('processing',__( 'Incomplete payment', 'woocriptopay' ));
     263            }
     264            $this->log->add('woocriptopay', "FIN IPN en estado ".$respuesta->estado);
    267265            exit;
    268266        }
     
    276274            }
    277275            if($this->get_option('CP_ApiId') == null){
    278                 $data_messages['API Id'] = __('API ID is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     276                $data_messages['API Id'] = __('API ID is required', 'woocriptopay');
    279277            }
    280278            if($this->get_option('CP_ApiPassword') == null){
    281                 $data_messages['API Password'] = __('API password is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     279                $data_messages['API Password'] = __('API password is required', 'woocriptopay');
    282280            }
    283281            if($this->get_option('CP_Servidor') == null){
    284                 $data_messages['API Server'] = __('API server is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);
     282                $data_messages['API Server'] = __('API server is required', 'woocriptopay');
    285283            }
    286284
     
    290288                if (count($plugin_messages) > 0) {
    291289                    foreach ($plugin_messages as $message) {
    292                         echo '<p><strong>' . __('Required plugins',WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';
     290                        echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>';
    293291                    }
    294292                }
    295293                if (count($data_messages) > 0) {
    296                     echo '<p><strong>' . __('Required configuration data',WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><ul>';
     294                    echo '<p><strong>' . __('Required configuration data','woocriptopay') . '</strong><ul>';
    297295                    foreach ($data_messages as $head=>$message) {
    298296                        echo '<li><strong>' . $head . '</strong>'.$message.'</li>';
Note: See TracChangeset for help on using the changeset viewer.