Closed (fixed)
Project:
Ubercart Userpoints
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 09:57 UTC
Updated:
16 Mar 2010 at 14:10 UTC
This code doesn't allow translations into other languages:
drupal_set_message('You do not have enough points to complete this purchase. You have ' . $curUserPoints . ' but you need ' . $pointsNeeded . '. Please select another payment method.', 'error');
This code works for me:
drupal_set_message(t('You do not have enough points to complete this purchase. You have @curuserpoints, but you need @pointsneeded. Please select another payment method.', array('@curuserpoints' => $curUserPoints, '@pointsneeded' => $pointsNeeded)), 'error');
Comments
Comment #1
longwaveShould be fixed in latest -dev now #698884: Userpoints Payment improvements has been committed.