Should be fixed in XFtoWP 1.5.2 beta!Hi @Alex when will you be fixing the HTML parsing thingee in the strings?
...instead of using a translation plugin, theIt would be simple to have a filter function to override existing strings. The Poedit route is thorough but a simple override filter for changing phrases might be nice.![]()
xfwp_strings
filter has now been updated so you can override text strings on the fly from a child theme or anywhere you place your PHP code snippets.strings.php
file:/**
* Modify XFtoWP Plugin strings.
*
* @since 1.0
*/
function child_theme_xftowp_strings( $strings ) {
$strings['create_thread_success'] = 'Edited translation';
$strings['custom_fields'] = 'Edited translation';
return $strings;
}
add_filter( 'xfwp_strings', 'child_theme_xftowp_strings' );
What do you mean by not working, is the filter just being ignored?FYI the functions.php code stopped working in the update released today. I rolled back the plugin version.
functions.php
file, and an accompanying style.css
file for any CSS edits you make.