PluginProbe
Packeta / 1.6.4
Packeta v1.6.4
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Module / Order / ValidatorTranslations.php

ValidatorTranslations.php in Packeta 1.6.4, at src/Packetery/Module/Order/ValidatorTranslations.php

41 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class ValidatorTranslations.
4 *
5 * @package Packetery
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Module\Order;
11
12 use Packetery\Core\Validator;
13
14 /**
15 * Class ValidatorTranslations.
16 *
17 * @package Packetery
18 */
19 class ValidatorTranslations {
20
21 /**
22 * Translations with specified keys.
23 *
24 * @return array
25 */
26 public function get(): array {
27 return [
28 Validator\Order::ERROR_TRANSLATION_KEY_NUMBER => __( 'Order number is not set.', 'packeta' ),
29 Validator\Order::ERROR_TRANSLATION_KEY_NAME => __( 'Customer name is not set.', 'packeta' ),
30 Validator\Order::ERROR_TRANSLATION_KEY_VALUE => __( 'Order value is not set.', 'packeta' ),
31 Validator\Order::ERROR_TRANSLATION_KEY_PICKUP_POINT_OR_CARRIER_ID => __( 'Pickup point or carrier id is not set.', 'packeta' ),
32 Validator\Order::ERROR_TRANSLATION_KEY_ESHOP => __( 'Sender label is not set.', 'packeta' ),
33 Validator\Order::ERROR_TRANSLATION_KEY_WEIGHT => __( 'Weight is not set or is zero.', 'packeta' ),
34 Validator\Order::ERROR_TRANSLATION_KEY_ADDRESS => __( 'Address is not set or is incomplete.', 'packeta' ),
35 Validator\Order::ERROR_TRANSLATION_KEY_SIZE => __( 'Order dimensions are not set.', 'packeta' ),
36 Validator\Order::ERROR_TRANSLATION_KEY_CUSTOMS_DECLARATION => __( 'Customs declaration is not set.', 'packeta' ),
37 ];
38 }
39
40 }
41