Changeset 57356 for trunk/src/wp-includes/pomo/po.php
- Timestamp:
- 01/25/2024 05:06:45 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/po.php
r56549 r57356 54 54 * Exports all entries to PO format 55 55 * 56 * @return string sequence of m gsgid/msgstr PO strings, doesn't containtnewline at the end56 * @return string sequence of msgid/msgstr PO strings, doesn't contain a newline at the end 57 57 */ 58 58 public function export_entries() { … … 65 65 * 66 66 * @param bool $include_headers whether to include the headers in the export 67 * @return string ready for inclusion in PO file string for headers and all the en rtries67 * @return string ready for inclusion in PO file string for headers and all the entries 68 68 */ 69 69 public function export( $include_headers = true ) { … … 128 128 129 129 $po = $quote . implode( "{$slash}n{$quote}{$newline}{$quote}", explode( $newline, $input_string ) ) . $quote; 130 // Add empty string on first line for read bility.130 // Add empty string on first line for readability. 131 131 if ( str_contains( $input_string, $newline ) && 132 132 ( substr_count( $input_string, $newline ) > 1 || substr( $input_string, -strlen( $newline ) ) !== $newline ) ) { … … 142 142 * 143 143 * @param string $input_string PO-formatted string 144 * @return string enascaped string144 * @return string unescaped string 145 145 */ 146 146 public static function unpoify( $input_string ) {
Note: See TracChangeset
for help on using the changeset viewer.