You are here

function _agenda_translate in Agenda 6.2

Same name and namespace in other branches
  1. 6 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 424

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');
  $t['timezone'] = t('Timezone');
  $t['event id'] = t('Event ID');
  $t['hangout url'] = t('Hangout URL');
  $t['hangout link'] = t('Hangout link');
  $t['iCalUID'] = t('iCal UID');
  $t['recurringEventId'] = t('Recurring Event ID');
  $t['creator email'] = t('Creator Email');
  $t['creator displayName'] = t('Creator Display Name');
  $t['organizer email'] = t('Organizer Email');
  $t['organizer displayName'] = t('Organizer Display Name');
  return $t[$field];
}