From 144e22094efaf1472cad273ec702317b448a3216 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Mon, 10 Aug 2015 10:09:37 -0600 Subject: [PATCH] Add translations for check_voicemail, company_directory and record. --- app/dialplan/app_languages.php | 30 ++++++++++++++++++++++++++++++ resources/classes/destinations.php | 11 ++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/app/dialplan/app_languages.php b/app/dialplan/app_languages.php index 7164599a5e..2436006732 100644 --- a/app/dialplan/app_languages.php +++ b/app/dialplan/app_languages.php @@ -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"; diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index db112440a9..71d89cb2df 100644 --- a/resources/classes/destinations.php +++ b/resources/classes/destinations.php @@ -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);