fix lang import sorting

This commit is contained in:
Dennis Eichhorn 2021-02-12 18:37:23 +01:00
parent 9bf76ad8d8
commit 861d43edfb
3 changed files with 48 additions and 32 deletions

View File

@ -182,6 +182,8 @@ final class Importer extends ImporterAbstract
. "return ['" . $module . "' => [\n"
);
\ksort($keys);
foreach ($keys as $key => $values) {
\fwrite($fp,
" '" . $key . "'" . \str_repeat(' ', $keyLengths[$module][$theme] - \strlen($key)) . " => '" . ($values[$language] ?? '') . "',\n"

View File

@ -12,20 +12,27 @@
declare(strict_types=1);
return ['Exchange' => [
'Database' => 'Datenbank',
'End' => 'Ende',
'Exchange' => 'Exchange',
'Export' => 'Export',
'Exports' => 'Exporte',
'File' => 'Dateien',
'Host' => 'Host',
'Import' => 'Import',
'Imports' => 'Importe',
'Login' => 'Login',
'Options' => 'Optionen',
'Password' => 'Passwort',
'Port' => 'Port',
'Start' => 'Start',
'Title' => 'Titel',
'Website' => 'Webseite',
'Created' => '',
'CreatedAt' => '',
'CreatedBy' => '',
'Creator' => '',
'Database' => 'Datenbank',
'End' => 'Ende',
'Exchange' => 'Exchange',
'Export' => 'Export',
'Exports' => 'Exporte',
'File' => 'Dateien',
'Host' => 'Host',
'Import' => 'Import',
'Imports' => 'Importe',
'Login' => 'Login',
'Logs' => '',
'Options' => 'Optionen',
'Password' => 'Passwort',
'Port' => 'Port',
'Start' => 'Start',
'Subtype' => '',
'Title' => 'Titel',
'Type' => '',
'Website' => 'Webseite',
]];

View File

@ -12,20 +12,27 @@
declare(strict_types=1);
return ['Exchange' => [
'Database' => 'Database',
'End' => 'End',
'Exchange' => 'Exchange',
'Export' => 'Export',
'Exports' => 'Exports',
'File' => 'File',
'Host' => 'Host',
'Import' => 'Import',
'Imports' => 'Imports',
'Login' => 'Login',
'Options' => 'Options',
'Password' => 'Password',
'Port' => 'Port',
'Start' => 'Start',
'Title' => 'Title',
'Website' => 'Website',
'Created' => '',
'CreatedAt' => '',
'CreatedBy' => '',
'Creator' => '',
'Database' => 'Database',
'End' => 'End',
'Exchange' => 'Exchange',
'Export' => 'Export',
'Exports' => 'Exports',
'File' => 'File',
'Host' => 'Host',
'Import' => 'Import',
'Imports' => 'Imports',
'Login' => 'Login',
'Logs' => '',
'Options' => 'Options',
'Password' => 'Password',
'Port' => 'Port',
'Start' => 'Start',
'Subtype' => '',
'Title' => 'Title',
'Type' => '',
'Website' => 'Website',
]];