@@ -29,38 +29,38 @@ function bluem_woocommerce_get_integrations_options()
2929 'key ' => 'gformActive ' ,
3030 'title ' => 'bluem_gformActive ' ,
3131 'name ' => 'Gravity Forms ' ,
32- 'description ' => 'Activeer de Gravity Forms integratie ' ,
32+ 'description ' => 'Activate the Gravity Forms integration ' ,
3333 'type ' => 'select ' ,
3434 'default ' => 'N ' ,
3535 'options ' => [
36- 'N ' => 'Niet actief ' ,
37- 'Y ' => 'Actief ' ,
36+ 'N ' => 'Inactive ' ,
37+ 'Y ' => 'Active ' ,
3838 ],
3939 ],
4040 'gformResultpage ' => [
4141 'key ' => 'gformResultpage ' ,
4242 'title ' => 'bluem_gformResultpage ' ,
43- 'name ' => 'Slug resultaatpagina ' ,
44- 'description ' => 'De slug van de resultaatpagina ' ,
43+ 'name ' => 'Result page slug ' ,
44+ 'description ' => 'The slug of the result page ' ,
4545 'default ' => '' ,
4646 ],
4747 'wpcf7Active ' => [
4848 'key ' => 'wpcf7Active ' ,
4949 'title ' => 'bluem_wpcf7Active ' ,
5050 'name ' => 'ContactForm 7 ' ,
51- 'description ' => 'Activeer de ContactForm 7 integratie ' ,
51+ 'description ' => 'Activate the ContactForm 7 integration ' ,
5252 'type ' => 'select ' ,
5353 'default ' => 'N ' ,
5454 'options ' => [
55- 'N ' => 'Niet actief ' ,
56- 'Y ' => 'Actief ' ,
55+ 'N ' => 'Inactive ' ,
56+ 'Y ' => 'Active ' ,
5757 ],
5858 ],
5959 'wpcf7Resultpage ' => [
6060 'key ' => 'wpcf7Resultpage ' ,
6161 'title ' => 'bluem_wpcf7Resultpage ' ,
62- 'name ' => 'Slug resultaatpagina ' ,
63- 'description ' => 'De slug van de resultaatpagina ' ,
62+ 'name ' => 'Result page slug ' ,
63+ 'description ' => 'The slug of the result page ' ,
6464 'default ' => '' ,
6565 ],
6666 ];
@@ -234,7 +234,7 @@ function bluem_woocommerce_integration_wpcf7_ajax()
234234 if (! empty ($ bluem_config ->eMandateReason )) {
235235 $ bluem_config ->eMandateReason = mb_convert_encoding ($ bluem_config ->eMandateReason , 'ISO-8859-1 ' , 'UTF-8 ' );
236236 } else {
237- $ bluem_config ->eMandateReason = 'Incasso machtiging ' . $ debtorReference ;
237+ $ bluem_config ->eMandateReason = 'Direct debit mandate ' . $ debtorReference ;
238238 }
239239
240240 $ bluem = new Bluem ($ bluem_config );
@@ -260,8 +260,7 @@ function bluem_woocommerce_integration_wpcf7_ajax()
260260 $ response = $ bluem ->PerformRequest ($ request );
261261
262262 if (! isset ($ response ->EMandateTransactionResponse ->TransactionURL )) {
263- $ msg = 'Er ging iets mis bij het aanmaken van de transactie.<br>
264- Vermeld onderstaande informatie aan het websitebeheer: ' ;
263+ $ msg = 'Something went wrong while creating the transaction.<br>Please provide the following information to the site administrator: ' ;
265264
266265 if (isset ($ response ->EMandateTransactionResponse ->Error ->ErrorMessage )) {
267266 $ msg .= '<br> '
@@ -270,7 +269,7 @@ function bluem_woocommerce_integration_wpcf7_ajax()
270269 $ msg .= '<br> '
271270 . $ response ->Error ();
272271 } else {
273- $ msg .= '<br>Algemene fout ' ;
272+ $ msg .= '<br>General error ' ;
274273 }
275274 bluem_error_report_email (
276275 [
@@ -420,7 +419,7 @@ function bluem_woocommerce_integration_wpcf7_submit()
420419 } elseif (! empty ($ bluem_config ->eMandateReason )) {
421420 $ bluem_config ->eMandateReason = mb_convert_encoding ($ bluem_config ->eMandateReason , 'ISO-8859-1 ' , 'UTF-8 ' );
422421 } else {
423- $ bluem_config ->eMandateReason = 'Incasso machtiging ' . $ debtorReference ;
422+ $ bluem_config ->eMandateReason = 'Direct debit mandate ' . $ debtorReference ;
424423 }
425424
426425 try {
@@ -450,8 +449,7 @@ function bluem_woocommerce_integration_wpcf7_submit()
450449 $ response = $ bluem ->PerformRequest ($ request );
451450
452451 if (! isset ($ response ->EMandateTransactionResponse ->TransactionURL )) {
453- $ msg = 'Er ging iets mis bij het aanmaken van de transactie.<br>
454- Vermeld onderstaande informatie aan het websitebeheer: ' ;
452+ $ msg = 'Something went wrong while creating the transaction.<br>Please provide the following information to the site administrator: ' ;
455453
456454 if (isset ($ response ->EMandateTransactionResponse ->Error ->ErrorMessage )) {
457455 $ msg .= '<br> '
@@ -460,7 +458,7 @@ function bluem_woocommerce_integration_wpcf7_submit()
460458 $ msg .= '<br> '
461459 . $ response ->Error ();
462460 } else {
463- $ msg .= '<br>Algemene fout ' ;
461+ $ msg .= '<br>General error ' ;
464462 }
465463 bluem_error_report_email (
466464 [
@@ -564,7 +562,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
564562 wp_redirect (home_url ($ bluem_config ->wpcf7Resultpage ) . "?form= $ formID&result=false&reason=error " );
565563 exit ;
566564 }
567- $ errormessage = 'Fout: geen juist mandaat id teruggekregen bij callback. Neem contact op met de webshop en vermeld je contactgegevens . ' ;
565+ $ errormessage = 'Error: no valid mandate ID received in callback. Please contact the shop and provide your contact details . ' ;
568566 bluem_error_report_email (
569567 [
570568 'service ' => 'mandates ' ,
@@ -577,7 +575,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
577575 }
578576
579577 if (empty ($ entranceCode )) {
580- $ errormessage = 'Fout: Entrancecode is niet set; kan dus geen mandaat opvragen ' ;
578+ $ errormessage = 'Error: EntranceCode is not set; cannot retrieve mandate status. ' ;
581579 bluem_error_report_email (
582580 [
583581 'service ' => 'mandates ' ,
@@ -592,8 +590,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
592590 $ response = $ bluem ->MandateStatus ($ mandateID , $ entranceCode );
593591
594592 if (! $ response ->Status ()) {
595- $ errormessage = 'Fout bij opvragen status: ' . $ response ->Error () . '
596- <br>Neem contact op met de webshop en vermeld deze status ' ;
593+ $ errormessage = 'Error retrieving status: ' . $ response ->Error () . '<br>Please contact the shop and mention this status. ' ;
597594 bluem_error_report_email (
598595 [
599596 'service ' => 'mandates ' ,
@@ -661,7 +658,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
661658 wp_redirect (home_url ($ bluem_config ->wpcf7Resultpage ) . "?form= $ formID&result=true " );
662659 exit ;
663660 }
664- $ errormessage = 'Fout: de ondertekening is geslaagd maar er is geen response URI opgegeven. Neem contact op met de website om dit technisch probleem aan te geven . ' ;
661+ $ errormessage = 'Error: the signing was successful but no response URI was provided. Please contact the website to report this technical issue . ' ;
665662 bluem_error_report_email (
666663 [
667664 'service ' => 'mandates ' ,
@@ -680,7 +677,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
680677 wp_redirect (home_url ($ bluem_config ->wpcf7Resultpage ) . "?form= $ formID&result=false&reason=cancelled " );
681678 exit ;
682679 }
683- $ errormessage = 'Fout: de transactie is geannuleerd. Probeer het opnieuw . ' ;
680+ $ errormessage = 'Error: the transaction was cancelled. Please try again . ' ;
684681 bluem_dialogs_render_prompt ($ errormessage );
685682 exit ;
686683 }
@@ -691,7 +688,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
691688 wp_redirect (home_url ($ bluem_config ->wpcf7Resultpage ) . "?form= $ formID&result=false&reason=open " );
692689 exit ;
693690 }
694- $ errormessage = 'Fout: de transactie staat nog open. Dit kan even duren. Vernieuw deze pagina regelmatig voor de status. ' ;
691+ $ errormessage = 'Error: the transaction is still open. This may take a moment. Refresh this page regularly to check the status. ' ;
695692 bluem_dialogs_render_prompt ($ errormessage );
696693 exit ;
697694 }
@@ -702,7 +699,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
702699 wp_redirect (home_url ($ bluem_config ->wpcf7Resultpage ) . "?form= $ formID&result=false&reason=expired " );
703700 exit ;
704701 }
705- $ errormessage = 'Fout: de transactie is verlopen. Probeer het opnieuw . ' ;
702+ $ errormessage = 'Error: the transaction has expired. Please try again . ' ;
706703 bluem_dialogs_render_prompt ($ errormessage );
707704 exit ;
708705 }
@@ -711,7 +708,7 @@ function bluem_woocommerce_integration_wpcf7_callback()
711708 [
712709 'service ' => 'mandates ' ,
713710 'function ' => 'wpcf7_callback ' ,
714- 'message ' => "Fout: Onbekende of foutieve status teruggekregen : $ statusCode<br>Neem contact op met de webshop en vermeld deze status; gebruiker wel doorverwezen terug naar site " ,
711+ 'message ' => "Error: unknown or invalid status received : $ statusCode<br>Please contact the shop and mention this status; the user has been redirected back to the site. " ,
715712 ]
716713 );
717714
@@ -740,7 +737,7 @@ function bluem_woocommerce_integration_wpcf7_results_shortcode()
740737 }
741738
742739 if (empty ($ _GET ['form ' ]) || empty ($ _GET ['result ' ])) {
743- return 'Er is een fout opgetreden. Ga terug en probeer het opnieuw . ' ;
740+ return 'An error occurred. Go back and try again . ' ;
744741 }
745742
746743 if (! empty ($ _GET ['form ' ])) {
@@ -862,13 +859,13 @@ function bluem_woocommerce_integration_gform_submit($entry, $form)
862859 } elseif (! empty ($ bluem_config ->eMandateReason )) {
863860 $ bluem_config ->eMandateReason = mb_convert_encoding ($ bluem_config ->eMandateReason , 'ISO-8859-1 ' , 'UTF-8 ' );
864861 } else {
865- $ bluem_config ->eMandateReason = 'Incasso machtiging ' . $ debtorReference ;
862+ $ bluem_config ->eMandateReason = 'Direct debit mandate ' . $ debtorReference ;
866863 }
867864
868865 try {
869866 $ bluem = new Bluem ($ bluem_config );
870867 } catch (Exception $ e ) {
871- echo ('Kon gravity form niet goed uitvoeren ; check je instellingen ' );
868+ echo ('Could not process the Gravity Forms request correctly ; check your settings. ' );
872869 die ();
873870 }
874871
@@ -894,8 +891,7 @@ function bluem_woocommerce_integration_gform_submit($entry, $form)
894891 $ response = $ bluem ->PerformRequest ($ request );
895892
896893 if (! isset ($ response ->EMandateTransactionResponse ->TransactionURL )) {
897- $ msg = 'Er ging iets mis bij het aanmaken van de transactie.<br>
898- Vermeld onderstaande informatie aan het websitebeheer: ' ;
894+ $ msg = 'Something went wrong while creating the transaction.<br>Please provide the following information to the site administrator: ' ;
899895
900896 if (isset ($ response ->EMandateTransactionResponse ->Error ->ErrorMessage )) {
901897 $ msg .= '<br> '
@@ -904,7 +900,7 @@ function bluem_woocommerce_integration_gform_submit($entry, $form)
904900 $ msg .= '<br> '
905901 . $ response ->Error ();
906902 } else {
907- $ msg .= '<br>Algemene fout ' ;
903+ $ msg .= '<br>General error ' ;
908904 }
909905
910906 bluem_error_report_email (
@@ -1009,7 +1005,7 @@ function bluem_woocommerce_integration_gform_submit($entry, $form)
10091005 $ error_message
10101006 = sprintf (
10111007 /* translators: %s: error code */
1012- esc_html__ ("Er ging iets mis het maken van de Gravity Forms transactie, foutcode : %s " , 'bluem ' ),
1008+ esc_html__ ("Something went wrong while creating the Gravity Forms transaction, error code : %s " , 'bluem ' ),
10131009 $ e ->getMessage ()
10141010 );
10151011 bluem_error_report_email (
@@ -1040,18 +1036,18 @@ function bluem_woocommerce_integration_gform_callback()
10401036 $ storage = bluem_db_get_storage ();
10411037
10421038 if ($ bluem_config ->gformActive !== 'Y ' ) {
1043- bluem_dialogs_render_prompt (esc_html__ ("Fout: de Gravity Forms integratie is niet actief, maar toch is er een callback .
1044- Controleer de instellingen van de plugin. Neem contact op met de webshop en vermeld je contactgegevens . " , 'bluem ' ));
1039+ bluem_dialogs_render_prompt (esc_html__ ("Error: the Gravity Forms integration is not active, but a callback was received anyway .
1040+ Check the plugin settings. Please contact the shop and provide your contact details . " , 'bluem ' ));
10451041 exit ;
10461042 }
10471043
10481044 try {
10491045 $ bluem = new Bluem ($ bluem_config );
10501046 } catch (Exception $ e ) {
10511047 bluem_dialogs_render_prompt (esc_html__ (
1052- "Fout: de Bluem configuratie is niet correct terwijl Gravity forms al actief is .
1053- Probeer de instellingen te corrigeren. Lukt dat niet?
1054- Neem contact op met de plug-in support en vermeld je contactgegevens . " ,
1048+ "Error: the Bluem configuration is not correct even though Gravity Forms is active .
1049+ Try correcting the settings. If that does not work,
1050+ please contact plugin support and provide your contact details . " ,
10551051 'bluem '
10561052 ));
10571053 exit ;
@@ -1253,7 +1249,7 @@ function bluem_woocommerce_integration_gform_callback()
12531249 wp_redirect (home_url ($ bluem_config ->gformResultpage ) . "?form= $ formID&entry= $ entryID&mid= $ mandateID&ec= $ entranceCode&result=true " );
12541250 exit ;
12551251 }
1256- $ errormessage = 'Fout: de ondertekening is geslaagd maar er is geen response URI opgegeven. Neem contact op met de website om dit technisch probleem aan te geven . ' ;
1252+ $ errormessage = 'Error: the signing was successful but no response URI was provided. Please contact the website to report this technical issue . ' ;
12571253 bluem_error_report_email (
12581254 [
12591255 'service ' => 'mandates ' ,
@@ -1270,7 +1266,7 @@ function bluem_woocommerce_integration_gform_callback()
12701266 wp_redirect (home_url ($ bluem_config ->gformResultpage ) . "?form= $ formID&entry= $ entryID&mid= $ mandateID&ec= $ entranceCode&result=false&reason=cancelled " );
12711267 exit ;
12721268 }
1273- $ errormessage = 'Fout: de transactie is geannuleerd. Probeer het opnieuw . ' ;
1269+ $ errormessage = 'Error: the transaction was cancelled. Please try again . ' ;
12741270 bluem_dialogs_render_prompt ($ errormessage );
12751271 exit ;
12761272 } elseif ($ statusCode === 'Open ' || $ statusCode == 'Pending ' ) {
@@ -1279,7 +1275,7 @@ function bluem_woocommerce_integration_gform_callback()
12791275 wp_redirect (home_url ($ bluem_config ->gformResultpage ) . "?form= $ formID&entry= $ entryID&mid= $ mandateID&ec= $ entranceCode&result=false&reason=open " );
12801276 exit ;
12811277 }
1282- $ errormessage = 'Fout: de transactie staat nog open. Dit kan even duren. Vernieuw deze pagina regelmatig voor de status. ' ;
1278+ $ errormessage = 'Error: the transaction is still open. This may take a moment. Refresh this page regularly to check the status. ' ;
12831279 bluem_dialogs_render_prompt ($ errormessage );
12841280 exit ;
12851281 } elseif ($ statusCode === 'Expired ' ) {
@@ -1288,22 +1284,22 @@ function bluem_woocommerce_integration_gform_callback()
12881284 wp_redirect (home_url ($ bluem_config ->gformResultpage ) . "?form= $ formID&entry= $ entryID&mid= $ mandateID&ec= $ entranceCode&result=false&reason=expired " );
12891285 exit ;
12901286 }
1291- $ errormessage = 'Fout: de transactie is verlopen. Probeer het opnieuw . ' ;
1287+ $ errormessage = 'Error: the transaction has expired. Please try again . ' ;
12921288 bluem_dialogs_render_prompt ($ errormessage );
12931289 exit ;
12941290 } else {
12951291 bluem_error_report_email (
12961292 [
12971293 'service ' => 'mandates ' ,
12981294 'function ' => 'gform_callback ' ,
1299- 'message ' => "Fout: Onbekende of foutieve status teruggekregen : {$ statusCode }<br>Neem contact op met de webshop en vermeld deze status; gebruiker wel doorverwezen terug naar site " ,
1295+ 'message ' => "Error: unknown or invalid status received : {$ statusCode }<br>Please contact the shop and mention this status; the user has been redirected back to the site. " ,
13001296 ]
13011297 );
13021298 if (! empty ($ bluem_config ->gformResultpage )) {
13031299 wp_redirect (home_url ($ bluem_config ->gformResultpage ) . "?form= $ formID&entry= $ entryID&mid= $ mandateID&ec= $ entranceCode&result=false&reason=error " );
13041300 exit ;
13051301 }
1306- $ errormessage = 'Fout: er is een onbekende fout opgetreden. Probeer het opnieuw . ' ;
1302+ $ errormessage = 'Error: an unknown error occurred. Please try again . ' ;
13071303 bluem_dialogs_render_prompt ($ errormessage );
13081304 exit ;
13091305 }
@@ -1325,7 +1321,7 @@ function bluem_woocommerce_integration_gform_results_shortcode()
13251321 }
13261322
13271323 if (empty ($ _GET ['form ' ]) || empty ($ _GET ['entry ' ]) || empty ($ _GET ['mid ' ]) || empty ($ _GET ['ec ' ]) || empty ($ _GET ['result ' ])) {
1328- return 'Er is een fout opgetreden. Ga terug en probeer het opnieuw . ' ;
1324+ return 'An error occurred. Go back and try again . ' ;
13291325 }
13301326
13311327 $ request_from_db = bluem_db_get_request_by_transaction_id_and_entrance_code (
@@ -1395,11 +1391,11 @@ function bluem_woocommerce_integration_gform_results_shortcode()
13951391
13961392 if (! empty ($ status )) {
13971393 if ($ status === 'Success ' ) {
1398- return '<p> ' . ! empty ($ form_data ) && ! empty ($ form_data ['bluem_mandate_success ' ]) ? $ form_data ['bluem_mandate_success ' ] : 'De machtiging is gelukt . ' . '</p> ' ;
1394+ return '<p> ' . ! empty ($ form_data ) && ! empty ($ form_data ['bluem_mandate_success ' ]) ? $ form_data ['bluem_mandate_success ' ] : 'The mandate was successful . ' . '</p> ' ;
13991395 } else {
1400- return '<p> ' . ! empty ($ form_data ) && ! empty ($ form_data ['bluem_mandate_failure ' ]) ? $ form_data ['bluem_mandate_failure ' ] : 'De machtiging is mislukt. Probeer het opnieuw . ' . '</p> ' ;
1396+ return '<p> ' . ! empty ($ form_data ) && ! empty ($ form_data ['bluem_mandate_failure ' ]) ? $ form_data ['bluem_mandate_failure ' ] : 'The mandate failed. Please try again . ' . '</p> ' ;
14011397 }
14021398 } else {
1403- return '<p> ' . ! empty ($ form_data ) && ! empty ($ form_data ['bluem_mandate_failure ' ]) ? $ form_data ['bluem_mandate_failure ' ] : 'De machtiging is mislukt. Probeer het opnieuw . ' . '</p> ' ;
1399+ return '<p> ' . ! empty ($ form_data ) && ! empty ($ form_data ['bluem_mandate_failure ' ]) ? $ form_data ['bluem_mandate_failure ' ] : 'The mandate failed. Please try again . ' . '</p> ' ;
14041400 }
14051401}
0 commit comments