function userpoints_translation in User Points 7
Same name and namespace in other branches
- 5.3 userpoints.module \userpoints_translation()
- 5 userpoints.module \userpoints_translation()
- 5.2 userpoints.module \userpoints_translation()
- 6 userpoints.module \userpoints_translation()
- 7.2 userpoints.module \userpoints_translation()
Returns an array of common translation placeholders.
33 calls to userpoints_translation()
- hook_userpoints_info in ./
userpoints.api.php - Return information about registered operations.
- userpoints_admin_points in ./
userpoints.admin.inc - Provides an administrative interface for managing points.
- userpoints_admin_settings in ./
userpoints.admin.inc - Menu callback for settings form.
- userpoints_admin_transactions in ./
userpoints.admin.inc - Displays a list of transactions.
- userpoints_admin_txn in ./
userpoints.admin.inc - Form builder for add/edit userpoints transaction form.
File
- ./
userpoints.module, line 37
Code
function userpoints_translation() {
static $trans;
if (!isset($trans)) {
$trans = array(
'!Points' => check_plain(variable_get(USERPOINTS_TRANS_UCPOINTS, 'Points')),
'!points' => check_plain(variable_get(USERPOINTS_TRANS_LCPOINTS, 'points')),
'!Point' => check_plain(variable_get(USERPOINTS_TRANS_UCPOINT, 'Point')),
'!point' => check_plain(variable_get(USERPOINTS_TRANS_LCPOINT, 'point')),
'!Uncategorized' => check_plain(variable_get(USERPOINTS_TRANS_UNCAT, 'General')),
);
}
return $trans;
}