Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to get this module translatable:
$res_msg_main = '<p>We have '. count($sorted_rates) .' room' ;
if (count($sorted_rates) != 1) {
$res_msg_main .= 's';
}
$res_msg_main .= ' available';
can be replaced with a more drupaler:
$res_msg_main = format_plural( count($sorted_rates) , t('We currently have 1 room available'), t('We currently have ') . count($sorted_rates) . ' ' . t('rooms available') );
Comments
Comment #1
afagioli