Harald
Tell us what you are trying to do?
Translate a string for email footer in functions.php
Is there any documentation that you are following?
Is there a similar example that we can see?
Here is the code:
function wpf_dev_change_email_footer_text( $footer ) {
$footer = "Posthof | Conrad-Trautson-Str. 4 | 39040 Freienfeld/Trens | Mwst. Nr: 03189140217 | Steuernr.: BNDNDN94T63M067L | info@posthof.it ";
return $footer;
}
add_filter( 'wpforms_email_footer_text', 'wpf_dev_change_email_footer_text', 30, 1 );
I need to make the whole string in the variable $footer translatable.
What is the link to your site?
hidden link
Marcel
Supporter
Languages:
English (English )
German (Deutsch )
Timezone:
Europe/Madrid (GMT+01:00)
Hi,
before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
You must add a getText() calls to that string: https://wpml.org/documentation/support/translating-the-theme-you-created/ .
For more information, please check the WP Developer Handbook regarding i18n: https://developer.wordpress.org/themes/functionality/internationalization/ .
Best Regards
Marcel