Skip to content

Commit ff2ea44

Browse files
committed
translations
1 parent 3b2b998 commit ff2ea44

File tree

24 files changed

+154
-7
lines changed

24 files changed

+154
-7
lines changed

app/base/abstracts/Controllers/AdminManageModelsPage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ protected function collectActionButtons() : self
173173
}
174174
}
175175

176-
if (!in_array(($this->template_data['action'] ?? 'list'), ['list', 'duplicate', 'delete',])) {
176+
if (!in_array(($this->template_data['action'] ?? 'list'), ['list', 'duplicate', 'delete'])) {
177177
$this->addBackButton();
178-
if (($this->template_data['action'] ?? 'list') != 'new') { // no need to remove something that is not there
178+
if (!in_array(($this->template_data['action'] ?? 'list'), ['new', 'view'])) { // no need to remove something that is not there
179179
$this->addRemoveButton();
180180
}
181181
}

app/base/controllers/Admin/Commerce/OrderShipments.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ protected function renderShipmentInfo(OrderShipmentModel $orderShipment) : strin
430430
'<ul class="list-group"><li class="list-group-item">'.implode('</li><li class="list-group-item">', array_map(
431431
function ($historyItem) {
432432
$data = [
433-
'latitude' => $historyItem->getLatitude(),
434-
'longitude' => $historyItem->getLongitude(),
435-
'when' => $historyItem->getCreatedAt()
433+
$this->getUtils()->translate('latitude') => $historyItem->getLatitude(),
434+
$this->getUtils()->translate('longitude') => $historyItem->getLongitude(),
435+
$this->getUtils()->translate('when') => $historyItem->getCreatedAt()
436436
];
437437

438438
return $this->getHtmlRenderer()->renderArrayOnTable($data);

app/base/tools/Utils/HtmlPartsRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ public function renderArrayOnTable(array $data, bool $nowrap = true): mixed
14421442
TagElement::class,
14431443
['options' => [
14441444
'tag' => 'th',
1445-
'text' => $th,
1445+
'text' => App::getInstance()->getUtils()->translate($th),
14461446
'scope' => 'col',
14471447
'attributes' => ($nowrap == true) ? ['class' => 'nowrap'] : [],
14481448
]]

translations/ar.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,4 +417,11 @@
417417
"Product Class" => "فئة المنتج",
418418
"Product Id" => "معرف المنتج",
419419
"Gift Cards" => "بطاقات الهدايا",
420+
'Shipment %s for order %s' => 'شحنة %s للطلب %s',
421+
'Position History' => 'تاريخ الموقع',
422+
'Field Name' => 'اسم الحقل',
423+
'Field Value' => 'قيمة الحقل',
424+
'latitude' => 'خط العرض',
425+
'longitude' => 'خط الطول',
426+
'when' => 'متى',
420427
];

translations/bn.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,4 +444,11 @@
444444
"Product Class" => "পণ্যের শ্রেণি",
445445
"Product Id" => "পণ্য আইডি",
446446
"Gift Cards" => "উপহার কার্ড",
447+
'Shipment %s for order %s' => 'অর্ডার %s এর জন্য চালান %s',
448+
'Position History' => 'অবস্থান ইতিহাস',
449+
'Field Name' => 'ক্ষেত্রের নাম',
450+
'Field Value' => 'ক্ষেত্রের মান',
451+
'latitude' => 'অক্ষাংশ',
452+
'longitude' => 'দ্রাঘিমাংশ',
453+
'when' => 'কখন',
447454
];

translations/de.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,11 @@
442442
"Product Class" => "Produktklasse",
443443
"Product Id" => "Produkt-ID",
444444
"Gift Cards" => "Geschenkkarten",
445+
'Shipment %s for order %s' => 'Sendung %s für Bestellung %s',
446+
'Position History' => 'Positionsverlauf',
447+
'Field Name' => 'Feldname',
448+
'Field Value' => 'Feldwert',
449+
'latitude' => 'Breitengrad',
450+
'longitude' => 'Längengrad',
451+
'when' => 'wann',
445452
];

translations/el.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,11 @@
442442
"Product Class" => "Κατηγορία προϊόντος",
443443
"Product Id" => "Κωδικός προϊόντος",
444444
"Gift Cards" => "Κάρτες δώρων",
445+
'Shipment %s for order %s' => 'Αποστολή %s για την παραγγελία %s',
446+
'Position History' => 'Ιστορικό θέσης',
447+
'Field Name' => 'Όνομα πεδίου',
448+
'Field Value' => 'Τιμή πεδίου',
449+
'latitude' => 'γεωγραφικό πλάτος',
450+
'longitude' => 'γεωγραφικό μήκος',
451+
'when' => 'πότε',
445452
];

translations/en.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,11 @@
442442
"Product Class" => "Product Class",
443443
"Product Id" => "Product Id",
444444
"Gift Cards" => "Gift Cards",
445+
'Shipment %s for order %s' => 'Shipment %s for order %s',
446+
'Position History' => 'Position History',
447+
'Field Name' => 'Field Name',
448+
'Field Value' => 'Field Value',
449+
'latitude' => 'latitude',
450+
'longitude' => 'longitude',
451+
'when' => 'when',
445452
];

translations/es.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,11 @@
442442
"Product Class" => "Clase de producto",
443443
"Product Id" => "ID de producto",
444444
"Gift Cards" => "Tarjetas de regalo",
445+
'Shipment %s for order %s' => 'Envío %s para la orden %s',
446+
'Position History' => 'Historial de posición',
447+
'Field Name' => 'Nombre del campo',
448+
'Field Value' => 'Valor del campo',
449+
'latitude' => 'latitud',
450+
'longitude' => 'longitud',
451+
'when' => 'cuándo',
445452
];

translations/fr.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,11 @@
442442
"Product Class" => "Classe de produit",
443443
"Product Id" => "ID produit",
444444
"Gift Cards" => "Cartes cadeau",
445+
'Shipment %s for order %s' => 'Expédition %s pour la commande %s',
446+
'Position History' => 'Historique des positions',
447+
'Field Name' => 'Nom du champ',
448+
'Field Value' => 'Valeur du champ',
449+
'latitude' => 'latitude',
450+
'longitude' => 'longitude',
451+
'when' => 'quand',
445452
];

0 commit comments

Comments
 (0)