You are here

function _agenda_translate in Agenda 6

Same name and namespace in other branches
  1. 6.2 agenda.module \_agenda_translate()
  2. 7.2 agenda.module \_agenda_translate()
  3. 7 agenda.module \_agenda_translate()

Because we use keys for our public configuration, we want to keep these keys in english, but display them translated. This function provides a wrapper for this.

File

./agenda.module, line 393

Code

function _agenda_translate($field) {
  $t['title'] = t('Title');
  $t['where'] = t('Where');
  $t['description'] = t('Description');
  $t['start original'] = t('Start original');
  $t['start timestamp'] = t('Start timestamp');
  $t['start date'] = t('Start date');
  $t['start time'] = t('Start time');
  $t['end original'] = t('End original');
  $t['end timestamp'] = t('End timestamp');
  $t['end date'] = t('End date');
  $t['end time'] = t('End time');
  $t['published'] = t('Published');
  $t['updated'] = t('Updated');
  $t['url'] = t('URL');
  $t['link'] = t('Link');
  $t['when'] = t('When');
  $t['calendar'] = t('Calendar');
  return $t[$field];
}