Skip Navigation

[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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Marqué : 

Ce sujet contient 11 réponses, a 2 voix.

Dernière mise à jour par Max Il y a 6 années et 7 mois.

Assisté par: Nigel.

Auteur
Publications
#647798

Max
frontend.png
backend.png

I am trying to:
see the correct datepicker localization (Ru)

Link to a page where the issue can be seen:
lien caché

I expected to see:
Correct Russian translation (the days of the week should also start on Monday)

Instead, I got:
The week starts on Sunday and the language is English

#648177

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Screen Shot 2018-04-11 at 10.35.03.png

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.

#648217

Max
site language.png

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)

#648450

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

OK, as you can see from my screenshot it is working on my vanilla test site.

Can you disable non-Toolset plugins and re-test, and if needs be, switch theme to twentyseventeen and re-test.

It looks like something else may be interfering here.

#648532

Max

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?

#648546

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Sure, I have set that up now.

#648549

Max

[edit]

#648854

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Screen Shot 2018-04-11 at 14.49.45.png

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.

I'll update you again.

#648960

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Max

You should use the settings for your plugin to exclude CSS and JS from the Toolset plugins when it minimises and concatenates scripts and stylesheets.

That seems to be what's breaking the datepicker settings.

Can you try that and let me know how you get on?

#648994

Max

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

#649084

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

OK, so we can close here, yes?

#649102

Max

Yes, we can close this thread