Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.2.3
-
Fix Version/s: 3.2.5
-
Component/s: CiviContribute
-
Labels:None
Description
The dropdown values for the frequency units for new pledges do not localize correctly.
It appears that in CRM/Pledge/Page/Pledge.php about line 368, $label should be used instead of $key to form the $freqUnitsDisplay array.
Thus it can be fixed by changing line 367 from:
$freqUnitsDisplay[$val] = ts( '%1(s)', array( 1 => $val ) );
To:
$freqUnitsDisplay[$val] = ts( '%1(s)', array( 1 => $label) );
The ts() function in this line is only translating the plural ending (s) but is not translating the frequency unit itself; for this reason the localized frequency unit should be used.