Forums › Forums › Search & Filter Pro › Translations not available.
Tagged: translations, V3
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) April 27, 2020 at 1:12 pm #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(Private) April 27, 2020 at 1:31 pm #241531Translation 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.
-
AuthorPosts