Support » Plugin: Booking Ultra Pro Appointments Booking Calendar Plugin » How can I translate the “x time slot available”?

  • Hi and thanks for this great plugin!

    I got the plugin translated but there is one thing that isn’t found on the .po file.

    Take a look at this image:

    View post on imgur.com

    How can I translate the “x time slot available”?

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Plugins Area

    (@usersultra)

    Hi,

    Thanks for your post and kind words,

    We’re checking the issue.

    We’ll keep you posted
    Cheers

    I have the newest version of this plugin (1.0.63) installed but still I have the same problem. I can’t find the “x time slot available” in the .pot file.

    Can you help me fix this issue?

    This issue is in BOOKING-ULTRA-PRO/CLASSES/BBOOKINGULTRA.SERVICE.PHP
    Search the line containing the expression time slot.
    As you can see below, they created a variable $s to make the plural form (time slots) when available_slots>1. Then, they concateneted the string of the label with this variable, but used a fixed string ‘ time slot’ and ‘ available’ instead of calling a translation.

    //label
    $s = ”;
    if($available_slots>1 || $available_slots==0 ){$s = ‘s’;}

    $label = $available_slots.__(‘ time slot’.$s.’ available ‘,’bookingup’);

    It is easy to fix, but it is better if they to do this, because if we change the file, the next update we lose what we have done.

    • This reply was modified 2 years, 10 months ago by .

    Hola Luis,

    yo necesito cambiarlo y no lo veo tan fácil.

    Me podrías por favor indicar cómo hacerlo? qué variables debo tocar?

    Gracias!

    Listo! ya lo he conseguido 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I translate the “x time slot available”?’ is closed to new replies.