mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Cast all translations to strings.
This commit is contained in:
@@ -500,7 +500,7 @@ class AccountController extends Controller
|
||||
$return[$budgetId] = $grouped[$budgetId][0]['name'];
|
||||
}
|
||||
}
|
||||
$return[0] = trans('firefly.no_budget');
|
||||
$return[0] = (string)trans('firefly.no_budget');
|
||||
|
||||
return $return;
|
||||
}
|
||||
@@ -524,7 +524,7 @@ class AccountController extends Controller
|
||||
$return[$categoryId] = $grouped[$categoryId][0]['name'];
|
||||
}
|
||||
}
|
||||
$return[0] = trans('firefly.noCategory');
|
||||
$return[0] = (string)trans('firefly.noCategory');
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
@@ -106,9 +106,9 @@ class BillController extends Controller
|
||||
}
|
||||
);
|
||||
$chartData = [
|
||||
['type' => 'bar', 'label' => trans('firefly.min-amount'), 'entries' => []],
|
||||
['type' => 'bar', 'label' => trans('firefly.max-amount'), 'entries' => []],
|
||||
['type' => 'line', 'label' => trans('firefly.journal-amount'), 'entries' => []],
|
||||
['type' => 'bar', 'label' => (string)trans('firefly.min-amount'), 'entries' => []],
|
||||
['type' => 'bar', 'label' => (string)trans('firefly.max-amount'), 'entries' => []],
|
||||
['type' => 'line', 'label' => (string)trans('firefly.journal-amount'), 'entries' => []],
|
||||
];
|
||||
|
||||
/** @var Transaction $entry */
|
||||
|
@@ -510,7 +510,7 @@ class BudgetController extends Controller
|
||||
$return[$categoryId] = $grouped[$categoryId][0]['name'];
|
||||
}
|
||||
}
|
||||
$return[0] = trans('firefly.noCategory');
|
||||
$return[0] = (string)trans('firefly.noCategory');
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
@@ -111,13 +111,13 @@ class ReportController extends Controller
|
||||
$source = $this->getChartData($accounts, $start, $end);
|
||||
$chartData = [
|
||||
[
|
||||
'label' => trans('firefly.income'),
|
||||
'label' => (string)trans('firefly.income'),
|
||||
'type' => 'bar',
|
||||
'backgroundColor' => 'rgba(0, 141, 76, 0.5)', // green
|
||||
'entries' => [],
|
||||
],
|
||||
[
|
||||
'label' => trans('firefly.expenses'),
|
||||
'label' => (string)trans('firefly.expenses'),
|
||||
'type' => 'bar',
|
||||
'backgroundColor' => 'rgba(219, 68, 55, 0.5)', // red
|
||||
'entries' => [],
|
||||
@@ -199,7 +199,7 @@ class ReportController extends Controller
|
||||
],
|
||||
],
|
||||
[
|
||||
'label' => trans('firefly.expenses'),
|
||||
'label' => (string)trans('firefly.expenses'),
|
||||
'type' => 'bar',
|
||||
'backgroundColor' => 'rgba(219, 68, 55, 0.5)', // red
|
||||
'entries' => [
|
||||
|
Reference in New Issue
Block a user