Skip to content

Commit 4674952

Browse files
committed
Fixed localization issues
1 parent ebaad76 commit 4674952

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

modules/pdf-ninja.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function register_settings_fields( $settings_fields )
8282
'<h4>{title}</h4><p>{paragraph}</p>',
8383
array(
8484
'title' => esc_html__( 'Pdf.Ninja API', 'pdf-forms-for-wpforms' ),
85-
'paragraph' => esc_html__('The following form allows you to edit your API settings.' ),
85+
'paragraph' => esc_html__('The following form allows you to edit your API settings.', 'pdf-forms-for-wpforms' ),
8686
)
8787
),
8888
'type' => 'content',

modules/service.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ abstract class Pdf_Forms_For_WPForms_Service
77
{
88
public function api_get_fields( $attachment_id )
99
{
10-
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpfoms' ) );
10+
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpforms' ) );
1111
}
1212

1313
public function api_get_info( $attachment_id )
1414
{
15-
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpfoms' ) );
15+
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpforms' ) );
1616
}
1717

1818
public function api_image( $destfile, $attachment_id, $page )
1919
{
20-
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpfoms' ) );
20+
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpforms' ) );
2121
}
2222

2323
public function api_fill( $destfile, $attachment_id, $data, $options = array() )
2424
{
25-
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpfoms' ) );
25+
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpforms' ) );
2626
}
2727

2828
public function api_fill_embed( $destfile, $attachment_id, $data, $embeds, $options = array() )
2929
{
30-
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpfoms' ) );
30+
throw new Exception( __( "Missing feature", 'pdf-forms-for-wpforms' ) );
3131
}
3232

3333
public function admin_notices() { }

pdf-forms-for-wpforms.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function plugin_deactivated( $network_deactivating = false )
147147
public function cron_schedules( $schedules )
148148
{
149149
$interval = $this->get_downloads()->get_timeout();
150-
$display = self::replace_tags( __("Every {interval} seconds"), array( 'interval' => $interval ) );
150+
$display = self::replace_tags( __( "Every {interval} seconds", 'pdf-forms-for-wpforms' ), array( 'interval' => $interval ) );
151151
$schedules['pdf_forms_for_wpforms_cron_frequency'] = array(
152152
'interval' => $interval,
153153
'display' => $display
@@ -982,7 +982,7 @@ public function fill_pdfs( $wpform_fields, $entry, $form_data )
982982
throw new Exception(
983983
self::replace_tags(
984984
__( "File type {mime-type} of {file} is unsupported for {purpose}", 'pdf-forms-for-wpforms' ),
985-
array( 'mime-type' => $mimetype, 'file' => $filename, 'purpose' => __( "image embedding", 'pdf-forms-for-wpforms') )
985+
array( 'mime-type' => $mimetype, 'file' => $filename, 'purpose' => __( "image embedding", 'pdf-forms-for-wpforms' ) )
986986
)
987987
);
988988

@@ -1477,7 +1477,7 @@ public static function render_notice( $notice_id, $type, $attributes = array() )
14771477
$attributes['classes'] = trim( $attributes['classes'] . " notice-$type" );
14781478

14791479
if( !isset( $attributes['label'] ) )
1480-
$attributes['label'] = __( "PDF Forms Filler for WPForms" );
1480+
$attributes['label'] = __( "PDF Forms Filler for WPForms", 'pdf-forms-for-wpforms' );
14811481

14821482
if( $notice_id )
14831483
{
@@ -1755,7 +1755,7 @@ public function wp_ajax_get_attachment_data()
17551755
throw new Exception(
17561756
self::replace_tags(
17571757
__( "File type {mime-type} of {file} is unsupported for {purpose}", 'pdf-forms-for-wpforms' ),
1758-
array( 'mime-type' => $mimetype, 'file' => wp_basename( $filepath ), 'purpose' => __("PDF form filling", 'pdf-forms-for-wpforms') )
1758+
array( 'mime-type' => $mimetype, 'file' => wp_basename( $filepath ), 'purpose' => __( "PDF form filling", 'pdf-forms-for-wpforms' ) )
17591759
)
17601760
);
17611761

@@ -1863,7 +1863,7 @@ public function get_info( $attachment_id )
18631863

18641864
$service = $this->get_service();
18651865
if( !$service )
1866-
throw new Exception( __( "No service", 'pdf-forms-for-wpfoms' ) );
1866+
throw new Exception( __( "No service", 'pdf-forms-for-wpforms' ) );
18671867

18681868
$info = $service->api_get_info( $attachment_id );
18691869

0 commit comments

Comments
 (0)