Restamur
Forum Replies Created
-
Thanks Ehsan again for answering. In the end I have chosen to escape the variables in html, since most of the terms actually coincide with others in the .pot. My intention is to translate it completely into Spanish, since we are a language that is very forgotten by developers, to be the second most spoken language in the world…
Ok I already managed to translate, it was a problem with the flatpickr version. However I ask one more question if it’s not a bother, is the hook.php file translatable? or should it be done by directly editing the file? Thanks for everything
Thank you very much for answering.
Correct, the language does appear in the drop-down menu, in my case Spanish, but even if I select it, I still see the calendar in English, and I don’t even see the date format update. For example, it tells me: The current time zone selected is Europe/Madrid. Universal time is 11-18-2022 09:30:18. But then in your plugin I still see the date in English format.
Edit:
I copy the file (languages.php) in folder: “../wp-content/plugins/wp-cafe/core/settings/part”
And paste it inside folder: “../wp-content/languages/languages.php<?php $lang_arr = [ 'en'=>esc_html__('English','wpcafe'), 'ru'=>esc_html__('Russian','wpcafe') , 'ar'=> esc_html__('Arabic','wpcafe') , 'es'=> esc_html__('Spanish','wpcafe'), 'de' => esc_html__('German','wpcafe'), 'ja' => esc_html__('Japanese','wpcafe') ]; ?>