The function userpoints_translation() dies not really work with multi-language sites!
This is because the actual name (Points, or whatever) never gets translated!
i would suppose the following function body:
if (!isset($trans)) {
$trans = array(
'!Points' => t(variable_get(USERPOINTS_TRANS_UCPOINTS, 'Points')),
'!points' => t(variable_get(USERPOINTS_TRANS_LCPOINTS, 'points')),
'!Point' => t(variable_get(USERPOINTS_TRANS_UCPOINT, 'Point')),
'!point' => t(variable_get(USERPOINTS_TRANS_LCPOINT, 'point')),
'!Uncategorized' => variable_get(USERPOINTS_TRANS_UNCAT, 'Uncategorized'),
);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | userpoints-multilangual-branded-points-791734-5.patch | 870 bytes | hejazee |
| #3 | userpoints-multilangual-branded-points-791734-3.patch | 1.08 KB | hejazee |
Comments
Comment #1
Bilmar commentedsubscribing
Comment #2
zet commentedsubscribing
Comment #3
hejazee commented+1
This patch will solve the problem
Comment #5
hejazee commentedI hope this one will be applicable!
Comment #6
hejazee commentedComment #8
manuel.adanClosing this as outdated, 6.x version is no longer maintained.