You are here

function userpoints_translation in User Points 6

Same name and namespace in other branches
  1. 5.3 userpoints.module \userpoints_translation()
  2. 5 userpoints.module \userpoints_translation()
  3. 5.2 userpoints.module \userpoints_translation()
  4. 7.2 userpoints.module \userpoints_translation()
  5. 7 userpoints.module \userpoints_translation()

Purpose: Returns an array of common translation placeholders

21 calls to userpoints_translation()
theme_userpoints_list_my_userpoints in ./userpoints.module
theme_userpoints_list_users_header in ./userpoints.module
theme_userpoints_list_users_row in ./userpoints.module
userpoints_action_grant_points_form in ./userpoints_rules.rules.inc
Rules action form configuration - allow number of points to be set.
userpoints_admin_manage in ./userpoints.module

... See full list

File

./userpoints.module, line 46

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, 'Uncategorized')),
    );
  }
  return $trans;
}