You are here

function userpoints_translation in User Points 5.3

Same name and namespace in other branches
  1. 5 userpoints.module \userpoints_translation()
  2. 5.2 userpoints.module \userpoints_translation()
  3. 6 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

17 calls to userpoints_translation()
theme_userpoints_list_users_header in ./userpoints.module
theme_userpoints_list_users_row in ./userpoints.module
theme_userpoints_my_userpoints in ./userpoints.module
userpoints_admin_manage in ./userpoints.module
userpoints_admin_points in ./userpoints.module

... See full list

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;
}