Support

Home Forums Event Espresso Premium translate 'Unlimited"

translate 'Unlimited"

Posted: November 26, 2013 at 10:15 am

Viewing 6 reply threads


Tamevent

November 26, 2013 at 10:15 am

Hi
I have translate “Member only event” but impossible to find somewhere “Unlimited” in “Available Spaces: Unlimited”
Where is the bloody Unlimited ?
It is not in event_espresso-fr_FR.po
It is not in event_espresso-en_US.po
I have edited few files like event_espresso_display.php, event_display.php, my_events_page.php…
THanks for help


Sidney Harrell

November 26, 2013 at 4:27 pm

Unfortunately, it is hard coded, and is actually tested against in some conditionals, so simply changing it might have unexpected results. Which pages are you seeing it on where you need it translated? The easiest thing is going to be to test for it before it is echoed to the screen, and change it there.


Tamevent

November 26, 2013 at 6:29 pm

Thanks for your answer.
I need to translate it on event list (i think it’s the only page…).


Dean

November 27, 2013 at 2:06 am

Hi,

You could modify the the event_list_display.php.

Wehere it says:

<?php echo get_number_of_attendees_reg_limit($event_id, 'available_spaces') ?>

replace it with

<?php
$x = get_number_of_attendees_reg_limit($event_id, 'available_spaces');
if($x == "Unlimited") { echo "unbegrenzt"; } else { echo $x; }
?>

Obviously replace unbegrenzt with the translation of the word Unlimited.

You may also need to replace this

<?php echo get_number_of_attendees_reg_limit($event_id, 'available_spaces', 'All Seats Reserved') ?>


Tamevent

November 27, 2013 at 4:08 am

Thanks Dean but it doesn’t work. I have Unlimited again.

And i have to replace
<?php echo get_number_of_attendees_reg_limit($event_id, 'available_spaces', 'All Seats Reserved') ?> with what ?
And why would i have to replace this ? I have some events with limited attendees too.


Dean

November 27, 2013 at 4:50 am

Hi,

The one you need to replace is very similar

<?php
$x = get_number_of_attendees_reg_limit($event_id, 'available_spaces', 'All Seats Reserved');
if($x == "Unlimited") { echo "unbegrenzt"; } else { echo $x; }
?>

Have you copied the event_list_display.php and the event_list.php files to the uplaods/espresso/templates directory and edited them there?


Tamevent

November 27, 2013 at 6:44 am

Ooops i was not in uploads/espresso… Sorry. it works fine !!! Multi Thanks =)

Viewing 6 reply threads

The support post ‘translate 'Unlimited"’ 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.

Event Espresso