This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Documentation request
This topic contains 3 replies, has 2 voices.
Last updated by Mateus Getulio 1 year, 1 month ago.
Assisted by: Mateus Getulio.
Author | Posts |
---|---|
October 13, 2023 at 12:11 pm #14572839 | |
ibaneS |
Hi, we are using the Foo Events plugin to create an online store for ticket sales. The plugin works fine with WPML except for the date of the events. They always appear in the main language which is Spanish but the website has a second language which is Basque and the date format is totally different. We do not know what would be the best way to achieve this translation. We have found the .php file of the theme where the date is written, maybe we could edit it to capture the date and convert it to Euskera or would there be a more elegant way to do it. Could you help us? |
October 13, 2023 at 8:01 pm #14575179 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hi there, Thanks for your contact! In this case, what might work for you is to try to translate the date format directly in the WPML -> String Translation module. Please check our doc related for more info and tutorial teaching you how to do that: https://wpml.org/documentation/getting-started-guide/translating-your-sites-date-format-using-wpml/ Basically you have to go to WPML -> String Translation, scroll down and click the Translate texts in admin screens link. On the Admin Texts Translation page, search for and select the checkboxes for the date_format and time_format fields. Then click Add to String Translation, go back to the WPML -> String Translation module and try to translate it there. Please let us know if it helps. Thank you. Regards, |
October 16, 2023 at 8:31 am #14582329 | |
ibaneS |
Hi Mateus: Although I have found the strings and tested, it seems that the foo events does not use them as the date is still not translated. The solution could be to edit directly the php file of the plugin? Thanks |
October 16, 2023 at 5:20 pm #14587433 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello there, Thanks for your reply. To change the php files wouldn't be a good solution because these changes will be overwritten as soon as you update the plugin. The FooEvents has support for the default WP date format, as we can check it here: hidden link. You can try the method described in this doc. If this is not an option for you, please try to enable the option "Look for strings while pages are rendered" in WPML -> String Translation. Then visit that page in which the widget is located and go back to the String Translation, refresh the page and check if you'll be able to locate the strings now. (Please don't forget to uncheck the option "Look for strings while pages are rendered" once you're done). Kindly let us know about your results. Thank you. Regards, |