@@ -20,54 +20,54 @@ function wcepe_settings_init( ) {
20
20
21
21
add_settings_section (
22
22
'wcepe_pluginPage_section ' ,
23
- __ ( 'Connect to External Store ' , 'wordpress ' ),
23
+ __ ( 'Connect to External Store ' , 'wcepe ' ),
24
24
array ( $ this , 'wcepe_settings_section_callback ' ),
25
25
'pluginPage '
26
26
);
27
27
28
28
add_settings_field (
29
29
'wcepe_text_field_0 ' ,
30
- __ ( 'Consumer Key ' , 'wordpress ' ),
30
+ __ ( 'Consumer Key ' , 'wcepe ' ),
31
31
array ( $ this , 'wcepe_text_field_0_render ' ),
32
32
'pluginPage ' ,
33
33
'wcepe_pluginPage_section '
34
34
);
35
35
36
36
add_settings_field (
37
37
'wcepe_text_field_1 ' ,
38
- __ ( 'Consumer Secret ' , 'wordpress ' ),
38
+ __ ( 'Consumer Secret ' , 'wcepe ' ),
39
39
array ( $ this , 'wcepe_text_field_1_render ' ),
40
40
'pluginPage ' ,
41
41
'wcepe_pluginPage_section '
42
42
);
43
43
44
44
add_settings_field (
45
45
'wcepe_text_field_2 ' ,
46
- __ ( 'Store Home URL ' , 'wordpress ' ),
46
+ __ ( 'Store Home URL ' , 'wcepe ' ),
47
47
array ( $ this , 'wcepe_text_field_2_render ' ),
48
48
'pluginPage ' ,
49
49
'wcepe_pluginPage_section '
50
50
);
51
51
52
52
add_settings_field (
53
53
'wcepe_text_field_3 ' ,
54
- __ ( 'Transient Set Time <br> (in seconds) ' , 'wordpress ' ),
54
+ __ ( 'Transient Set Time <br> (in seconds) ' , 'wcepe ' ),
55
55
array ( $ this , 'wcepe_text_field_3_render ' ),
56
56
'pluginPage ' ,
57
57
'wcepe_pluginPage_section '
58
58
);
59
59
60
60
add_settings_field (
61
61
'wcepe_text_field_4 ' ,
62
- __ ( 'Delete Active Transients ' , 'wordpress ' ),
62
+ __ ( 'Delete Active Transients ' , 'wcepe ' ),
63
63
array ( $ this , 'wcepe_text_field_4_render ' ),
64
64
'pluginPage ' ,
65
65
'wcepe_pluginPage_section '
66
66
);
67
67
68
68
add_settings_field (
69
69
'wcepe_text_field_5 ' ,
70
- __ ( 'Delete Expired Transients ' , 'wordpress ' ),
70
+ __ ( 'Delete Expired Transients ' , 'wcepe ' ),
71
71
array ( $ this , 'wcepe_text_field_5_render ' ),
72
72
'pluginPage ' ,
73
73
'wcepe_pluginPage_section '
@@ -105,7 +105,7 @@ function wcepe_text_field_3_render( ) {
105
105
function wcepe_text_field_4_render ( ) {
106
106
$ options = get_option ( 'wcepe_settings ' );
107
107
?>
108
- <a href="<?php echo admin_url ( 'options-general.php?page=embed_external_woocommerce_products&action=clear_transients ' ); ?> " class="button">Clear Transients</a>
108
+ <a href="<?php echo admin_url ( 'options-general.php?page=embed_external_woocommerce_products&action=clear_transients ' ); ?> " class="button"><?php echo __ ( ' Clear Transients ' , ' wcepe ' ); ?> </a>
109
109
<?php
110
110
111
111
if ( ! empty ( $ _GET ['action ' ] ) ) {
@@ -149,7 +149,7 @@ function delete_external_product_transients( ) {
149
149
function wcepe_text_field_5_render ( ) {
150
150
$ options = get_option ( 'wcepe_settings ' );
151
151
?>
152
- <a href="<?php echo admin_url ( 'options-general.php?page=embed_external_woocommerce_products&action=clear_expired_transients ' ); ?> " class="button">Clear Transients</a>
152
+ <a href="<?php echo admin_url ( 'options-general.php?page=embed_external_woocommerce_products&action=clear_expired_transients ' ); ?> " class="button"><?php echo __ ( ' Clear Transients ' , ' wcepe ' ); ?> </a>
153
153
<?php
154
154
155
155
if ( ! empty ( $ _GET ['action ' ] ) ) {
@@ -192,22 +192,22 @@ function delete_external_expired_product_transients( ) {
192
192
193
193
function display_success_message () {
194
194
if ( ! empty ( $ _GET ['action ' ] ) && $ _GET ['action ' ] == 'clear_transients ' ) {
195
- echo '<div class="updated"><p>Transients Cleared</p></div> ' ;
195
+ echo '<div class="updated"><p> ' . __ ( ' Transients Cleared ' , ' wcepe ' ) . ' </p></div> ' ;
196
196
} else if ( ! empty ( $ _GET ['action ' ]) && $ _GET ['action ' ] == 'clear_expired_transients ' ) {
197
- echo '<div class="updated"><p>Expired Transients Cleared</p></div> ' ;
197
+ echo '<div class="updated"><p> ' . __ ( ' Expired Transients Cleared ' , ' wcepe ' ) . ' </p></div> ' ;
198
198
}
199
199
}
200
200
201
201
function wcepe_settings_section_callback ( ) {
202
202
//echo $this->display_success_message();
203
- echo __ ( 'You can find instructions here: <a href="http://docs.woothemes.com/document/woocommerce-rest-api/" target="_blank">Generating API keys</a> ' , 'wordpress ' );
203
+ echo __ ( 'You can find instructions here: <a href="http://docs.woothemes.com/document/woocommerce-rest-api/" target="_blank">Generating API keys</a> ' , 'wcepe ' );
204
204
}
205
205
206
206
function wcepe_options_page ( ) {
207
207
?>
208
208
<form action='options.php' method='post'>
209
209
210
- <h2>WooCommerce External Product Embed</h2>
210
+ <h2><?php echo __ ( ' WooCommerce External Product Embed ' , ' wcepe ' ); ?> </h2>
211
211
212
212
<?php
213
213
settings_fields ( 'pluginPage ' );
0 commit comments