1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 10:45:54 +02:00

Fix issue where files listed in ProcessLanguageTranslator were unsorted

This commit is contained in:
Ryan Cramer
2023-07-07 15:00:58 -04:00
parent 47437ced0d
commit 44e5a29e0c

View File

@@ -288,6 +288,7 @@ class ProcessLanguageTranslator extends Process implements ConfigurableModule {
$untranslated => array(),
);
$maxLength = 0;
sort($value);
foreach($value as $file) {
$textdomain = $this->translator->filenameToTextdomain($file);
$label = substr($file, 5);