You are here

function userpoints_translation in User Points 5

Same name and namespace in other branches
  1. 5.3 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()

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().

... See full list

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