mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Translation for popup [skip ci]
This commit is contained in:
parent
53760766a0
commit
ce5304277d
@ -336,13 +336,15 @@ class BudgetController extends Controller
|
||||
$range = Preferences::get('viewRange', '1M')->data;
|
||||
|
||||
/** @var Carbon $date */
|
||||
$date = session('start', new Carbon);
|
||||
$start = Navigation::startOfPeriod($date, $range);
|
||||
$end = Navigation::endOfPeriod($start, $range);
|
||||
$key = 'budgetIncomeTotal' . $start->format('Ymd') . $end->format('Ymd');
|
||||
$amount = Preferences::get($key, 1000);
|
||||
$date = session('start', new Carbon);
|
||||
$start = Navigation::startOfPeriod($date, $range);
|
||||
$end = Navigation::endOfPeriod($start, $range);
|
||||
$key = 'budgetIncomeTotal' . $start->format('Ymd') . $end->format('Ymd');
|
||||
$amount = Preferences::get($key, 1000);
|
||||
$displayStart = Navigation::periodShow($start, $range);
|
||||
$displayEnd = Navigation::periodShow($end, $range);
|
||||
|
||||
return view('budgets.income', compact('amount'));
|
||||
return view('budgets.income', compact('amount', 'displayStart', 'displayEnd'));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -471,6 +471,7 @@ return [
|
||||
'updated_budget' => 'Updated budget ":name"',
|
||||
'update_amount' => 'Update amount',
|
||||
'update_budget' => 'Update budget',
|
||||
'update_budget_amount_range' => 'Update (expected) available amount between :start and :end',
|
||||
|
||||
// bills:
|
||||
'matching_on' => 'Matching on',
|
||||
|
@ -3,7 +3,9 @@
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Update (expected) available amount for {{ Session.get('start').format('F Y') }}</h4>
|
||||
<h4 class="modal-title" id="myModalLabel">
|
||||
{{ trans('firefly.update_budget_amount_range', {start: displayStart, end: displayEnd}) }}
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<form style="display: inline;" id="income" action="{{ route('budgets.postIncome') }}" method="POST">
|
||||
|
Loading…
Reference in New Issue
Block a user