Add translations for check_voicemail, company_directory and record.

This commit is contained in:
markjcrane
2015-08-10 10:09:37 -06:00
parent 47c09b99c6
commit 01ce7bdb88
2 changed files with 40 additions and 1 deletions

View File

@@ -98,6 +98,36 @@ $text['title-other']['sv-se'] = "Annat";
$text['title-other']['uk'] = "Інший";
$text['title-other']['de-at'] = "Hochladen";
$text['option-check_voicemail']['en-us'] = "Check Voicemail";
$text['option-check_voicemail']['es-cl'] = "Compruebe el correo de voz";
$text['option-check_voicemail']['pt-pt'] = "Verifique Voicemail";
$text['option-check_voicemail']['fr-fr'] = "Vérifiez la messagerie vocale";
$text['option-check_voicemail']['pt-br'] = "Verifique Voicemail";
$text['option-check_voicemail']['pl'] = "Sprawdź pocztę głosową";
$text['option-check_voicemail']['sv-se'] = "Kontrollera röstbrevlådan";
$text['option-check_voicemail']['uk'] = "Перевірте голосову пошту";
$text['option-check_voicemail']['de-at'] = "überprüfen Sie Voicemail";
$text['option-company_directory']['en-us'] = "Company Directory";
$text['option-company_directory']['es-cl'] = "Directorio de la empresa";
$text['option-company_directory']['pt-pt'] = "Directório de Empresas";
$text['option-company_directory']['fr-fr'] = "Annuaire de l'entreprise";
$text['option-company_directory']['pt-br'] = "Directório de Empresas";
$text['option-company_directory']['pl'] = "katalog Firm";
$text['option-company_directory']['sv-se'] = "Företagskatalog";
$text['option-company_directory']['uk'] = "Каталог компаній";
$text['option-company_directory']['de-at'] = "Firmenverzeichnis";
$text['option-record']['en-us'] = "Record";
$text['option-record']['es-cl'] = "Registro";
$text['option-record']['pt-pt'] = "Registro";
$text['option-record']['fr-fr'] = "Enregistrement";
$text['option-record']['pt-br'] = "Registro";
$text['option-record']['pl'] = "Rekord";
$text['option-record']['sv-se'] = "Spela";
$text['option-record']['uk'] = "Запис";
$text['option-record']['de-at'] = "Aufzeichnung";
$text['select-global']['en-us'] = "Global";
$text['select-global']['es-cl'] = "Global";
$text['select-global']['pt-pt'] = "Global";

View File

@@ -91,12 +91,15 @@ class destinations {
$this->destinations[$x]['select_value']['ivr'] = "menu-exec-app:transfer \${destination}";
$this->destinations[$x]['select_label'] = "\${name}";
$y = 0;
$this->destinations[$x]['result']['data'][$y]['label'] = 'check_voicemail';
$this->destinations[$x]['result']['data'][$y]['name'] = '*98';
$this->destinations[$x]['result']['data'][$y]['destination'] = '*98 XML ${context}';
$y++;
$this->destinations[$x]['result']['data'][$y]['label'] = 'company_directory';
$this->destinations[$x]['result']['data'][$y]['name'] = '*411';
$this->destinations[$x]['result']['data'][$y]['destination'] = '*411 XML ${context}';
$y++;
$this->destinations[$x]['result']['data'][$y]['label'] = 'record';
$this->destinations[$x]['result']['data'][$y]['name'] = '*732';
$this->destinations[$x]['result']['data'][$y]['destination'] = '*732 XML ${context}';
$y++;
@@ -201,7 +204,13 @@ class destinations {
}
else {
$select_value = str_replace("\${".$key."}", $data[$key], $select_value);
$select_label = str_replace("\${".$key."}", $data[$key], $select_label);
if (strlen($data['label']) == 0) {
$select_label = str_replace("\${".$key."}", $data[$key], $select_label);
}
else {
$label = $data['label'];
$select_label = str_replace("\${".$key."}", $text2['option-'.$label], $select_label);
}
}
}
$select_value = str_replace("\${domain_name}", $_SESSION['domain_name'], $select_value);