Opened 7 years ago
Closed 7 years ago
#42142 closed defect (bug) (fixed)
Translatable strings in wp-db.php should use numbered arguments
Reported by: | tobifjellner | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Database | Keywords: | has-patch |
Focuses: | Cc: |
Description
/wp-includes/wp-db.php :1294
sprintf( __( 'The query does not contain the correct number of placeholders (%d) for the number of arguments passed (%d).' ),
In order to allow translators to make the best possible translation, numbered placeholders should be used:
sprintf( __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2%d).' ),
Attachments (2)
Change History (10)
#1
in reply to:
↑ description
@
7 years ago
#2
@
7 years ago
- Summary changed from Use of numbered arguments needed in wp-db.php to Translatable strings in wp-db.php should use numbered arguments
#4
@
7 years ago
- Owner set to swissspidy
- Resolution set to fixed
- Status changed from new to closed
In 41789:
Note: See
TracTickets for help on using
tickets.
Ouch. %1$d and %2$d is probably better. :)
Replying to tobifjellner: