On the Cart settings overview page, the time unit given for the authenticated cart duration (when plural) is actually the anonymous cart duration unit.
In uc_cart_admin.inc, line 126 is:
'#summary' => format_plural(variable_get('uc_cart_auth_duration', '1'), 'Authenticated cart duration is @count @unit.', 'Authenticated cart duration is @count @units.', array('@unit' => $durations['singular'][variable_get('uc_cart_auth_unit', 'years')], '@units' => $durations['plural'][variable_get('uc_cart_anon_unit', 'years')])),
The 'uc_cart_anon_unit' near the end should be 'uc_cart_auth_unit'.
Also, the documentation for format_plural says, "Do not use @count in the singular string." That is, just use '1' there (which goes for the anonymous case on line 97 as well).
Comments
Comment #1
rszrama commentedFixed the strings and both format_plural() instances there. Thanks!