• Resolved funkydmtl

    (@funkydmtl)


    After scanning the plugin using WPML, the word “All” appears in the string translations. I translated it to french, but it does not change on the front end. How can I translate the word “All”? Any help would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I ended up making duplicates of the filter in order to solve this issue.

    Please try editing /wp-content/plugins/category-ajax-filter/includes/functions.php

    (Optional, I needed this also) Lines 12-16 to:

    public function tc_caf_post_layout_read_more($text, $id)
        {
            $text = __('Read More', 'category-ajax-filter');
            return $text;
        }   

    Lines 258-262 to:

    public function tc_caf_filter_all_text($all_text) 
        {
            return __('All', 'category-ajax-filter');
        } 

    Then go to WPML string translation, check Look for strings while pages are rendered, refresh page, delete cache, and you should be able to translate the strings.

    Edit: never mind, when I uncheck the string registration, they return to English. Don’t know what to do yet..

    Edit2: Added this to /wp-content/plugins/category-ajax-filter/languages/category-ajax-filter.pot

    #: includes/functions.php:14
    msgid "Read More"
    msgstr ""
    
    #: includes/functions.php:260
    msgid "All"
    msgstr ""

    and translated again with Loco Translate

    • This reply was modified 7 months, 3 weeks ago by valentabc.
    • This reply was modified 7 months, 3 weeks ago by valentabc.
    • This reply was modified 7 months, 3 weeks ago by valentabc.
    Thread Starter funkydmtl

    (@funkydmtl)

    Thanks for the response – I followed your instructions and it works perfect in WPML now.

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi ,

    These edits are added in the newer version (2.8.1).

    Thanks,
    Trusty Plugins Team

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate word “All” using WPML’ is closed to new replies.