[Résolu] Datepicker on a front-end Views filter does not show translation
Ce fil est résolu. Voici une description du problème et la solution proposée.
Problem:
A datepicker is shown on the front-end as a View filter but the translation is not being shown.
Solution:
The client is using a plugin ("Fast Velocity Minify") to concatenate and minimise CSS and JS files which is breaking the Toolset files used for this. Updating the plugin settings to exclude the Toolset files fixes the issue.
This support ticket is created Il y a 6 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Max
Can I check where you are using the datepicker?
From your screenshot it looks like you are talking about a Views filter, but I may be wrong because I just tested that and it displays in Russian on the front end, per my site language.
Hi Nigel
1. I'm using a datepicker Views filter (parametric search) - frontend.png
The language is not displayed correctly here. It appeared a couple of weeks ago, but I thought I'd wait for the fix, but the client asked me to take action. First I removed the plugin via ftp and reinstalled the fresh version, but it did not solve the problem ...
2. My site language is Russian - site language.png
In the backend, the datepicker is displayed correctly (rus), and in the frontend the desired language is not displayed (English appears)
This is a live site, so I can not disable all the plugins. But this thought also occurred to me. So last night I turned off all the plugins except the Toolset. Unfortunately this did not solve the problem. I prepared a cut version of the duplicator package (without /uploads directory). Can you enable private fields for me so I can give you a link to the archive?
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
I installed the site locally and disabled all non-Toolset plugins and the datepicker displayed in Russian.
I then enabled the Fast Velocity Minify plugin which looked the most obvious candidate for breaking this and, indeed, that was the problem, it broke displaying the datepicker in Russian.
I'm not sure what we can do here. I'm consulting with my second tier colleagues to see if it is something we can investigate fixing on our end.
Nigel,
I apologize. Apparently when I disconnected the plugins, I should have been more careful. or clean the cache. Fast Velocity Minify plugin has an option to exclude js files.
if I exclude this file
/wp-includes/js/jquery/ui/datepicker.min.js
everything works as it should. Thanks for sending me to the right direction