From 3edf99487303f1d820f806dc9fa835e1837ec48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4rtl?= Date: Wed, 25 Apr 2018 12:39:42 +0200 Subject: [PATCH] Issue #4 Fix import with PhpSpreadsheet --- ExcelMessageController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExcelMessageController.php b/ExcelMessageController.php index 2f89431..83360f6 100644 --- a/ExcelMessageController.php +++ b/ExcelMessageController.php @@ -172,8 +172,8 @@ public function actionImport($configFile, $excelDir, $extension = 'xlsx', $type } $sheet = $excel->getSheetByName($category); $row = 2; - while (($source = $sheet->getCellByColumnAndRow(0, $row)->getValue()) !== null) { - $translation = (string)$sheet->getCellByColumnAndRow(1, $row)->getValue(); + while (($source = $sheet->getCellByColumnAndRow(1, $row)->getValue()) !== null) { + $translation = (string)$sheet->getCellByColumnAndRow(2, $row)->getValue(); if (trim($translation) !== '') { if (!isset($messages[$language])) { $messages[$language] = [];