mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 07:53:16 +00:00
Use translations instead of hard config. [skip ci]
This commit is contained in:
@@ -165,21 +165,21 @@ class Navigation
|
|||||||
public function periodShow(Carbon $date, string $repeatFrequency)
|
public function periodShow(Carbon $date, string $repeatFrequency)
|
||||||
{
|
{
|
||||||
$formatMap = [
|
$formatMap = [
|
||||||
'1D' => '%e %B %Y',
|
'1D' => trans('config.specific_day'),
|
||||||
'daily' => '%e %B %Y',
|
'daily' => trans('config.specific_day'),
|
||||||
'custom' => '%e %B %Y',
|
'custom' => trans('config.specific_day'),
|
||||||
'1W' => 'Week %W, %Y',
|
'1W' => trans('config.week_in_year'),
|
||||||
'week' => 'Week %W, %Y',
|
'week' => trans('config.week_in_year'),
|
||||||
'weekly' => 'Week %W, %Y',
|
'weekly' => trans('config.week_in_year'),
|
||||||
'3M' => '%B %Y',
|
'3M' => trans('config.quarter_of_year'),
|
||||||
'quarter' => '%B %Y',
|
'quarter' => trans('config.quarter_of_year'),
|
||||||
'1M' => '%B %Y',
|
'1M' => trans('config.month'),
|
||||||
'month' => '%B %Y',
|
'month' => trans('config.month'),
|
||||||
'monthly' => '%B %Y',
|
'monthly' => trans('config.month'),
|
||||||
'1Y' => '%Y',
|
'1Y' => trans('config.year'),
|
||||||
'year' => '%Y',
|
'year' => trans('config.year'),
|
||||||
'yearly' => '%Y',
|
'yearly' => trans('config.year'),
|
||||||
'6M' => '%B %Y',
|
'6M' => trans('config.half_year'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'locale' => 'en, English, en_US, en_US.utf8',
|
'locale' => 'en, English, en_US, en_US.utf8',
|
||||||
'month' => '%B %Y',
|
'month' => '%B %Y',
|
||||||
'month_and_day' => '%B %e, %Y',
|
'month_and_day' => '%B %e, %Y',
|
||||||
|
'specific_day' => '%e %B %Y',
|
||||||
|
'week_in_year' => 'Week %W, %Y',
|
||||||
|
'quarter_of_year' => '%B %Y',
|
||||||
|
'year' => '%Y',
|
||||||
|
'half_year' => '%B %Y',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user