Multilingual Website

To run a multilingual website with WP Hotelier you need a WordPress multilingual plugin. 

If you're using WPML, please read this article instead: https://docs.wphotelier.com/article/19-wpml

WP Hotelier requires two pages to work: the listing page and the booking page. These are simple WordPress pages with a specific shortcode. When you translate those pages to another language you need to include those shortcodes in the translations as well. The last thing is to tell WP Hotelier that those new pages are the listing and booking pages respectively. You can paste this code in functions.php (child theme):

function hotelier_is_translated_booking() {     
   if ( is_page( 9 ) ) {         
      return true;     
   }      
   return false; 
}
add_filter( 'hotelier_is_booking', 'hotelier_is_translated_booking' );  

function hotelier_is_translated_listing() {     
   if ( is_page( 8 ) ) {        
      return true;     
   }      
   return false; 
} 
add_filter( 'hotelier_is_listing', 'hotelier_is_translated_listing' );

In this example 9 is the ID of the translated booking page (the page that contains the [hotelier_booking] shortcode). And 8 is the ID of the translated listing page (the page that contains the [hotelier_listing] shortcode).