- $check = $wpdb->get_row("OPTIMIZE TABLE {$wpdb->prefix}$table");
- if ( 'OK' == $check->Msg_text || 'Table is already up to date' == $check->Msg_text )
- echo "<br /> Sucessfully optimized the {$wpdb->prefix}$table table.";
- else
- echo "<br /> Failed to optimize the {$wpdb->prefix}$table table. Error: $check->Msg_text";
+ $check = $wpdb->get_row( "OPTIMIZE TABLE $table" );
+
+ echo '<br /> ';
+ if ( 'OK' == $check->Msg_text || 'Table is already up to date' == $check->Msg_text ) {
+ /* translators: %s: table name */
+ printf( __( 'Successfully optimized the %s table.' ), "<code>$table</code>" );
+ } else {
+ /* translators: 1: table name, 2: error message, */
+ printf( __( 'Failed to optimize the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" );
+ }