WPML compatability
-
I am using the wonderful Filters & Grids plug-in, but am having issues with a site that uses WPML for French content. The taxonomy terms are translated, and in some archives the plug-in shows both english and french terms, but does show the correct translations – making it appear that terms are duplicated. Also, when switching from english to french on an archive page, the posts don’t update until you do a refresh. Is this plug-in compatible with WPML? Are there additional settings needed to allow archives to update without a page refresh?
-
Hi!
The plugin is a post type, so it can be easily translated using multilingual plugins such as WPML. All translation settings are made in the settings of the WPML plugin itself. You should study the documentation and use of the WPML plugin. From our side, our plugin does not require any settings. Inserting a shortcode on any type of entry (archive page, single page or regular pages) will allow you to display any grids with posts.
-
This reply was modified 8 months, 1 week ago by
YMC.
Within the filters there are options for the text used in a search button, or the copy shown in a search field. What text domain would these show up as in WPML? I don’t see anything which looks like it comes from the Filters and Grids plug-in db.
The domain name for translation in the WPML for our plugin is ‘ymc-smart-filter’. You can find all text blocks for translation using this domain name.
-
This reply was modified 7 months, 3 weeks ago by
YMC.
I had WPML rescan and I can now see the ymc-smart-filter text domain. It appears to be strings for use in the backend of the site. But strings you add into the filter for the front end, like the search form copy and search button copy are not shown here.
If I try to translate the filter using WPML, it makes a copy of the filter, which gets a new shortcode. I don’t want that, as currently the short code is agnostic of language, it works, but some of the copy the filter outputs is still english on a french archive page.
Is there a specific process for translating the output of the filter with WMPL which does not generate a new unique filter?Download the plugin archive from the WordPress repository and upload SFTP it to your hosting in the /wp-content/plugins/ymc-smart-filter folder.
Then rescan the plugin with the WPML plugin. You’ll find the search button text and be able to translate it into French. We hope this helps.-
This reply was modified 7 months, 3 weeks ago by
YMC.
Update the plugin. All frontend string translation bugs have been fixed.
I updated the plug-in and rescanned. However the only strings I see available for translation are the backend Admin elements. Not translations of copy I added to the english filter settings.
The strings I want to translate are the settings for things like the text that outputs in the search box. The custom copy in english doesn’t get translated, and if I use WPML to translate the filter, it seems to make a copy which requires a new shortcode. Since the original english shortcode is outputting french posts correctly, it should be that I can translate these custom strings without making a new filter entirely. Do you have documentation or an example of using WMPL to translate settings for a filter?All texts should be rescanned by the WPML plugin, and then you will find all possible translation texts. Refer to the official WPML plugin documentation for translating plugins and themes.
I’m just revisiting this. I’ve updated the plug-in, so version 3.3.3, using the newer Version 3 database.
To translate the pagination terms “Prev” and “Next” there were options in WPML after rescanning.
However my translation for “Prev” is getting shown on the site, but the translation for “Next” is not.
I looked at other text domains, and anywhere the word “Next” appeared, I translated this to french, and still the Filters pagination does not want to translate “Next”. So I changed “Next” to read “Next page of posts” to make it easier to find – rescanned WMPL, and this new string does not appear anywhere. Also the custom default text in the search fields do not seem translatable. The search button now is, which is new for me, but not that default search text.
Are there filters I can use to adjust this copy per language?Hi!
We’ve verified the translations of all pages, including the pagination buttons (Next and Prev). Everything is translated correctly using the WPML plugin (see screenshots).
Please use the domain name “ymc-smart-filter” as a basis, as the new version of the plugin uses this domain name for translations.
https://prnt.sc/eCUUx6l7hjH9
https://prnt.sc/SXBaJWogAlaE
https://prnt.sc/Y30AYVacSGY6
https://prnt.sc/IYITU8ugxe_oRegarding the “Next” button, I do see that string available for translation, as well as the “Previous”, however when I add translations to both of those – only the Previous translation is output by the plug-in. The Next copy does not update on the site, even though there is a place to add that translation.
-
This reply was modified 4 months ago by
scottmmkky.
-
This reply was modified 8 months, 1 week ago by
You must be logged in to reply to this topic.