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