You are here

function casetracker_tt in Case Tracker 6

Same name and namespace in other branches
  1. 7 casetracker.module \casetracker_tt()

Translate user defined string. Wrapper function for tt() if i18nstrings enabled.

The string id for case states will be: case:[realm]#[csid]:name

Parameters

$name: String id without 'casetracker', which will be prepended automatically

1 call to casetracker_tt()
casetracker_case_state_load in ./casetracker.module
Returns information about the various case states and their options. The number of parameters passed will determine the return value.

File

./casetracker.module, line 582
Enables the handling of projects and their cases.

Code

function casetracker_tt($name, $string, $langcode = NULL) {
  return function_exists('i18nstrings') ? i18nstrings('casetracker:' . $name, $string, $langcode) : $string;
}