This support ticket is created Il y a 7 années. 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.
I wanted to translate Date field in CRED content form, so I translated "Select date", "Hour", "Minute" in files wp-cred.po and views.po where I found the strings, but the labels are still not in my language. Do I find it anywhere else?
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Dave
The datepicker itself and the strings for the hours and minutes should change automatically to reflect the language of your site, set at Settings > General, and that is what I see when I switch languages.
What language is your site in? I can check to see if the translations are missing.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Dave
We provide language translation files for many languages—but not Czech, it seems.
I am requesting that we add it, though you should expect that will take some time.
If you wanted to do it yourself, the Hour and Minute strings are from the text domain 'wpv-view'.
Each of the Toolset plugins includes shared resources, and the language files are located in (e.g. for Types), wp-content/plugins/types/vendor/toolset/toolset-common/languages/
You would need to edit the .po file with the translations of the required strings, and then generate the .mo files for your language as required, for which you can use free tools such as poedit (lien caché).
You may need to copy the Czech .mo file to the same location in each of the Toolset plugins.
now I see I was editing wrong views.po file. I am using Poedit yet (btw it´s Czech tool 🙂 ). But there is another problem, when Types will be updated, the translation will be lost. I tried to place the translation into /wp-content/languages/plugins/ as I do it with CRED translation (it works correctly), but with views-cs_CZ it doesn´t.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Dave
I did some more testing and can confirm that language files added to wp-content/languages/plugins are not recognised.
For Toolset to pick up the translations they must be stored in wp-content/plugins/types/vendor/toolset/toolset-common/languages (or the equivalent folder for Views, etc.).
This does mean that they will be lost during plugin updates and you will need to manually re-instate them.
Obviously this is far from ideal.
I'm filing a feature request that the language files be moved to wp-content/languages/plugins so that if you add your own translations they will not be lost.
This would be great, not to have manually place translation after plugin update. And I also found that strings "Select hour" and "Select minute" are not in translatable .po only in class.date.php file. Thank you.