Contacts: Add window titles.

This commit is contained in:
Nate 2020-01-06 11:32:30 -07:00
parent 3cdd9396f6
commit e645a71de2
2 changed files with 99 additions and 11 deletions

View File

@ -64,6 +64,90 @@ $text['title-contacts']['ru-ru'] = "Контакты";
$text['title-contacts']['sv-se'] = "Kontakter";
$text['title-contacts']['uk-ua'] = "Контакти";
$text['title-contact_email-edit']['en-us'] = "Contact Email Edit";
$text['title-contact_email-edit']['ar-eg'] = "";
$text['title-contact_email-edit']['de-at'] = "Email des Kontakts bearbeiten"; //copied from de-de
$text['title-contact_email-edit']['de-ch'] = "Email des Kontakts bearbeiten"; //copied from de-de
$text['title-contact_email-edit']['de-de'] = "Email des Kontakts bearbeiten";
$text['title-contact_email-edit']['el-gr'] = "Επεξεργασία e-mail επαφής";
$text['title-contact_email-edit']['es-cl'] = "Correo electrónico de contacto Editar";
$text['title-contact_email-edit']['es-mx'] = "Correo electrónico de contacto Editar"; //copied from es-cl
$text['title-contact_email-edit']['fr-ca'] = "Contact Courriel Modifier"; //copied from fr-fr
$text['title-contact_email-edit']['fr-fr'] = "Contact Courriel Modifier";
$text['title-contact_email-edit']['he-il'] = "";
$text['title-contact_email-edit']['it-it'] = "Modifica Email Contatto";
$text['title-contact_email-edit']['nl-nl'] = "Kontact E-mail bewerken";
$text['title-contact_email-edit']['pl-pl'] = "Edutuj adres mailowy kontaktu";
$text['title-contact_email-edit']['pt-br'] = "Editar email do contato";
$text['title-contact_email-edit']['pt-pt'] = "Email de Contato Editar";
$text['title-contact_email-edit']['ro-ro'] = "";
$text['title-contact_email-edit']['ru-ru'] = "Редактировать контактный адрес электронной почты";
$text['title-contact_email-edit']['sv-se'] = "Ändra Kontakt E-post";
$text['title-contact_email-edit']['uk-ua'] = "";
$text['title-contact_email-add']['en-us'] = "Contact Email Add";
$text['title-contact_email-add']['ar-eg'] = "";
$text['title-contact_email-add']['de-at'] = "Email zum Kontakt hinzufügen"; //copied from de-de
$text['title-contact_email-add']['de-ch'] = "Email zum Kontakt hinzufügen"; //copied from de-de
$text['title-contact_email-add']['de-de'] = "Email zum Kontakt hinzufügen";
$text['title-contact_email-add']['el-gr'] = "Προσθήκη e-mail επαφής";
$text['title-contact_email-add']['es-cl'] = "Correo electrónico de contacto Agregar";
$text['title-contact_email-add']['es-mx'] = "Correo electrónico de contacto Agregar"; //copied from es-cl
$text['title-contact_email-add']['fr-ca'] = "Contactez-mail Ajouter"; //copied from fr-fr
$text['title-contact_email-add']['fr-fr'] = "Contactez-mail Ajouter";
$text['title-contact_email-add']['he-il'] = "";
$text['title-contact_email-add']['it-it'] = "Inserisci Email Contatto";
$text['title-contact_email-add']['nl-nl'] = "Kontact E-mail toevoegen";
$text['title-contact_email-add']['pl-pl'] = "Dodaj adres mailowy kontaktu";
$text['title-contact_email-add']['pt-br'] = "Adicionar email de contato";
$text['title-contact_email-add']['pt-pt'] = "Contato e-mail Adicionar";
$text['title-contact_email-add']['ro-ro'] = "";
$text['title-contact_email-add']['ru-ru'] = "Добавить контактный адрес электронной почты";
$text['title-contact_email-add']['sv-se'] = "Lägg Till Kontakt E-post";
$text['title-contact_email-add']['uk-ua'] = "";
$text['title-contact_url-edit']['en-us'] = "Contact URL Edit";
$text['title-contact_url-edit']['ar-eg'] = "";
$text['title-contact_url-edit']['de-at'] = "URL bearbeiten"; //copied from de-de
$text['title-contact_url-edit']['de-ch'] = "URL bearbeiten"; //copied from de-de
$text['title-contact_url-edit']['de-de'] = "URL bearbeiten";
$text['title-contact_url-edit']['el-gr'] = "Επεξεργασία συνδέσμου URL επαφής";
$text['title-contact_url-edit']['es-cl'] = "Correo electrónico de contacto Editar";
$text['title-contact_url-edit']['es-mx'] = "Correo electrónico de contacto Editar"; //copied from es-cl
$text['title-contact_url-edit']['fr-ca'] = "Contact Courriel Modifier"; //copied from fr-fr
$text['title-contact_url-edit']['fr-fr'] = "Contact Courriel Modifier";
$text['title-contact_url-edit']['he-il'] = "";
$text['title-contact_url-edit']['it-it'] = "Modifica URL Contatto";
$text['title-contact_url-edit']['nl-nl'] = "Kontact URL bewerken";
$text['title-contact_url-edit']['pl-pl'] = "Edytuj kontakt URL ";
$text['title-contact_url-edit']['pt-br'] = "Editar URL de contato";
$text['title-contact_url-edit']['pt-pt'] = "URL de Contato Editar";
$text['title-contact_url-edit']['ro-ro'] = "";
$text['title-contact_url-edit']['ru-ru'] = "Адрес для связи (URL): Изменить";
$text['title-contact_url-edit']['sv-se'] = "Ändra Kontakt URL";
$text['title-contact_url-edit']['uk-ua'] = "";
$text['title-contact_url-add']['en-us'] = "Contact URL Add";
$text['title-contact_url-add']['ar-eg'] = "";
$text['title-contact_url-add']['de-at'] = "URL hinzufügen"; //copied from de-de
$text['title-contact_url-add']['de-ch'] = "URL hinzufügen"; //copied from de-de
$text['title-contact_url-add']['de-de'] = "URL hinzufügen";
$text['title-contact_url-add']['el-gr'] = "Προσθήκη συνδέσμου URL επαφής";
$text['title-contact_url-add']['es-cl'] = "Correo electrónico de contacto Agregar";
$text['title-contact_url-add']['es-mx'] = "Correo electrónico de contacto Agregar"; //copied from es-cl
$text['title-contact_url-add']['fr-ca'] = "Contactez-mail Ajouter"; //copied from fr-fr
$text['title-contact_url-add']['fr-fr'] = "Contactez-mail Ajouter";
$text['title-contact_url-add']['he-il'] = "";
$text['title-contact_url-add']['it-it'] = "Inserisci URL Contatto";
$text['title-contact_url-add']['nl-nl'] = "Kontact URL toevoegen";
$text['title-contact_url-add']['pl-pl'] = "Dodaj kontakt URL ";
$text['title-contact_url-add']['pt-br'] = "Adicionar contato de e-mail";
$text['title-contact_url-add']['pt-pt'] = "Contato e-mail Adicionar";
$text['title-contact_url-add']['ro-ro'] = "";
$text['title-contact_url-add']['ru-ru'] = "Адрес для связи (URL): Добавить";
$text['title-contact_url-add']['sv-se'] = "Lägg Till Kontakt URL";
$text['title-contact_url-add']['uk-ua'] = "";
$text['title-contact_time_edit']['en-us'] = "Time Edit";
$text['title-contact_time_edit']['ar-eg'] = "";
$text['title-contact_time_edit']['de-at'] = "Zeit bearbeiten"; //copied from de-de

View File

@ -24,16 +24,20 @@
Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('contact_email_edit') || permission_exists('contact_email_add')) {
//access granted
}
else {
echo "access denied";
exit;
}
//includes
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('contact_email_edit') || permission_exists('contact_email_add')) {
//access granted
}
else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text;
@ -185,13 +189,13 @@ if (is_uuid($_GET["contact_uuid"])) {
$token = $object->create($_SERVER['PHP_SELF']);
//show the header
require_once "resources/header.php";
if ($action == "update") {
$document['title'] = $text['title-contact_email-edit'];
}
else if ($action == "add") {
$document['title'] = $text['title-contact_email-add'];
}
require_once "resources/header.php";
//javascript to toggle input/select boxes
echo "<script type='text/javascript'>";