function userpoints_translation in User Points 5
Same name and namespace in other branches
- 5.3 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()
returns an array of common translation placeholders
9 calls to userpoints_translation()
- userpoints_admin_manage in ./
userpoints.module - userpoints_admin_settings in ./
userpoints.module - menu callback for settings form.
- userpoints_basic_userpoints in ./
userpoints_basic.module - userpoints_block in ./
userpoints.module - userpoints_help in ./
userpoints.module - Implementation of hook_help().
File
- ./
userpoints.module, line 27
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'),
);
}
return $trans;
}