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

afagioli’s picture

Status: Active » Closed (fixed)