You are here

function answers_translation in Answers 7.4

Same name and namespace in other branches
  1. 7.3 answers.module \answers_translation()

Returns an array of common translation placeholders.

21 calls to answers_translation()
AnswersCountViewsHandler::render in ./answers_views_handler_answers_count.inc
Render the field.
answers_best_answer_best_answer_flag_api2 in answers_best_answer/answers_best_answer.module
Wrapper for flag 2.x hook_flag_default_flags().
answers_best_answer_best_answer_flag_api3 in answers_best_answer/answers_best_answer.module
Wrapper for flag 3.x hook_flag_default_flags().
answers_best_answer_form_alter in answers_best_answer/answers_best_answer.module
Implements hook_form_alter().
answers_best_answer_node_view in answers_best_answer/answers_best_answer.module
Implements hook_node_view().

... See full list

File

./answers.module, line 593
The Answers module.

Code

function answers_translation() {
  static $trans;
  if (!isset($trans)) {
    $trans = array(
      '!Questions' => check_plain(variable_get(ANSWERS_TRANS_UCQUESTIONS, 'Questions')),
      '!questions' => check_plain(variable_get(ANSWERS_TRANS_LCQUESTIONS, 'questions')),
      '!Question' => check_plain(variable_get(ANSWERS_TRANS_UCQUESTION, 'Question')),
      '!question' => check_plain(variable_get(ANSWERS_TRANS_LCQUESTION, 'question')),
      '!Question_submitted' => check_plain(variable_get(ANSWERS_TRANS_UCASKED, 'Asked')),
      '!question_submitted' => check_plain(variable_get(ANSWERS_TRANS_LCASKED, 'asked')),
      '!Answers' => check_plain(variable_get(ANSWERS_TRANS_UCANSWERS, 'Answers')),
      '!answers' => check_plain(variable_get(ANSWERS_TRANS_LCANSWERS, 'answers')),
      '!Answer' => check_plain(variable_get(ANSWERS_TRANS_UCANSWER, 'Answer')),
      '!answer' => check_plain(variable_get(ANSWERS_TRANS_LCANSWER, 'answer')),
      '!Answer_submitted' => check_plain(variable_get(ANSWERS_TRANS_UCANSWERED, 'Answered')),
      '!answer_submitted' => check_plain(variable_get(ANSWERS_TRANS_LCANSWERED, 'answered')),
    );

    // Calling all modules implementing hook_answers_translation_alter():
    drupal_alter('answers_translation', $trans);
  }
  return $trans;
}