function answers_translation in Answers 7.3
Same name and namespace in other branches
- 7.4 answers.module \answers_translation()
Returns an array of common translation placeholders.
10 calls to answers_translation()
- AnswersBrandingTestCase::setUp in ./
answers.test - Enable modules and create users with specific permissions.
- AnswersBrandingTestCase::testAddQuestions in ./
answers.test - Test Qustions view page.
- answers_branding_form in includes/
answers.form.inc - Returns the form definition for answers administer page.
- answers_field_default_fields in ./
answers.features.field.inc - Implements hook_field_default_fields().
- answers_form_answer_node_form_alter in ./
answers.module - Implements hook_form_FORM_ID_alter() for answer_node_form().
File
- ./
answers.module, line 359
Code
function answers_translation($reset = FALSE) {
static $trans;
if (!isset($trans) || $reset) {
$trans = array(
'!answers_question_create_button_text' => check_plain(variable_get('answers_question_create_button_text', t('Ask Your Question'))),
'!answers_question_edit_button_text' => check_plain(variable_get('answers_question_edit_button_text', t('Update Your Question'))),
'!Questions' => check_plain(variable_get('answers_trans_ucquestions', t('Questions'))),
'!questions' => check_plain(variable_get('answers_trans_lcquestions', t('questions'))),
'!Question' => check_plain(variable_get('answers_trans_ucquestion', t('Question'))),
'!question' => check_plain(variable_get('answers_trans_lcquestion', t('question'))),
'!answers_answer_create_button_text' => check_plain(variable_get('answers_answer_create_button_text', t('Post Your Answer'))),
'!answers_answer_edit_button_text' => check_plain(variable_get('answers_answer_edit_button_text', t('Update Your Answer'))),
'!Answers' => check_plain(variable_get('answers_trans_ucanswers', t('Answers'))),
'!answers' => check_plain(variable_get('answers_trans_lcanswers', t('answers'))),
'!Answer' => check_plain(variable_get('answers_trans_ucanswer', t('Answer'))),
'!answer' => check_plain(variable_get('answers_trans_lcanswer', t('answer'))),
);
// Calling all modules implementing hook_answers_translation_alter():
drupal_alter('answers_translation', $trans);
}
return $trans;
}