WordPress.org

Ready to get started?Download WordPress

Forums

Special Recent Posts
Multilanguage widget Title (5 posts)

  1. lnunez
    Member
    Posted 1 year ago #

    I have installed the widget special recent post, and the body of the text if I translated the title of the widget but can not get it to appear as a string for translation of WPML. I can do?
    I have to add some php code?

    Thanks

    http://wordpress.org/extend/plugins/special-recent-posts/

  2. Luca Grandicelli
    Member
    Plugin Author

    Posted 1 year ago #

    I think you can use the String Translator of the WPML family. In its docs you'll find how to translate themes and plugins.

  3. lnunez
    Member
    Posted 1 year ago #

    Yes, they say me that I answer to Plugin Autor :(

  4. Luca Grandicelli
    Member
    Plugin Author

    Posted 1 year ago #

    Ok i've made some tests. SRP is not supporting WPML string translation at the moment. I'll add this feature in the next version.

  5. crashtest
    Member
    Posted 1 year ago #

    had the same problem, we have manually temporary solved.

    In file special-recent-posts/classes/class-main.php

    we've replaced

    // Building category title HTML.
    				$category_title_link = $this->srp_create_tag('a', get_cat_name($thisCategoryId), array('class' => 'srp-widget-title-link', 'href' => $srp_category_link, 'title' => get_cat_name($thisCategoryId)));

    with:

    // Building category title HTML.
    $category_title_link = $this->srp_create_tag('a', preg_replace('/ @'.ICL_LANGUAGE_CODE.'/', '', get_cat_name($thisCategoryId)), array('class' => 'srp-widget-title-link', 'href' => $srp_category_link, 'title' => preg_replace('/ @'.ICL_LANGUAGE_CODE.'/', '', get_cat_name($thisCategoryId))));

    it works in our template

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.