function userpoints_translation in User Points 7.2
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 userpoints.module \userpoints_translation()
Returns an array of common translation placeholders.
36 calls to userpoints_translation()
- hook_userpoints_info in ./
userpoints.api.php - Return information about registered operations.
- hook_userpoints_settings in ./
userpoints.api.php - Provide settings for the shared Userpoints administration settings form.
- UserpointsAPITestCase::testUserTransactionLinksPermissions in ./
userpoints.test - Test user transactions links permissions on users profile.
- UserpointsTransaction::getMessage in ./
userpoints.transaction.inc - A message that can be displayed to the current user.
- UserpointsTransactionMetadataController::entityPropertyInfo in ./
userpoints.transaction.inc - Overrides EntityDefaultMetadataController::entityPropertyInfo().
File
- ./
userpoints.module, line 32
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;
}