Skip to content

Commit

Permalink
Issue #4 Fix import with PhpSpreadsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehaertl committed Apr 25, 2018
1 parent 47aabbc commit 3edf994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExcelMessageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [];
Expand Down

0 comments on commit 3edf994

Please sign in to comment.