diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:57:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:57:26 +0000 |
commit | 30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 (patch) | |
tree | 39a02e2aeb21ab5b7923c6f5757d66d55b708912 /wp-includes/pomo/po.php | |
parent | Adding upstream version 6.4.3+dfsg1. (diff) | |
download | wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.tar.xz wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.zip |
Adding upstream version 6.5+dfsg1.upstream/6.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/pomo/po.php')
-rw-r--r-- | wp-includes/pomo/po.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-includes/pomo/po.php b/wp-includes/pomo/po.php index 7b9ec0b..a4e3cab 100644 --- a/wp-includes/pomo/po.php +++ b/wp-includes/pomo/po.php @@ -53,7 +53,7 @@ if ( ! class_exists( 'PO', false ) ) : /** * Exports all entries to PO format * - * @return string sequence of mgsgid/msgstr PO strings, doesn't containt newline at the end + * @return string sequence of msgid/msgstr PO strings, doesn't contain a newline at the end */ public function export_entries() { // TODO: Sorting. @@ -64,7 +64,7 @@ if ( ! class_exists( 'PO', false ) ) : * Exports the whole PO file as a string * * @param bool $include_headers whether to include the headers in the export - * @return string ready for inclusion in PO file string for headers and all the enrtries + * @return string ready for inclusion in PO file string for headers and all the entries */ public function export( $include_headers = true ) { $res = ''; @@ -127,7 +127,7 @@ if ( ! class_exists( 'PO', false ) ) : $input_string = str_replace( array_keys( $replaces ), array_values( $replaces ), $input_string ); $po = $quote . implode( "{$slash}n{$quote}{$newline}{$quote}", explode( $newline, $input_string ) ) . $quote; - // Add empty string on first line for readbility. + // Add empty string on first line for readability. if ( str_contains( $input_string, $newline ) && ( substr_count( $input_string, $newline ) > 1 || substr( $input_string, -strlen( $newline ) ) !== $newline ) ) { $po = "$quote$quote$newline$po"; @@ -141,7 +141,7 @@ if ( ! class_exists( 'PO', false ) ) : * Gives back the original string from a PO-formatted string * * @param string $input_string PO-formatted string - * @return string enascaped string + * @return string unescaped string */ public static function unpoify( $input_string ) { $escapes = array( |