Support

Home Forums Translations "Upcoming Events" translation

"Upcoming Events" translation

Posted: December 2, 2013 at 6:24 am


Cristi Constantin

December 2, 2013 at 6:24 am

The widget called “Upcoming Events” doesn’t seem to have a translation engine for it. Is this true? How can I correct this without modifying EE files?
Thanks


Tony

  • Support Staff

December 2, 2013 at 6:49 am

Hi,

The widget uses the event-espresso/templates/widget.php file for all output.

You can copy this file to wp-content/uploads/espresso/templates/ and make any modifications needed there which will keep them ‘update-safe’.


Cristi Constantin

December 2, 2013 at 6:52 am

This cannot be an acceptable solution. I will lose any future updates that you will perform on this widget.php file.


Tony

  • Support Staff

December 2, 2013 at 7:24 am

Hi,

I have created a ticket to allow the widget output to be translatable but currently the quickest method to achieve this is to add any modifications you need and perform the steps above.

Any updates applied to the template files can be merged with the customized version using a program such as DiffMerge


Cristi Constantin

December 2, 2013 at 7:25 am

Thanks for the ticket.


Cristi Constantin

December 2, 2013 at 1:19 pm

I am trying to understand why it doesn’t work, is it because it is a widget? It has a different domain for the translations? I am thinking to use a plugin which will help me overpass this issues.

In the po file there is:

#: ../../../plugins/event-espresso.3.1/includes/admin-files/dashboard_widget.php:144
#: ../../../plugins/event-espresso.3.1/templates/widget.php:175
#: ../../../plugins/event-espresso.3.2/templates/widget.php:166
msgid “Upcoming Events”
msgstr “Evenimente viitoare”


Josh

  • Support Staff

December 2, 2013 at 1:35 pm

I looked into this and all the text strings in widget.php are being run through translation functions. Can you let us know what isn’t translating for you so we can look into this further?


Cristi Constantin

December 2, 2013 at 1:42 pm

The title itself – “Upcoming Events”. Thanks.


Josh

  • Support Staff

December 2, 2013 at 2:18 pm

The title that displayed above the widget is controlled by what is entered in the Widget settings Title field. You can change the title text via the widget settings.


Cristi Constantin

December 2, 2013 at 2:29 pm

You are so right, sorry for that, I have overlooked it.

The support post ‘"Upcoming Events" translation’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Status: closed

Updated by  Cristi Constantin 7 years, 1 month ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!