- 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-translation-file-mo.php
r57337 r57513 162 162 } 163 163 } else { 164 $this->entries[ (string) $original ] = $translation; 164 /* 165 * In MO files, the key normally contains both singular and plural versions. 166 * However, this just adds the singular string for lookup, 167 * which caters for cases where both __( 'Product' ) and _n( 'Product', 'Products' ) 168 * are used and the translation is expected to be the same for both. 169 */ 170 $parts = explode( "\0", (string) $original ); 171 172 $this->entries[ $parts[0] ] = $translation; 165 173 } 166 174 }
Note: See TracChangeset
for help on using the changeset viewer.