Projet

Général

Profil

Révision b858700c

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/commerce/modules/tax/includes/commerce_tax_ui.admin.inc
82 82
    $description[] = filter_xss_admin($tax_rate['description']);
83 83
  }
84 84

  
85
  $description[] = t('Rate: @rate', array('@rate' => $tax_rate['rate']));
85
  $description[] = t('Rate: @rate', array('@rate' => $tax_rate['rate']), array('context' => 'tax rate'));
86 86

  
87 87
  // Build the actual output.
88 88
  $output = check_plain($tax_rate['title']);
......
181 181

  
182 182
  $form['tax_rate']['rate'] = array(
183 183
    '#type' => 'textfield',
184
    '#title' => t('Rate'),
184
    '#title' => t('Rate', array(), array('context' => 'tax rate')),
185 185
    '#description' => t('The percentage used to calculate this tax expressed as a decimal, e.g. .06 for a rate of 6%.'),
186 186
    '#default_value' => $tax_rate['rate'],
187 187
    '#size' => 16,
......
238 238

  
239 239
  // Validate the data type of the tax rate.
240 240
  if (!is_numeric($form_state['values']['tax_rate']['rate'])) {
241
    form_set_error('tax_rate][rate', t('You must specify a numeric rate value.'));
241
    form_set_error('tax_rate][rate', t('You must specify a numeric rate value.', array(), array('context' => 'tax rate')));
242 242
  }
243 243
}
244 244

  

Formats disponibles : Unified diff