From 2ebbcca5464cbd26d6c1e3ea6b1e652d304c031a Mon Sep 17 00:00:00 2001 From: Leo Toikka Date: Fri, 19 Jul 2019 09:25:36 +0300 Subject: [PATCH] Sort translation files by name to ensure same order on all systems Closes: wp-cli/i18n-command#171. --- src/IterableCodeExtractor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/IterableCodeExtractor.php b/src/IterableCodeExtractor.php index a0e9b148..74e7d979 100644 --- a/src/IterableCodeExtractor.php +++ b/src/IterableCodeExtractor.php @@ -85,6 +85,7 @@ public static function fromDirectory( $dir, Translations $translations, array $o $files = static::getFilesFromDirectory( $dir, $include, $exclude, $options['extensions'] ); if ( ! empty( $files ) ) { + sort( $files ); static::fromFile( $files, $translations, $options ); }