PluginProbe
Packeta / trunk
Packeta vtrunk
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 trunk, at src/Packetery/Module/Order/ValidatorTranslations.php

42 lines 1.6 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\Interfaces\ValidatorTranslationsInterface;
13 use Packetery\Core\Validator;
14
15 /**
16 * Class ValidatorTranslations.
17 *
18 * @package Packetery
19 */
20 class ValidatorTranslations implements ValidatorTranslationsInterface {
21 /**
22 * Translations with specified keys.
23 *
24 * @return array<string, string>
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_HEIGHT => __( 'Order height is not set.', 'packeta' ),
36 Validator\Order::ERROR_TRANSLATION_KEY_LENGTH => __( 'Order length is not set.', 'packeta' ),
37 Validator\Order::ERROR_TRANSLATION_KEY_WIDTH => __( 'Order width is not set.', 'packeta' ),
38 Validator\Order::ERROR_TRANSLATION_KEY_CUSTOMS_DECLARATION => __( 'Customs declaration is not set.', 'packeta' ),
39 ];
40 }
41 }
42