Hello jimston,
there are a few things you have to do:
– install the plugins WPGlobus, WPGlobus Translate Options
– configure WPGlobus Translate Options to use active_plugins and form_field_text
– edit the Booking Calendar WpDevArt php files:
— booking_calendar.php
— booking_class.php
— controllers/Reservations.php
— views/Reservations.php
I didn’t change the line esc_html($select_option)…
This is the code I changed:
booking_class.php line 624:
$content .= “<span class=’form_info’><span class=’form_label’>”. apply_filters(‘the_title’, $form_fild_data[“label”]) .”</span> <span class=’form_value’>”. $form_fild_data[“value”] .”</span></span>”;
booking_class.php line 633:
$content .= “<h6>”.apply_filters(‘the_title’, $extra_data[‘group_label’]).”</h6>”;
booking_class.php line 634:
$content .= “<span class=’form_info’><span class=’form_label’>”. apply_filters(‘the_title’, $extra_data[‘label’]) .”</span>”;
booking_class.php line 762:
<label for=”wpdevart_’.$form_field[‘name’].'” ‘.$class.’>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).$required. ‘</label>’;
booking_class.php line 764:
<label for=”wpdevart_’.$form_field[‘name’].'”>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).'</label>’;
booking_class.php line 792:
<label for=”wpdevart_’.$form_field[‘name’].'”>’.esc_html(apply_filters(‘the_title’, $form_field[‘label’])).'</label>’;
booking_class.php line 829:
<label for=”wpdevart_’.$extra_field[‘name’].'”>’.esc_html(apply_filters(‘the_title’, $extra_field[‘label’])).'</label>’;
booking_class.php line 838:
$field_html .= ‘<option value=”‘.$select_option[“name”].'” data-operation=”‘.$select_option[“operation”].'” data-type=”‘.$select_option[“price_type”].'” data-price=”‘.$select_option[“price_percent”].'” data-label=”‘.apply_filters(‘the_title’, $select_option[“label”]).'”>’.apply_filters(‘the_title’, $select_option[“label”]).’ ‘.(($select_option[“price_percent”])? ‘(‘.$select_option[“operation”].(((isset($this->theme_option[‘currency_pos’]) && $this->theme_option[‘currency_pos’] == “before” && $select_option[“price_type”] == “price”) ? $this->currency : ”) . $select_option[“price_percent”] . (((isset($this->theme_option[‘currency_pos’]) && $this->theme_option[‘currency_pos’] == “after” && $select_option[“price_type”] == “price”) || !isset($this->theme_option[‘currency_pos’])) ? $this->currency : ”)).(($select_option[“price_type”] == “price”)? “” : “%”).’)’ : ”).'</option>’;
booking_class.php line 1124:
$form .= “<tr><td style=’padding: 1px 7px;’>”. apply_filters(‘the_title’, $form_fild_data[“label”]) .”</td> <td style=’padding: 1px 7px;’>”. $form_fild_data[“value”] .”</td></tr>”;
booking_class.php line 1133:
$extras .= “<tr><td colspan=’2′ style=’padding: 1px 7px;’>”.apply_filters(‘the_title’, $extra_data[“group_label”]).”</td></tr>”;
booking_class.php line 1132:
$extras .= “<tr><td colspan=’2′ style=’padding: 1px 7px;’>”.apply_filters(‘the_title’, $extra_data[“group_label”]).”</td></tr>”;
booking_class.php line 1133:
$extras .= “<tr><td style=’padding: 1px 7px;’>”. apply_filters(‘the_title’, $extra_data[“label”]) .”</td>”;
I’m not sure if I’m allowed to share the modified files. So if you like me to send you the files trop me your email address.
Best regards