From 675839fd988b4e357721391458e3b237455da556 Mon Sep 17 00:00:00 2001 From: krokodok Date: Fri, 16 Feb 2024 15:14:57 +0100 Subject: [PATCH] =?UTF-8?q?Restore=20usage=20of=20=E2=80=9Aphp=E2=80=98=20?= =?UTF-8?q?key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/Export.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/Export.php b/inc/Export.php index 26be0a1..4768549 100644 --- a/inc/Export.php +++ b/inc/Export.php @@ -81,9 +81,9 @@ public function export_strings(): ?array { // Build a mapping based on where the translation entries occur and separate the po entries. $mapping = $this->map_entries_to_source( $entries ); - $php_entries = \array_key_exists( 'po', $mapping ) ? $mapping['po'] : []; + $php_entries = \array_key_exists( 'php', $mapping ) ? $mapping['php'] : []; - unset( $mapping['po'] ); + unset( $mapping['php'] ); $this->build_json_files( $mapping ); $this->build_po_file( $php_entries ); @@ -162,14 +162,14 @@ function ( $reference ) { if ( substr( $file, -3 ) === '.js' ) { return $file; } - return 'po'; + return 'php'; }, $entry->references ); $sources = array_unique( $sources ); } else { - $sources = [ 'po' ]; + $sources = [ 'php' ]; } foreach ( $sources as $source ) {