Changeset 57513 for trunk/src/wp-includes/l10n/class-wp-translations.php
- Timestamp:
- 02/01/2024 11:43:21 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n/class-wp-translations.php
r57344 r57513 96 96 } 97 97 98 // Look for plural original. 99 $parts = explode( "\0", $original ); 100 $entry->singular = $parts[0]; 101 if ( isset( $parts[1] ) ) { 102 $entry->is_plural = true; 103 $entry->plural = $parts[1]; 104 } 98 $entry->singular = $original; 99 $entry->translations = explode( "\0", $translations ); 100 $entry->is_plural = count( $entry->translations ) > 1; 105 101 106 $entry->translations = explode( "\0", $translations );107 102 return $entry; 108 103 }
Note: See TracChangeset
for help on using the changeset viewer.