WordPress.org

Support

Support » Plugins and Hacks » Multilanguage widget Title

Multilanguage widget Title

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Luca Grandicelli
    Member

    @lgrandicelli

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

    Yes, they say me that I answer to Plugin Autor 🙁

    Plugin Author Luca Grandicelli
    Member

    @lgrandicelli

    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.

    crashtest
    Participant

    @crashtest

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multilanguage widget Title’ is closed to new replies.