Improved Locales (#5497)
- Switch Chinese time format to 24-hours - fixes #5496 - Use always 4 chars for year - Use one `HH` instead of `H`, so we don't have to convert during runtime - Update all locales - Allow seeing time and date format in help UI - Fix RTL in UI - Show stats about found formats in Locales command
This commit is contained in:
@@ -32,6 +32,8 @@ final class HelpController extends AbstractController
|
||||
$table = new DataTable('help_locales', new BaseQuery());
|
||||
$table->addColumn('name', ['class' => 'alwaysVisible', 'orderBy' => false]);
|
||||
$table->addColumn('description', ['class' => 'd-none', 'orderBy' => false]);
|
||||
$table->addColumn('date_format', ['class' => 'd-none w-min', 'orderBy' => false, 'title' => 'Date format']);
|
||||
$table->addColumn('time_format', ['class' => 'd-none w-min', 'orderBy' => false, 'title' => 'Time format']);
|
||||
$table->addColumn('language', ['class' => 'd-none w-min', 'orderBy' => false]);
|
||||
$table->addColumn('date', ['class' => 'alwaysVisible w-min', 'orderBy' => false]);
|
||||
$table->addColumn('time', ['class' => 'alwaysVisible w-min text-center', 'orderBy' => false]);
|
||||
@@ -73,6 +75,8 @@ final class HelpController extends AbstractController
|
||||
'language' => $locale,
|
||||
'name' => Locales::getName($locale, $locale),
|
||||
'description' => Locales::getName($locale, $requestLocale),
|
||||
'time_format' => $service->getTimeFormat($locale),
|
||||
'date_format' => $service->getDateFormat($locale),
|
||||
'date' => $formatter->dateShort($now),
|
||||
'time' => $formatter->time($now),
|
||||
'duration' => $formatter->duration(46120),
|
||||
|
||||
Reference in New Issue
Block a user