@@ -244,11 +244,9 @@ function __construct() {
244
244
if ( $ status > 0 ) {
245
245
$ message = sprintf (
246
246
'<p>%s</p><p>%s</p><p>%s</p> ' ,
247
- __ ( 'Database initialization error! ' , 'sqlite-database-integration ' ),
248
- /* translators: %d: error code */
249
- sprintf ( __ ( 'Code: %d ' , 'sqlite-database-integration ' ), $ status ),
250
- /* translators: %s: error message */
251
- sprintf ( __ ( 'Error Message: %s ' , 'sqlite-database-integration ' ), $ err_message )
247
+ 'Database initialization error! ' ,
248
+ "Code: $ status " ,
249
+ "Error Message: $ err_message "
252
250
);
253
251
$ this ->set_error ( __LINE__ , __FILE__ , $ message );
254
252
@@ -328,19 +326,19 @@ private function prepare_directory() {
328
326
if ( ! is_dir ( FQDBDIR ) ) {
329
327
if ( ! @mkdir ( FQDBDIR , 0704 , true ) ) {
330
328
umask ( $ u );
331
- wp_die ( esc_html__ ( 'Unable to create the required directory! Please check your server settings. ' , ' sqlite-database-integration ' ) , 'Error! ' );
329
+ wp_die ( 'Unable to create the required directory! Please check your server settings. ' , 'Error! ' );
332
330
}
333
331
}
334
332
if ( ! is_writable ( FQDBDIR ) ) {
335
333
umask ( $ u );
336
- $ message = __ ( 'Unable to create a file in the directory! Please check your server settings. ' , ' sqlite-database-integration ' ) ;
334
+ $ message = 'Unable to create a file in the directory! Please check your server settings. ' ;
337
335
wp_die ( $ message , 'Error! ' );
338
336
}
339
337
if ( ! is_file ( FQDBDIR . '.htaccess ' ) ) {
340
338
$ fh = fopen ( FQDBDIR . '.htaccess ' , 'w ' );
341
339
if ( ! $ fh ) {
342
340
umask ( $ u );
343
- esc_html_e ( 'Unable to create a file in the directory! Please check your server settings. ' , ' sqlite-database-integration ' ) ;
341
+ echo 'Unable to create a file in the directory! Please check your server settings. ' ;
344
342
345
343
return false ;
346
344
}
@@ -351,7 +349,7 @@ private function prepare_directory() {
351
349
$ fh = fopen ( FQDBDIR . 'index.php ' , 'w ' );
352
350
if ( ! $ fh ) {
353
351
umask ( $ u );
354
- esc_html_e ( 'Unable to create a file in the directory! Please check your server settings. ' , ' sqlite-database-integration ' ) ;
352
+ echo 'Unable to create a file in the directory! Please check your server settings. ' ;
355
353
356
354
return false ;
357
355
}
@@ -397,8 +395,7 @@ public function query( $statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, ...$fet
397
395
$ res = $ this ->determine_query_type ( $ statement );
398
396
if ( ! $ res && defined ( 'PDO_DEBUG ' ) && PDO_DEBUG ) {
399
397
$ bailout_string = sprintf (
400
- /* translators: %s: SQL statement */
401
- '<h1> ' . __ ( 'Unknown query type ' , 'sqlite-database-integration ' ) . '</h1><p> ' . __ ( 'Sorry, we cannot determine the type of query that is requested (%s). ' , 'sqlite-database-integration ' ) . '</p> ' ,
398
+ '<h1>Unknown query type</h1><p>Sorry, we cannot determine the type of query that is requested (%s).</p> ' ,
402
399
$ statement
403
400
);
404
401
$ this ->set_error ( __LINE__ , __FUNCTION__ , $ bailout_string );
@@ -604,7 +601,7 @@ public function get_error_message() {
604
601
605
602
$ output = '<div style="clear:both"> </div> ' ;
606
603
$ output .= '<div class="queries" style="clear:both;margin_bottom:2px;border:red dotted thin;"> ' ;
607
- $ output .= '<p> ' . __ ( ' Queries made or created this session were: ' , ' sqlite-database-integration ' ) . ' </p> ' ;
604
+ $ output .= '<p>Queries made or created this session were:</p> ' ;
608
605
$ output .= '<ol> ' ;
609
606
foreach ( $ this ->queries as $ q ) {
610
607
$ output .= '<li> ' . esc_html ( $ q ) . '</li> ' ;
@@ -614,8 +611,7 @@ public function get_error_message() {
614
611
foreach ( $ this ->error_messages as $ num => $ m ) {
615
612
$ output .= '<div style="clear:both;margin_bottom:2px;border:red dotted thin;" class="error_message" style="border-bottom:dotted blue thin;"> ' ;
616
613
$ output .= sprintf (
617
- /* translators: %1$d: line number, %2$s: function name, %3$s: error message */
618
- __ ( 'Error occurred at line %1$d in Function %2$s. Error message was: %3$s. ' , 'sqlite-database-integration ' ),
614
+ 'Error occurred at line %1$d in Function %2$s. Error message was: %3$s. ' ,
619
615
(int ) $ this ->errors [ $ num ]['line ' ],
620
616
'<code> ' . esc_html ( $ this ->errors [ $ num ]['function ' ] ) . '</code> ' ,
621
617
$ m
@@ -1463,7 +1459,7 @@ private function convert_result_check_or_analyze() {
1463
1459
'Table ' => '' ,
1464
1460
'Op ' => $ is_check ? 'check ' : 'analyze ' ,
1465
1461
'Msg_type ' => 'status ' ,
1466
- 'Msg_text ' => $ is_check ? __ ( 'OK ' , ' sqlite-database-integration ' ) : __ ( 'Table is already up to date ' , ' sqlite-database-integration ' ) ,
1462
+ 'Msg_text ' => $ is_check ? 'OK ' : 'Table is already up to date ' ,
1467
1463
)
1468
1464
);
1469
1465
$ this ->results = $ _results ;
0 commit comments