Home › Forums › Calendar Products › Community Events › Missing translation in plugin "The Events Calendar" or "Comunity Events"
- This topic has 7 replies, 2 voices, and was last updated 6 years, 6 months ago by Aeky.
-
AuthorPosts
-
October 26, 2017 at 3:51 am #1369057AekyParticipant
When creating an event from “Comunity Events” between the dates is the word “to”.
I’ve seen it in the file: src / admin-views / events-meta-box.php on line 99.
I added the following instruction to the file: the-events-calendar-en_US.Po and I have also compiled it to .MO
#: src / admin-views / events-meta-box.php: 99
msgid “to”
msgid “a”I have uploaded both files to the leguages folder and it still does not work.
I have also seen that in the file: datapicker.php in the “Comunity Events” plugin also comes the same statement. However I make the changes and it does not work either.
I need to enter the word “a” between “Start Date” and “End Date”.
Can you tell me what I can do? could they add the code to be able to do the translation?
Thank you so much,
October 27, 2017 at 5:54 am #1369964PatriciaMemberHi There,
Thank you for reaching out to us!
Did you try to change your time range separator from your dashboard? I believe that’s the easiest way to achieve what you want!
Please head over to Events > Settings > Display and change the time range separator to ” a “.
The change will be applied to both The Events Calendar and Community Events.
If this is not what you are looking for, please send me an example/screenshot and I’ll be happy to assist!
Cheers,
Patricia
October 27, 2017 at 6:07 am #1369966PatriciaMemberHi there,
I’ve just noticed that you were referring to the back end of your site, sry about that!
Please give me a minute: I’ll take a look at the translation options.
October 27, 2017 at 7:16 am #1370011PatriciaMemberHi Aeky,
After a further investigation I was able to translate this specific string:
Here’s a brief explanation:
1- Copy the .mo and .po files you want to modify from community events directory (in my case, I’ve copied both tribe-events-community-pt_BR.po and tribe-events-community-pt_BR.mo):
/wp-content/plugins/the-events-calendar-community-events/lang/
2- Paste the files in the following directory:
/wp-content/languages/plugins/
3- Modify the .po file with the strings/words you want and use a converter to create a new .mo file ( I’ve used https://po2mo.net )
4- Download the new .mo and replace the original from /wp-content/languages/plugins/ (In my case, I replaced the tribe-events-community-pt_BR.mo file )
Now when I access my Community Events submission form I can see the translated string ( I’ve used a random/nonsense word to replace the “to” just to make sure that my own translation was in place 🙂 ).
You will find more info about how to override plugin language files here:
https://theeventscalendar.com/knowledgebase/how-to-override-plugin-language-files/
I hope this helps!
Cheers,
Patricia
October 28, 2017 at 4:15 am #1370590AekyParticipantThank you very much, now it works …
October 30, 2017 at 10:39 am #1371541PatriciaMemberHi There,
I’m glad to hear that everything is working as expected now!
Let me know if you need anything else and have a great day 🙂
Cheers,
Patricia
November 21, 2017 at 8:36 am #1388141Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Missing translation in plugin "The Events Calendar" or "Comunity Events"’ is closed to new replies.