1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 11:14:12 +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(), $untranslated => array(),
); );
$maxLength = 0; $maxLength = 0;
sort($value);
foreach($value as $file) { foreach($value as $file) {
$textdomain = $this->translator->filenameToTextdomain($file); $textdomain = $this->translator->filenameToTextdomain($file);
$label = substr($file, 5); $label = substr($file, 5);