Plugin Directory

Changeset 3093843


Ignore:
Timestamp:
05/28/2024 11:33:23 AM (22 months ago)
Author:
cdekit
Message:

feat: up lang

Location:
cdekdelivery/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cdekdelivery/trunk/src/Actions/CallCourier.php

    r3093807 r3093843  
    104104            Note::send($orderId, $message);
    105105
    106             $validate = new Validate(true, sprintf(esc_html__(/* translators: %s: uuid of application*/'Request number:
    107             %s', 'cdekdelivery'), $intakeNumber));
     106            $validate = new Validate(true, sprintf(esc_html__(/* translators: %s: uuid of application*/'Request number: %s', 'cdekdelivery'), $intakeNumber));
    108107
    109108            return $validate->response();
  • cdekdelivery/trunk/src/CdekShippingMethod.php

    r3093807 r3093843  
    133133                'type'        => 'checkbox',
    134134                'desc_tip'    => true,
    135                 'description' => esc_html__("When the international orders mode is enabled, additional fields will appear on the checkout page:\n\r passport series, passport number, date of issue, department, TIN, date of birth.",
     135                'description' => esc_html__('When the international orders mode is enabled, additional fields will appear on the checkout page: passport series, passport number, date of issue, department, TIN, date of birth.',
    136136                                            'cdekdelivery'),
    137137                'default'     => 'no',
     
    141141                'type'        => 'text',
    142142                'desc_tip'    => true,
    143                 'description' => esc_html__("Address of the actual seller. Used when printing invoices to display the address of the present\n\r seller of the product or trade name. For international orders",
     143                'description' => esc_html__('Address of the actual seller. Used when printing invoices to display the address of the present seller of the product or trade name. For international orders',
    144144                                            'cdekdelivery'),
    145145            ],
     
    190190            ],
    191191            'delivery_block_name'                => [
    192                 'title' => '<h3 style="text-align: center;">'.__('Delivery', 'cdekdelivery').'</h3>',
     192                'title' => '<h3 style="text-align: center;">'.esc_html__('Delivery', 'cdekdelivery').'</h3>',
    193193                'type'  => 'title',
    194194                'class' => 'cdek_delivery_block_name',
    195195            ],
    196196            'automate_orders'                    => [
    197                 'title'       => __('Automatically create orders in CDEK', 'cdekdelivery'),
    198                 'type'        => 'checkbox',
    199                 'description' => __('If you have information about the dimensions and correctly filled in shipping addresses, the CDEK invoice will be created automatically',
     197                'title'       => esc_html__('Automatically create orders in CDEK', 'cdekdelivery'),
     198                'type'        => 'checkbox',
     199                'description' => esc_html__('If you have information about the dimensions and correctly filled in shipping addresses, the CDEK invoice will be created automatically',
    200200                                    'cdekdelivery'),
    201201            ],
    202202            'tariff_list'                        => [
    203                 'title'       => __('Tariff', 'cdekdelivery'),
     203                'title'       => esc_html__('Tariff', 'cdekdelivery'),
    204204                'type'        => 'multiselect',
    205205                'desc_tip'    => true,
    206206                'options'     => Tariff::getTariffList(),
    207                 'description' => __("To select multiple tariffs, hold down the \"CTRL\" key and select tariffs with the left mouse button.",
     207                'description' => esc_html__('To select multiple tariffs, hold down the "CTRL" key and select tariffs with the left mouse button.',
    208208                                    'cdekdelivery'),
    209209                'css'         => 'height: 400px;',
    210210            ],
    211211            'tariff_name'                        => [
    212                 'title'       => __('Change tariff name', 'cdekdelivery'),
     212                'title'       => esc_html__('Change tariff name', 'cdekdelivery'),
    213213                'type'        => 'text',
    214                 'description' => sprintf(__("In the list of tariffs in the field \"Tariffs\" the tariff code is indicated in brackets.\n\r To change the name of the tariff, an entry in the code-name format is added to the field; for multiple changes,\n\r tariffs are separated by a semicolon, for example, an entry that will change the name of tariff 136 and 137 looks like this:%s If the value is not specified, the tariff names will be standard.",
     214                'description' => sprintf(esc_html__('In the list of tariffs in the field "Tariffs" the tariff code is indicated in brackets.\n\r To change the name of the tariff, an entry in the code-name format is added to the field; for multiple changes,\n\r tariffs are separated by a semicolon, for example, an entry that will change the name of tariff 136 and 137 looks like this:%s If the value is not specified, the tariff names will be standard.',
    215215                                            'cdekdelivery'), '<b>136-Доставка до пвз;137-Доставка курьером</b> <br>'),
    216216            ],
    217217            'has_packages_mode'                  => [
    218                 'title'       => __('Multi-seater', 'cdekdelivery'),
    219                 'type'        => 'checkbox',
    220                 'desc_tip'    => true,
    221                 'description' => __("When the 'Multi-seat' mode is enabled, the detailed order page will display\n\r the ability to create several packages for one order and distribute goods among the created packages",
     218                'title'       => esc_html__('Multi-seater', 'cdekdelivery'),
     219                'type'        => 'checkbox',
     220                'desc_tip'    => true,
     221                'description' => esc_html__('When the "Multi-seat" mode is enabled, the detailed order page will display the ability to create several packages for one order and distribute goods among the created packages',
    222222                                    'cdekdelivery'),
    223223                'default'     => 'no',
    224224            ],
    225225            'extra_day'                          => [
    226                 'title'             => __('Add days for delivery', 'cdekdelivery'),
    227                 'type'              => 'number',
    228                 'desc_tip'          => true,
    229                 'description'       => __('Number of days will be added to the estimated delivery time',
     226                'title'             => esc_html__('Add days for delivery', 'cdekdelivery'),
     227                'type'              => 'number',
     228                'desc_tip'          => true,
     229                'description'       => esc_html__('Number of days will be added to the estimated delivery time',
    230230                                          'cdekdelivery'),
    231231                'default'           => 0,
     
    236236            ],
    237237            'map_auto_close'                     => [
    238                 'title'       => __('Close the map after selecting pick-up', 'cdekdelivery'),
    239                 'type'        => 'checkbox',
    240                 'desc_tip'    => true,
    241                 'description' => __('If this setting is enabled, then after selecting a pick-up point on the checkout page, the card will automatically close.',
     238                'title'       => esc_html__('Close the map after selecting pick-up', 'cdekdelivery'),
     239                'type'        => 'checkbox',
     240                'desc_tip'    => true,
     241                'description' => esc_html__('If this setting is enabled, then after selecting a pick-up point on the checkout page, the card will automatically close.',
    242242                                    'cdekdelivery'),
    243243                'default'     => 'no',
     
    245245            'map'                                => [
    246246                'type'  => 'hidden',
    247                 'title' => __('Select addresses to send on the map', 'cdekdelivery'),
     247                'title' => esc_html__('Select addresses to send on the map', 'cdekdelivery'),
    248248            ],
    249249            'pvz_code'                           => [
     
    257257            ],
    258258            'package_setting_block_name'         => [
    259                 'title' => '<h3 style="text-align: center;">'.__('Dimensions', 'cdekdelivery').'</h3>',
     259                'title' => '<h3 style="text-align: center;">'.esc_html__('Dimensions', 'cdekdelivery').'</h3>',
    260260                'type'  => 'title',
    261261                'class' => 'cdek_package_setting_block_name',
    262262            ],
    263263            'product_weight_default'             => [
    264                 'title'             => __('Default weight of one item in', 'cdekdelivery').
     264                'title'             => esc_html__('Default weight of one item in', 'cdekdelivery').
    265265                                       ' ('.
    266266                                       get_option('woocommerce_weight_unit').
    267267                                       ')',
    268268                'desc_tip'          => true,
    269                 'description'       => sprintf(__('All goods must have their weight indicated, if there are goods without %s a specified weight, then for such goods the value from this field will be substituted. %s This will affect the accuracy of the delivery calculation. The default value is 1 weight unit specified in the settings.',
     269                'description'       => sprintf(esc_html__('All goods must have their weight indicated, if there are goods without %s a specified weight, then for such goods the value from this field will be substituted. %s This will affect the accuracy of the delivery calculation. The default value is 1 weight unit specified in the settings.',
    270270                                                  'cdekdelivery'), "<br>", "<br>"),
    271271                'type'              => 'number',
     
    277277            ],
    278278            'product_length_default'             => [
    279                 'title'             => __('Item length', 'cdekdelivery'),
    280                 'description'       => __('Default product length in cm', 'cdekdelivery'),
     279                'title'             => esc_html__('Item length', 'cdekdelivery'),
     280                'description'       => esc_html__('Default product length in cm', 'cdekdelivery'),
    281281                'type'              => 'number',
    282282                'desc_tip'          => true,
     
    288288            ],
    289289            'product_width_default'              => [
    290                 'title'             => __('Item width', 'cdekdelivery'),
    291                 'description'       => __('Default product width in cm', 'cdekdelivery'),
     290                'title'             => esc_html__('Item width', 'cdekdelivery'),
     291                'description'       => esc_html__('Default product width in cm', 'cdekdelivery'),
    292292                'type'              => 'number',
    293293                'desc_tip'          => true,
     
    299299            ],
    300300            'product_height_default'             => [
    301                 'title'             => __('Item height', 'cdekdelivery'),
    302                 'description'       => __('Default product height in cm', 'cdekdelivery'),
     301                'title'             => esc_html__('Item height', 'cdekdelivery'),
     302                'description'       => esc_html__('Default product height in cm', 'cdekdelivery'),
    303303                'type'              => 'number',
    304304                'desc_tip'          => true,
     
    310310            ],
    311311            'product_package_default_toggle'     => [
    312                 'title'       => __('Product dimensions on/off', 'cdekdelivery'),
    313                 'description' => __('Force the use of product dimensions (length, width and height) by default for all products',
     312                'title'       => esc_html__('Product dimensions on/off', 'cdekdelivery'),
     313                'description' => esc_html__('Force the use of product dimensions (length, width and height) by default for all products',
    314314                                    'cdekdelivery'),
    315315                'type'        => 'checkbox',
     
    318318            ],
    319319            'services_block_name'                => [
    320                 'title' => '<h3 style="text-align: center;">'.__('Services', 'cdekdelivery').'</h3>',
     320                'title' => '<h3 style="text-align: center;">'.esc_html__('Services', 'cdekdelivery').'</h3>',
    321321                'type'  => 'title',
    322322                'class' => 'cdek_delivery_block_name',
    323323            ],
    324324            'services_ban_attachment_inspection' => [
    325                 'title'       => __('Prohibition of inspection of attachment', 'cdekdelivery'),
    326                 'description' => __("This service is not available for tariffs to the parcel locker and is only available to clients with an IM type agreement.\n\r Also, the prohibition on inspecting the attachment does not work when the services of fitting at home and partial delivery are included.",
     325                'title'       => esc_html__('Prohibition of inspection of attachment', 'cdekdelivery'),
     326                'description' => esc_html__('This service is not available for tariffs to the parcel locker and is only available to clients with an IM type agreement.\n\r Also, the prohibition on inspecting the attachment does not work when the services of fitting at home and partial delivery are included.',
    327327                                    'cdekdelivery'),
    328328                'type'        => 'checkbox',
     
    330330            ],
    331331            'services_trying_on'                 => [
    332                 'title'       => __('Trying on', 'cdekdelivery'),
     332                'title'       => esc_html__('Trying on', 'cdekdelivery'),
    333333                'description' => '',
    334334                'type'        => 'checkbox',
     
    336336            ],
    337337            'services_part_deliv'                => [
    338                 'title'       => __('Partial delivery', 'cdekdelivery'),
     338                'title'       => esc_html__('Partial delivery', 'cdekdelivery'),
    339339                'description' => '',
    340340                'type'        => 'checkbox',
     
    342342            ],
    343343            'delivery_price_block_name'          => [
    344                 'title' => '<h3 style="text-align: center;">'.__('Delivery cost', 'cdekdelivery').'</h3>',
     344                'title' => '<h3 style="text-align: center;">'.esc_html__('Delivery cost', 'cdekdelivery').'</h3>',
    345345                'type'  => 'title',
    346346                'class' => 'cdek_delivery_price_block_name',
    347347            ],
    348348            'insurance'                          => [
    349                 'title'       => __('Insurance', 'cdekdelivery'),
    350                 'label'       => __('Add insurance quote to shipping cost', 'cdekdelivery'),
    351                 'type'        => 'checkbox',
    352                 'desc_tip'    => true,
    353                 'description' => __('Calculated based on the amount of goods in the order', 'cdekdelivery'),
     349                'title'       => esc_html__('Insurance', 'cdekdelivery'),
     350                'label'       => esc_html__('Add insurance quote to shipping cost', 'cdekdelivery'),
     351                'type'        => 'checkbox',
     352                'desc_tip'    => true,
     353                'description' => esc_html__('Calculated based on the amount of goods in the order', 'cdekdelivery'),
    354354            ],
    355355            'delivery_price_rules'               => [
    356                 'title' => __('Rules for displaying the delivery amount', 'cdekdelivery'),
     356                'title' => esc_html__('Rules for displaying the delivery amount', 'cdekdelivery'),
    357357                'label' => '',
    358358                'type'  => 'hidden',
    359359            ],
    360360            'stepcodprice_title'                 => [
    361                 'title'       => __('Cash on delivery settings', 'cdekdelivery'),
     361                'title'       => esc_html__('Cash on delivery settings', 'cdekdelivery'),
    362362                'type'        => 'title',
    363                 'description' => __("Cash on delivery settings are applied only when sending an order from the admin\n\r panels and for the user on the checkout page are not displayed",
     363                'description' => esc_html__('Cash on delivery settings are applied only when sending an order from the admin panels and for the user on the checkout page are not displayed',
    364364                                    'cdekdelivery'),
    365365            ],
    366366            'percentcod'                         => [
    367                 'title'             => __('Extra charge on order as a percentage', 'cdekdelivery'),
    368                 'type'              => 'number',
    369                 'description'       => sprintf(__("Calculated from the cost of the order.\n\r Changes the total amount on the receipt.%s The surcharge will only appear on the receipt.%s Therefore, it is recommended to inform the user on the checkout page\n\r about extra charges when sending by cash on delivery.",
     367                'title'             => esc_html__('Extra charge on order as a percentage', 'cdekdelivery'),
     368                'type'              => 'number',
     369                'description'       => sprintf(esc_html__('Calculated from the cost of the order. Changes the total amount on the receipt.%s The surcharge will only appear on the receipt.%s Therefore, it is recommended to inform the user on the checkout page about extra charges when sending by cash on delivery.',
    370370                                                  'cdekdelivery'), "<br> <b> ", "</b> "),
    371371                'custom_attributes' => [
     
    380380            ],
    381381            'barcode_format_title'               => [
    382                 'title' => __('Print settings', 'cdekdelivery'),
     382                'title' => esc_html__('Print settings', 'cdekdelivery'),
    383383                'type'  => 'title',
    384384            ],
    385385            'barcode_format'                     => [
    386                 'title'   => __('Barcode format', 'cdekdelivery'),
     386                'title'   => esc_html__('Barcode format', 'cdekdelivery'),
    387387                'type'    => 'select',
    388388                'options' => BarcodeFormat::getAll(),
Note: See TracChangeset for help on using the changeset viewer.