Locating a term to be translated; translating venue url term

Home Forums Calendar Products Events Calendar PRO Locating a term to be translated; translating venue url term

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1228554
    Sean
    Participant

    Hi! 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,
    Karly

    #1229209
    Nico
    Member

    Hi 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/f470694fc3b0f2d2026f

    Regarding 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,
    Nico

    #1229417
    Sean
    Participant

    Hi 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!
    Karly

    #1230014
    Nico
    Member

    Thanks 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,
    Nico

    #1246937
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Locating a term to be translated; translating venue url term’ is closed to new replies.