Skip to content

Commit 3edf994

Browse files
committed
Issue #4 Fix import with PhpSpreadsheet
1 parent 47aabbc commit 3edf994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExcelMessageController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ public function actionImport($configFile, $excelDir, $extension = 'xlsx', $type
172172
}
173173
$sheet = $excel->getSheetByName($category);
174174
$row = 2;
175-
while (($source = $sheet->getCellByColumnAndRow(0, $row)->getValue()) !== null) {
176-
$translation = (string)$sheet->getCellByColumnAndRow(1, $row)->getValue();
175+
while (($source = $sheet->getCellByColumnAndRow(1, $row)->getValue()) !== null) {
176+
$translation = (string)$sheet->getCellByColumnAndRow(2, $row)->getValue();
177177
if (trim($translation) !== '') {
178178
if (!isset($messages[$language])) {
179179
$messages[$language] = [];

0 commit comments

Comments
 (0)