--- userpoints_ecommerce.module 2007-05-05 20:50:54.000000000 -0400 +++ userpoints_ecommerce.module.FIXED 2007-05-05 20:51:07.000000000 -0400 @@ -33,7 +33,7 @@ function userpoints_ecommerce_userpoints $form[$group][USERPOINTS_EC_EARN] = array( '#type' => 'textfield', - '#title' => t('%Points awarded for buying (multiplied by price)', userpoints_translation()), + '#title' => t('!Points awarded for buying (multiplied by price)', userpoints_translation()), '#default_value' => variable_get(USERPOINTS_EC_EARN, 0), '#size' => 5, '#maxlength' => 5, @@ -41,7 +41,7 @@ function userpoints_ecommerce_userpoints $form[$group][USERPOINTS_MIN_PURCHASE] = array( '#type' => 'textfield', - '#title' => t('Smallest purchase for which %points are awarded', userpoints_translation()), + '#title' => t('Smallest purchase for which !points are awarded', userpoints_translation()), '#default_value' => variable_get(USERPOINTS_MIN_PURCHASE, '0.00'), '#size' => 5, '#maxlength' => 5, @@ -49,14 +49,14 @@ function userpoints_ecommerce_userpoints $form[$group][USERPOINTS_EC_PAYMENT] = array( '#type' => 'radios', - '#title' => t('Accept user %points as payment?', userpoints_translation()), + '#title' => t('Accept user !points as payment?', userpoints_translation()), '#default_value' => variable_get(USERPOINTS_EC_PAYMENT, 0), '#options' => array(t('Disable'), t('Enable')), ); $form[$group][USERPOINTS_EC_SPEND] = array( '#type' => 'textfield', - '#title' => t('%Points used in payment (for every dollar)', userpoints_translation()), + '#title' => t('!Points used in payment (for every dollar)', userpoints_translation()), '#default_value' => variable_get(USERPOINTS_EC_SPEND, 1), '#size' => 5, '#maxlength' => 5, @@ -64,7 +64,7 @@ function userpoints_ecommerce_userpoints $form[$group][USERPOINTS_MIN_SPEND] = array( '#type' => 'textfield', - '#title' => t('Number of %points that must be spent per purchase', userpoints_translation()), + '#title' => t('Number of !points that must be spent per purchase', userpoints_translation()), '#default_value' => variable_get(USERPOINTS_MIN_SPEND, 0), '#size' => 5, '#maxlength' => 5, @@ -126,21 +126,21 @@ function userpoints_ecommerce_paymentapi switch ($op) { case 'display name': - return t('User %Points', userpoints_translation()); + return t('User !Points', userpoints_translation()); case 'on checkout': $gross = store_transaction_calc_gross($txn); $points = ($gross * $multiplier); if ($points < $min) { - form_set_error('gross', t('You must spend at least %min %points', array_merge(array('%min' => $min),userpoints_translation()))); + form_set_error('gross', t('You must spend at least !min !points', array_merge(array('%min' => $min),userpoints_translation()))); } $balance = userpoints_get_current_points($uid); if ($balance < $points) { - form_set_error('gross', t('You do not have enough %points for this purchase', userpoints_translation())); + form_set_error('gross', t('You do not have enough !points for this purchase', userpoints_translation())); } - drupal_set_message(t('This purchase will cost you %point_value %points', array_merge(array('%point_value' => $points), userpoints_translation()))); + drupal_set_message(t('This purchase will cost you !point_value !points', array_merge(array('!point_value' => $points), userpoints_translation()))); break; case 'payment page': @@ -181,7 +181,7 @@ function userpoints_ecommerce_paymentapi store_send_invoice_email($txnid); } - drupal_set_message(t('Your purchase using %pointsvalue %points has been completed', array_merge(array('%pointsvalue' => $points), userpoints_translation()))); + drupal_set_message(t('Your purchase using !pointsvalue !points has been completed', array_merge(array('!pointsvalue' => $points), userpoints_translation()))); } } break;