Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24112

    Hi!

    String translation in my WPML does not find “Search results for” in search results page breadcrumb. String translation in my WPML does not find “Search results for” in search results page breadcrumb. Any suggestion?

    Thanks,

    Francesco.

    #122364

    Hi,

    Open framework > php > class-breadcrumb.php, find this code

    /* If viewing search results. */
    elseif ( is_search() )
    $trail['trail_end'] = sprintf( __( 'Search results for "%1$s"', $textdomain ), esc_attr( get_search_query() ) );

    Regards,

    Ismael

    #122365

    I saw where the string is, but I don’t understand why WPML doesn’t find it.

    I want to keep the possibility to transalte it in other languages.

    Any suggestion?

    Thanks,

    Fra.

    #122367

    Open up wp-contentthemesenfoldframeworkphpclass-breadcrumb.php and delete following line:

    $textdomain = 'avia_framework';

    Then replace all occurences of

    $textdomain

    with

    'avia_framework'

    We’ll fix this in the next version. The problem is that WPML doesn’t “read” variables – thus it will only translate text strings if the textdomain is hardcoded.

    #122368

    Fixed! Thanks Dude!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Breadcrumbs – transalte "Search results for" with WPML’ is closed to new replies.