Changeset 45932 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r45926 r45932 1105 1105 1106 1106 $message .= '<p>' . sprintf( 1107 /* translators: %s: database name*/1107 /* translators: %s: Database name. */ 1108 1108 __( 'We were able to connect to the database server (which means your username and password is okay) but not able to select the %s database.' ), 1109 1109 '<code>' . htmlspecialchars( $db, ENT_QUOTES ) . '</code>' … … 1114 1114 1115 1115 $message .= '<li>' . sprintf( 1116 /* translators: 1: database user, 2: database name*/1116 /* translators: 1: Database user, 2: Database name. */ 1117 1117 __( 'Does the user %1$s have permission to use the %2$s database?' ), 1118 1118 '<code>' . htmlspecialchars( $this->dbuser, ENT_QUOTES ) . '</code>', … … 1121 1121 1122 1122 $message .= '<li>' . sprintf( 1123 /* translators: %s: database name*/1123 /* translators: %s: Database name. */ 1124 1124 __( 'On some systems the name of your database is prefixed with your username, so it would be like <code>username_%1$s</code>. Could that be the problem?' ), 1125 1125 htmlspecialchars( $db, ENT_QUOTES ) … … 1129 1129 1130 1130 $message .= '<p>' . sprintf( 1131 /* translators: %s: support forums URL*/1131 /* translators: %s: Support forums URL. */ 1132 1132 __( 'If you don’t know how to set up a database you should <strong>contact your host</strong>. If all else fails you may find help at the <a href="%s">WordPress Support Forums</a>.' ), 1133 1133 __( 'https://wordpress.org/support/forums/' ) … … 1179 1179 $class = get_class( $this ); 1180 1180 if ( function_exists( '__' ) ) { 1181 /* translators: %s: database access abstraction class, usually wpdb or a class extending wpdb*/1181 /* translators: %s: Database access abstraction class, usually wpdb or a class extending wpdb. */ 1182 1182 _doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), '3.6.0' ); 1183 1183 } else { … … 1332 1332 'wpdb::prepare', 1333 1333 sprintf( 1334 /* translators: %s: value type*/1334 /* translators: %s: Value type. */ 1335 1335 __( 'Unsupported value type (%s).' ), 1336 1336 gettype( $arg ) … … 1390 1390 'wpdb::prepare', 1391 1391 sprintf( 1392 /* translators: 1: number of placeholders, 2: number of arguments passed*/1392 /* translators: 1: Number of placeholders, 2: Number of arguments passed. */ 1393 1393 __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2$d).' ), 1394 1394 $placeholders, … … 1465 1465 $caller = $this->get_caller(); 1466 1466 if ( $caller ) { 1467 /* translators: 1: Database error message, 2: SQL query, 3: Name of the calling function */1467 /* translators: 1: Database error message, 2: SQL query, 3: Name of the calling function. */ 1468 1468 $error_str = sprintf( __( 'WordPress database error %1$s for query %2$s made by %3$s' ), $str, $this->last_query, $caller ); 1469 1469 } else { 1470 /* translators: 1: Database error message, 2: SQL query */1470 /* translators: 1: Database error message, 2: SQL query. */ 1471 1471 $error_str = sprintf( __( 'WordPress database error %1$s for query %2$s' ), $str, $this->last_query ); 1472 1472 } … … 1688 1688 1689 1689 $message .= '<p>' . sprintf( 1690 /* translators: 1: wp-config.php, 2: database host*/1690 /* translators: 1: wp-config.php, 2: Database host. */ 1691 1691 __( 'This either means that the username and password information in your %1$s file is incorrect or we can’t contact the database server at %2$s. This could mean your host’s database server is down.' ), 1692 1692 '<code>wp-config.php</code>', … … 1701 1701 1702 1702 $message .= '<p>' . sprintf( 1703 /* translators: %s: support forums URL*/1703 /* translators: %s: Support forums URL. */ 1704 1704 __( 'If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="%s">WordPress Support Forums</a>.' ), 1705 1705 __( 'https://wordpress.org/support/forums/' ) … … 1848 1848 1849 1849 $message .= '<p>' . sprintf( 1850 /* translators: %s: database host*/1850 /* translators: %s: Database host. */ 1851 1851 __( 'This means that we lost contact with the database server at %s. This could mean your host’s database server is down.' ), 1852 1852 '<code>' . htmlspecialchars( $this->dbhost, ENT_QUOTES ) . '</code>' … … 1859 1859 1860 1860 $message .= '<p>' . sprintf( 1861 /* translators: %s: support forums URL*/1861 /* translators: %s: Support forums URL. */ 1862 1862 __( 'If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="%s">WordPress Support Forums</a>.' ), 1863 1863 __( 'https://wordpress.org/support/forums/' ) … … 3507 3507 // Make sure the server has the required MySQL version 3508 3508 if ( version_compare( $this->db_version(), $required_mysql_version, '<' ) ) { 3509 /* translators: 1: WordPress version number, 2: Minimum required MySQL version number */3509 /* translators: 1: WordPress version number, 2: Minimum required MySQL version number. */ 3510 3510 return new WP_Error( 'database_version', sprintf( __( '<strong>ERROR</strong>: WordPress %1$s requires MySQL %2$s or higher' ), $wp_version, $required_mysql_version ) ); 3511 3511 }
Note: See TracChangeset
for help on using the changeset viewer.