Forums Forums Search & Filter Pro Translations not available.

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #241524

    Hi,

    I’ve installed the plugin in a new site and the customer tells me that she’ve found contents in English.

    I’ve tried to translated this strings but it is not possible because they are not translatable strings, so they are not included in search-filter.pot even if I udpdate search-filter.pot.

    The reason is that these strings aren’t done like this: __( ‘My string’, $this->plugin_slug ),

    For instance: /search-filter-pro/templates/results-infinite-scroll.php

    	<div class='search-filter-results-list' data-search-filter-action='infinite-scroll-end'>
    		<span>End of Results</span>
    	</div>
    

    /search-filter-pro/templates/results.php

    
    	Found <?php echo $query->found_posts; ?> Results<br />
    	Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
    

    and

    
    	Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
    

    and

    
    	echo "No Results Found";
    

    I was going to fix it but I’ve realized that if I do it, as soon as a new version were released all my work would be lost.

    Would you mind fix it ?

    If you update search-filter.pot I can help and send you the Spanish translation in order to be included in next releases.

    Many thanks in advance.

    Trevor
    #241531

    Translation files may well come in V3 (due soon).

    Which Display Results method are you using? For example, if the form is ‘Using a Shortcode’ method for the results, then you would need to replace the text strings you will find in the results.php template used by the ‘As a Shortcode’ method you are using, as outlined here:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    By making a copy of the file and placing it in a sub-folder of a child theme folder, as shown in the above guide, updates do not affect it.

    Anonymous
    #241563
    This reply has been marked as private.
    Trevor
    #241565

    results.php will not change, but I understand.

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