mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove locale if using Docker.
This commit is contained in:
parent
cb65999124
commit
d774b4e2e3
@ -67,7 +67,8 @@ class PreferencesController extends Controller
|
|||||||
public function index(AccountRepositoryInterface $repository)
|
public function index(AccountRepositoryInterface $repository)
|
||||||
{
|
{
|
||||||
$accounts = $repository->getAccountsByType([AccountType::DEFAULT, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE]);
|
$accounts = $repository->getAccountsByType([AccountType::DEFAULT, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE]);
|
||||||
|
$isDocker = env('IS_DOCKER', false);
|
||||||
|
|
||||||
// group accounts
|
// group accounts
|
||||||
$groupedAccounts = [];
|
$groupedAccounts = [];
|
||||||
/** @var Account $account */
|
/** @var Account $account */
|
||||||
@ -122,6 +123,7 @@ class PreferencesController extends Controller
|
|||||||
compact(
|
compact(
|
||||||
'language',
|
'language',
|
||||||
'groupedAccounts',
|
'groupedAccounts',
|
||||||
|
'isDocker',
|
||||||
'frontPageAccounts',
|
'frontPageAccounts',
|
||||||
'languages',
|
'languages',
|
||||||
'locales',
|
'locales',
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# locale #}
|
{# locale #}
|
||||||
|
{% if not isDocker %}
|
||||||
<div class="preferences-box">
|
<div class="preferences-box">
|
||||||
<h3>{{ 'pref_locale'|_ }}</h3>
|
<h3>{{ 'pref_locale'|_ }}</h3>
|
||||||
<p class="text-info">{{ 'pref_locale_help'|_ }}</p>
|
<p class="text-info">{{ 'pref_locale_help'|_ }}</p>
|
||||||
@ -75,6 +76,9 @@
|
|||||||
<li>{{ 'pref_locale_no_docker'|_ }}</li>
|
<li>{{ 'pref_locale_no_docker'|_ }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<input type="hidden" name="locale" value="equal" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# fiscal year #}
|
{# fiscal year #}
|
||||||
<div class="preferences-box">
|
<div class="preferences-box">
|
||||||
|
Loading…
Reference in New Issue
Block a user