Form field translations not working
-
Hi,
Thanks for this great plugin. I have an issue with the translation of the form fields in the free version with Enfold theme. Adding [lang=locale_LOCALE] after the English form fields used to work fine, but it doesn’t anymore (probably since the latest version 8.8.2). Funny thing is: it still works well on the SEND button field. I use PHP 7.4.21 and Falang translation plugin. Used to work fine. With or without W3TotalCache result is the same.
Also the calendar does not switch to the locale language anymore, so days and months are always in English now.
Can you help? Thanks in advance!Rob
- This topic was modified 3 years, 3 months ago by Rob de Cleen. Reason: typo
-
Hello.
Do you use this plugin for the translation https://www.ads-software.com/plugins/falang/
Falang version 1.3.16 ?
I will install it and make more test in that case.
Kind Regards.Hi,
Yes, I use Falang version 1.3.16.
Just one heads-up:
if in Falang > General Settings you select “Auto-detect language”, then you must also select “Show slug for main language”, otherwise that will not work.
In my installation I have them both NOT selected.You can use two methods for translating the form field titles:
[lang=nl_NL]Translation in the form fields themselves (in Booking Calendar admin), or in Falang > Translate Options, filter on “booking”.Thanks for your help and for testing!
- This reply was modified 3 years, 3 months ago by Rob de Cleen.
Hello.
OK here is fix that you need todo.
It’s will be available with next update of Booking Calendar, as well.Please open this file ../wp-content/plugins/booking/core/wpbc-include.php
( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )
then find this code:
//FixIn: 8.8.2.5 $locale = wpbc_get_booking_locale(); if ( ! empty( $locale ) ) { $locale_lang = strtolower( substr( $locale, 0, 2 ) ); $locale_country = strtolower( substr( $locale, 3 ) ); if ( ( $locale_lang !== 'en' ) && ( wpbc_is_file_exist( '/languages/wpdev-country-list-' . $locale . '.php' ) ) ) { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list-' . $locale . '.php'; } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; // Load Country list } } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; // Load Country list }
and replace it to this code:
//FixIn: 8.8.3.8 add_action( 'plugins_loaded', 'wpbc_late_load_country_list', 100, 1 ); /** * Load country list after locale defined by some other translation plugin. */ function wpbc_late_load_country_list() { //FixIn: 8.8.2.5 $locale = wpbc_get_booking_locale(); if ( ! empty( $locale ) ) { $locale_lang = strtolower( substr( $locale, 0, 2 ) ); $locale_country = strtolower( substr( $locale, 3 ) ); if ( ( $locale_lang !== 'en' ) && ( wpbc_is_file_exist( '/languages/wpdev-country-list-' . $locale . '.php' ) ) ) { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list-' . $locale . '.php'; } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; } } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; } }
P.S. In paid versions, it’s require additional fix in personal.php file, but it’s seems that you are using the Booking Calendar Free version.
Kind Regards.Hi,
Thanks for the quick response!
When I try to replace the code in 8.8.2 it gives the follwing error:Your PHP code changes were rolled back due to an error on line 109 of file wp-content/plugins/booking/core/wpbc-include.php. Please fix and try saving again.
syntax error, unexpected ‘&’
So in a line that wasn’t even replaced?
Kind regardsHello.
Please expand the code that you want to replace here at the page then copy all that code, and replace carefully relative to that instruction.
Thank you.Hi,
Same resultORIGINAL 8.8.2 code:
<?php /** * @version 1.0 * @package Booking Calendar * @subpackage Files Loading * @category Bookings * * @author wpdevelop * @link https://wpbookingcalendar.com/ * @email [email protected] * * @modified 29.09.2015 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly //////////////////////////////////////////////////////////////////////////////// // L O A D F I L E S //////////////////////////////////////////////////////////////////////////////// require_once( WPBC_PLUGIN_DIR . '/core/any/class-css-js.php' ); // Abstract. Loading CSS & JS files = Package: Any = require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-settings-api.php' ); // Abstract. Settings API. require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-page-structure.php' ); // Abstract. Page Structure in Admin Panel require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-menu.php' ); // CLASS. Menus of plugin require_once( WPBC_PLUGIN_DIR . '/core/any/admin-bs-ui.php' ); // Functions. Toolbar BS UI Elements if( is_admin() ) { require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-dismiss.php'; // Class - Dismiss require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-notices.php'; // Class - Showing different messages and alerts. Including some predefined static messages. require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-welcome.php'; // Class - Welcome Page - info about new version. } // Functions require_once( WPBC_PLUGIN_DIR . '/core/wpbc-debug.php' ); // Debug = Package: WPBC = require_once( WPBC_PLUGIN_DIR . '/core/wpbc-core.php' ); // Core require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dates.php' ); // Dates require_once( WPBC_PLUGIN_DIR . '/core/wpbc-translation.php' ); // Translations if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations.php' ); // All Translation Terms //FixIn: 8.7.3.6 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations1.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations1.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations2.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations2.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations3.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations3.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations4.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations4.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations5.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations5.php' ); } } require_once( WPBC_PLUGIN_DIR . '/core/wpbc-functions.php' ); // Functions require_once( WPBC_PLUGIN_DIR . '/core/wpbc-emails.php' ); // Emails // JS & CSS require_once( WPBC_PLUGIN_DIR . '/core/wpbc-css.php' ); // Load CSS require_once( WPBC_PLUGIN_DIR . '/core/wpbc-js.php' ); // Load JavaScript and define JS Varibales // Admin UI require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbars.php' ); // Toolbar - BS UI Elements require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-sql.php' ); // Data Engine for Booking Listing / Calendar Overview pages require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-class-listing.php' ); // CLASS. Booking Listing Table //FixIn: 8.6.1.13 require_once( WPBC_PLUGIN_DIR . '/core/timeline/flex-timeline.php' ); // New. Flex. Timeline require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-dashboard.php' ); // Dashboard Widget // Admin Pages require_once( WPBC_PLUGIN_DIR . '/core/admin/page-bookings.php' ); // Booking Listing require_once( WPBC_PLUGIN_DIR . '/core/admin/page-timeline.php' ); // Timeline require_once( WPBC_PLUGIN_DIR . '/core/admin/page-new.php' ); // Add New Booking page require_once( WPBC_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page require_once( WPBC_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php' ); // Settings page //////////////////////////////////////////////////////////////////////////////// if ( file_exists( WPBC_PLUGIN_DIR.'/inc/_ps/personal.php' ) ){ require_once WPBC_PLUGIN_DIR . '/inc/_ps/personal.php'; } else { require_once( WPBC_PLUGIN_DIR . '/core/admin/page-up.php' ); // Up //FixIn: 8.0.1.6 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-form-free.php' ); // Fields require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-admin.php' ); // Email - New admin. require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-visitor.php' ); // Email - New visitor require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deny.php' ); // Email - Deny - set pending require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-approved.php' ); // Email - Approved require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-trash.php' ); // Email - Trash require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deleted.php' ); // Email - Deleted - completely erase require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-general.php' ); // General ICS Help Settings page //FixIn: 8.1.1.10 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-import.php' ); // Import ICS Help Settings page //FixIn: 8.0 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-export.php' ); // Export ICS Feeds Settings page //FixIn: 8.0 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-import-gcal.php' ); // Import from Google Calendar Settings page } // Old Working require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-widget.php'; // W i d g e t s require_once WPBC_PLUGIN_DIR . '/js/captcha/captcha.php'; // C A P T C H A //FixIn: 8.8.3.8 add_action( 'plugins_loaded', 'wpbc_late_load_country_list', 100, 1 ); /** * Load country list after locale defined by some other translation plugin. */ function wpbc_late_load_country_list() { //FixIn: 8.8.2.5 $locale = wpbc_get_booking_locale(); if ( ! empty( $locale ) ) { $locale_lang = strtolower( substr( $locale, 0, 2 ) ); $locale_country = strtolower( substr( $locale, 3 ) ); if ( ( $locale_lang !== 'en' ) && ( wpbc_is_file_exist( '/languages/wpdev-country-list-' . $locale . '.php' ) ) ) { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list-' . $locale . '.php'; } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; } } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; } } require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-class.php'; // C L A S S B o o k i n g require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-booking-new.php'; // N e w require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-cron.php'; // CRON @since: 5.2.0 if( is_admin() ) { require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbar-tiny.php'; // B o o k i n g B u t t o n s in E d i t t o o l b a r } require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal-class.php'; //DONE: in 7.0 // Google Calendar Feeds Import @since: 5.2.0 - v.3.0 API support @since: 5.4.0 require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal.php'; //DONE: in 7.0 // Sync Google Calendar Events with WPBC @since: 5.2.0 - v.3.0 API support @since: 5.4.0 require_once( WPBC_PLUGIN_DIR . '/core/any/activation.php' ); require_once( WPBC_PLUGIN_DIR . '/core/wpbc-activation.php' ); require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dev-api.php' ); // API for Booking Calendar integrations //FixIn: 8.0 make_bk_action( 'wpbc_loaded_php_files' );
REPLACEMENT CODE:
<?php /** * @version 1.0 * @package Booking Calendar * @subpackage Files Loading * @category Bookings * * @author wpdevelop * @link https://wpbookingcalendar.com/ * @email [email protected] * * @modified 29.09.2015 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly //////////////////////////////////////////////////////////////////////////////// // L O A D F I L E S //////////////////////////////////////////////////////////////////////////////// require_once( WPBC_PLUGIN_DIR . '/core/any/class-css-js.php' ); // Abstract. Loading CSS & JS files = Package: Any = require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-settings-api.php' ); // Abstract. Settings API. require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-page-structure.php' ); // Abstract. Page Structure in Admin Panel require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-menu.php' ); // CLASS. Menus of plugin require_once( WPBC_PLUGIN_DIR . '/core/any/admin-bs-ui.php' ); // Functions. Toolbar BS UI Elements if( is_admin() ) { require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-dismiss.php'; // Class - Dismiss require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-notices.php'; // Class - Showing different messages and alerts. Including some predefined static messages. require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-welcome.php'; // Class - Welcome Page - info about new version. } // Functions require_once( WPBC_PLUGIN_DIR . '/core/wpbc-debug.php' ); // Debug = Package: WPBC = require_once( WPBC_PLUGIN_DIR . '/core/wpbc-core.php' ); // Core require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dates.php' ); // Dates require_once( WPBC_PLUGIN_DIR . '/core/wpbc-translation.php' ); // Translations if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations.php' ); // All Translation Terms //FixIn: 8.7.3.6 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations1.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations1.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations2.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations2.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations3.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations3.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations4.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations4.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations5.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations5.php' ); } } require_once( WPBC_PLUGIN_DIR . '/core/wpbc-functions.php' ); // Functions require_once( WPBC_PLUGIN_DIR . '/core/wpbc-emails.php' ); // Emails // JS & CSS require_once( WPBC_PLUGIN_DIR . '/core/wpbc-css.php' ); // Load CSS require_once( WPBC_PLUGIN_DIR . '/core/wpbc-js.php' ); // Load JavaScript and define JS Varibales // Admin UI require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbars.php' ); // Toolbar - BS UI Elements require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-sql.php' ); // Data Engine for Booking Listing / Calendar Overview pages require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-class-listing.php' ); // CLASS. Booking Listing Table //FixIn: 8.6.1.13 require_once( WPBC_PLUGIN_DIR . '/core/timeline/flex-timeline.php' ); // New. Flex. Timeline require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-dashboard.php' ); // Dashboard Widget // Admin Pages require_once( WPBC_PLUGIN_DIR . '/core/admin/page-bookings.php' ); // Booking Listing require_once( WPBC_PLUGIN_DIR . '/core/admin/page-timeline.php' ); // Timeline require_once( WPBC_PLUGIN_DIR . '/core/admin/page-new.php' ); // Add New Booking page require_once( WPBC_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page require_once( WPBC_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php' ); // Settings page //////////////////////////////////////////////////////////////////////////////// if ( file_exists( WPBC_PLUGIN_DIR.'/inc/_ps/personal.php' ) ){ require_once WPBC_PLUGIN_DIR . '/inc/_ps/personal.php'; } else { require_once( WPBC_PLUGIN_DIR . '/core/admin/page-up.php' ); // Up //FixIn: 8.0.1.6 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-form-free.php' ); // Fields require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-admin.php' ); // Email - New admin. require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-visitor.php' ); // Email - New visitor require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deny.php' ); // Email - Deny - set pending require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-approved.php' ); // Email - Approved require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-trash.php' ); // Email - Trash require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deleted.php' ); // Email - Deleted - completely erase require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-general.php' ); // General ICS Help Settings page //FixIn: 8.1.1.10 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-import.php' ); // Import ICS Help Settings page //FixIn: 8.0 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-export.php' ); // Export ICS Feeds Settings page //FixIn: 8.0 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-import-gcal.php' ); // Import from Google Calendar Settings page } // Old Working require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-widget.php'; // W i d g e t s require_once WPBC_PLUGIN_DIR . '/js/captcha/captcha.php'; // C A P T C H A //FixIn: 8.8.3.8 add_action( 'plugins_loaded', 'wpbc_late_load_country_list', 100, 1 ); /** * Load country list after locale defined by some other translation plugin. */ function wpbc_late_load_country_list() { <?php /** * @version 1.0 * @package Booking Calendar * @subpackage Files Loading * @category Bookings * * @author wpdevelop * @link https://wpbookingcalendar.com/ * @email [email protected] * * @modified 29.09.2015 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly //////////////////////////////////////////////////////////////////////////////// // L O A D F I L E S //////////////////////////////////////////////////////////////////////////////// require_once( WPBC_PLUGIN_DIR . '/core/any/class-css-js.php' ); // Abstract. Loading CSS & JS files = Package: Any = require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-settings-api.php' ); // Abstract. Settings API. require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-page-structure.php' ); // Abstract. Page Structure in Admin Panel require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-menu.php' ); // CLASS. Menus of plugin require_once( WPBC_PLUGIN_DIR . '/core/any/admin-bs-ui.php' ); // Functions. Toolbar BS UI Elements if( is_admin() ) { require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-dismiss.php'; // Class - Dismiss require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-notices.php'; // Class - Showing different messages and alerts. Including some predefined static messages. require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-welcome.php'; // Class - Welcome Page - info about new version. } // Functions require_once( WPBC_PLUGIN_DIR . '/core/wpbc-debug.php' ); // Debug = Package: WPBC = require_once( WPBC_PLUGIN_DIR . '/core/wpbc-core.php' ); // Core require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dates.php' ); // Dates require_once( WPBC_PLUGIN_DIR . '/core/wpbc-translation.php' ); // Translations if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations.php' ); // All Translation Terms //FixIn: 8.7.3.6 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations1.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations1.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations2.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations2.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations3.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations3.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations4.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations4.php' ); } if ( file_exists( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations5.php' ) ){ require_once( WPBC_PLUGIN_DIR . '/core/lib/wpbc_all_translations5.php' ); } } require_once( WPBC_PLUGIN_DIR . '/core/wpbc-functions.php' ); // Functions require_once( WPBC_PLUGIN_DIR . '/core/wpbc-emails.php' ); // Emails // JS & CSS require_once( WPBC_PLUGIN_DIR . '/core/wpbc-css.php' ); // Load CSS require_once( WPBC_PLUGIN_DIR . '/core/wpbc-js.php' ); // Load JavaScript and define JS Varibales // Admin UI require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbars.php' ); // Toolbar - BS UI Elements require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-sql.php' ); // Data Engine for Booking Listing / Calendar Overview pages require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-class-listing.php' ); // CLASS. Booking Listing Table //FixIn: 8.6.1.13 require_once( WPBC_PLUGIN_DIR . '/core/timeline/flex-timeline.php' ); // New. Flex. Timeline require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-dashboard.php' ); // Dashboard Widget // Admin Pages require_once( WPBC_PLUGIN_DIR . '/core/admin/page-bookings.php' ); // Booking Listing require_once( WPBC_PLUGIN_DIR . '/core/admin/page-timeline.php' ); // Timeline require_once( WPBC_PLUGIN_DIR . '/core/admin/page-new.php' ); // Add New Booking page require_once( WPBC_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page require_once( WPBC_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php' ); // Settings page //////////////////////////////////////////////////////////////////////////////// if ( file_exists( WPBC_PLUGIN_DIR.'/inc/_ps/personal.php' ) ){ require_once WPBC_PLUGIN_DIR . '/inc/_ps/personal.php'; } else { require_once( WPBC_PLUGIN_DIR . '/core/admin/page-up.php' ); // Up //FixIn: 8.0.1.6 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-form-free.php' ); // Fields require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-admin.php' ); // Email - New admin. require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-visitor.php' ); // Email - New visitor require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deny.php' ); // Email - Deny - set pending require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-approved.php' ); // Email - Approved require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-trash.php' ); // Email - Trash require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deleted.php' ); // Email - Deleted - completely erase require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-general.php' ); // General ICS Help Settings page //FixIn: 8.1.1.10 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-import.php' ); // Import ICS Help Settings page //FixIn: 8.0 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-export.php' ); // Export ICS Feeds Settings page //FixIn: 8.0 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-import-gcal.php' ); // Import from Google Calendar Settings page } // Old Working require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-widget.php'; // W i d g e t s require_once WPBC_PLUGIN_DIR . '/js/captcha/captcha.php'; // C A P T C H A //FixIn: 8.8.3.8 add_action( 'plugins_loaded', 'wpbc_late_load_country_list', 100, 1 ); /** * Load country list after locale defined by some other translation plugin. */ function wpbc_late_load_country_list() { //FixIn: 8.8.2.5 $locale = wpbc_get_booking_locale(); if ( ! empty( $locale ) ) { $locale_lang = strtolower( substr( $locale, 0, 2 ) ); $locale_country = strtolower( substr( $locale, 3 ) ); if ( ( $locale_lang !== 'en' ) && ( wpbc_is_file_exist( '/languages/wpdev-country-list-' . $locale . '.php' ) ) ) { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list-' . $locale . '.php'; } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; } } else { require_once WPBC_PLUGIN_DIR . '/languages/wpdev-country-list.php'; } } require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-class.php'; // C L A S S B o o k i n g require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-booking-new.php'; // N e w require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-cron.php'; // CRON @since: 5.2.0 if( is_admin() ) { require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbar-tiny.php'; // B o o k i n g B u t t o n s in E d i t t o o l b a r } require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal-class.php'; //DONE: in 7.0 // Google Calendar Feeds Import @since: 5.2.0 - v.3.0 API support @since: 5.4.0 require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal.php'; //DONE: in 7.0 // Sync Google Calendar Events with WPBC @since: 5.2.0 - v.3.0 API support @since: 5.4.0 require_once( WPBC_PLUGIN_DIR . '/core/any/activation.php' ); require_once( WPBC_PLUGIN_DIR . '/core/wpbc-activation.php' ); require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dev-api.php' ); // API for Booking Calendar integrations //FixIn: 8.0 make_bk_action( 'wpbc_loaded_php_files' ); require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-class.php'; // C L A S S B o o k i n g require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-booking-new.php'; // N e w require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-cron.php'; // CRON @since: 5.2.0 if( is_admin() ) { require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbar-tiny.php'; // B o o k i n g B u t t o n s in E d i t t o o l b a r } require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal-class.php'; //DONE: in 7.0 // Google Calendar Feeds Import @since: 5.2.0 - v.3.0 API support @since: 5.4.0 require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal.php'; //DONE: in 7.0 // Sync Google Calendar Events with WPBC @since: 5.2.0 - v.3.0 API support @since: 5.4.0 require_once( WPBC_PLUGIN_DIR . '/core/any/activation.php' ); require_once( WPBC_PLUGIN_DIR . '/core/wpbc-activation.php' ); require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dev-api.php' ); // API for Booking Calendar integrations //FixIn: 8.0 make_bk_action( 'wpbc_loaded_php_files' );
So what am I doing wrong?
ThanksHello.
Please send request to support @ wpbookingcalendar.com
I will send to you that file, after that.
Thank you.Thanks for the great support, much appreciated! Request sent.
Kind regardsThanks for the updated file, fix works perfectly.
Once again, excellent quick support, much appreciated! And thank you for the excellent plugin.
Kind regardsYou are welcome.
- The topic ‘Form field translations not working’ is closed to new replies.