How to translate 'individual-registration' in urls

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92135 by safeworld4women
Hi
I need to be able to translate the words individual-registration which is used in the url on registration pages.
ie
Code:
/events/eventname/individual-registration
Have looked in the translation section but haven't been able to find this.

Any help appreciated

Andrew

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #92136 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to translate 'individual-registration' in urls
It is unfortunately, in the code

components/com_eventbooking/router.php

Tuan

Please Log in or Create an account to join the conversation.

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92137 by safeworld4women
Replied by safeworld4women on topic How to translate 'individual-registration' in urls
Hi Tuan
Love your quick replies!
So, looking at the router file you linked to - there is this section
Code:
case 'register.individual_registration': if ($eventId) { $segments[] = EventbookingHelperRoute::getEventTitle($eventId); } $segments[] = 'Individual Registration'; unset($query['task']); break;
Now I experimented with changing this line
Code:
$segments[] = 'Individual Registration';
to
Code:
$segments[] = 'Register';
Which worked
However does this affect anything else if I do this?

Best

Andrew

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc