function userpoints_translation in User Points 5.3
Same name and namespace in other branches
- 5 userpoints.module \userpoints_translation()
- 5.2 userpoints.module \userpoints_translation()
- 6 userpoints.module \userpoints_translation()
- 7.2 userpoints.module \userpoints_translation()
- 7 userpoints.module \userpoints_translation()
Purpose: Returns an array of common translation placeholders
17 calls to userpoints_translation()
File
- ./
userpoints.module, line 42
Code
function userpoints_translation() {
static $trans;
if (!isset($trans)) {
$trans = array(
'!Points' => variable_get(USERPOINTS_TRANS_UCPOINTS, 'Points'),
'!points' => variable_get(USERPOINTS_TRANS_LCPOINTS, 'points'),
'!point' => variable_get(USERPOINTS_TRANS_LCPOINT, 'point'),
'!Uncategorized' => variable_get(USERPOINTS_TRANS_UNCAT, 'Uncategorized'),
);
}
return $trans;
}