Home › Forums › Calendar Products › Events Calendar PRO › Locating a term to be translated; translating venue url term
- This topic has 5 replies, 4 voices, and was last updated 9 years, 1 month ago by
Sean.
-
AuthorPosts
-
February 2, 2017 at 2:12 pm #1228554
Sean
ParticipantHi! We want to translate some terms in the various plugins. Is there a way to use Chrome’s Dev tools to inspect a term on the front-end to determine which source text we should change in the .po file (as some terms occur multiple times across the respective plugin’s language files.
Also, is it possible to change the “venue” term in the Venue urls (e.g. http://www.example.com/venue/example) by editing a certain source text in one of the .po files?
Thanks,
KarlyFebruary 3, 2017 at 2:31 pm #1229209Nico
MemberHi there Karly,
Thanks for getting in touch with us! I’ll help you out 🙂
To change venue slug you can use the function below:
https://gist.github.com/barryhughes/f470694fc3b0f2d2026fRegarding translations, most code editor have a ‘search in folder’ function. I use it to find strings and functions names inside our plugins folders. Keep in mind some translations use ‘placeholders’! Personally I find this plugin super useful for overriding strings → Say what?
Hope that helps,
Have a great weekend,
NicoFebruary 4, 2017 at 8:25 am #1229417Sean
ParticipantHi Nico,
Thanks for the plugin suggestion and for sharing Barry’s function to change the venue slug. I noticed that the function was written back in 2015. Is the hook used still the best to use or does the latest version of Events Calendar PRO have a better hook for rewriting the venue slug?
Thanks again and hope you have a great weekend as well!
KarlyFebruary 6, 2017 at 8:35 am #1230014Nico
MemberThanks for following up Karly!
I noticed that the function was written back in 2015. Is the hook used still the best to use or does the latest version of Events Calendar PRO have a better hook for rewriting the venue slug?
This still seems to best way to do this, and it’s working with latest version of The Events Calendar and Events Calendar PRO.
Please let me know if it works for you (remember to re-save permalinks after pasting the snippet),
Best,
NicoFebruary 28, 2017 at 8:35 am #1246937Support Droid
KeymasterHey 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 ‘Locating a term to be translated; translating venue url term’ is closed to new replies.
