BugFix [master] - Convert all menus to 2-2 format (#2627)
convert all app_menu.php files to have all placeholders and languages and use 2-2 format for languages update app_defaults to convert any items found using legacy values in user_setings, domain_settings and default_settings
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2010
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2017
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -30,6 +30,15 @@
|
||||
$sql = "update v_domains set domain_enabled = 'true' where domain_enabled = '' or domain_enabled is null";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
//update any domains set to legacy languages
|
||||
$language = new text;
|
||||
foreach ($language->legacy_map as $language_code => $legacy_code) {
|
||||
if(strlen($legacy_code) == 5)
|
||||
continue;
|
||||
$sql = "update v_domain_settings set domain_setting_value = '$language_code' where domain_setting_value = '$legacy_code' and deafult_setting_name = 'code' and domain_setting_dubcategory = 'language' and domain_setting_category = 'domain'";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,37 +1,52 @@
|
||||
<?php
|
||||
|
||||
$apps[$x]['menu'][0]['title']['en-us'] = "Domains";
|
||||
$apps[$x]['menu'][0]['title']['es-cl'] = "Dominios";
|
||||
$apps[$x]['menu'][0]['title']['fr-fr'] = "domaines";
|
||||
$apps[$x]['menu'][0]['title']['pt-pt'] = "Domínios";
|
||||
$apps[$x]['menu'][0]['title']['pt-br'] = "Dominios";
|
||||
$apps[$x]['menu'][0]['title']['pl'] = "Domeny";
|
||||
$apps[$x]['menu'][0]['title']['ru-ru'] = "Домены";
|
||||
$apps[$x]['menu'][0]['title']['sv-se'] = "Domäner";
|
||||
$apps[$x]['menu'][0]['title']['uk'] = "Домени";
|
||||
$apps[$x]['menu'][0]['title']['de-de'] = "Domänen";
|
||||
$apps[$x]['menu'][0]['title']['de-at'] = "Domänen";
|
||||
$apps[$x]['menu'][0]['uuid'] = "4fa7e90b-6d6c-12d4-712f-62857402b801";
|
||||
$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
||||
$apps[$x]['menu'][0]['category'] = "internal";
|
||||
$apps[$x]['menu'][0]['path'] = "/core/domain_settings/domains.php";
|
||||
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
||||
|
||||
$apps[$x]['menu'][1]['title']['en-us'] = "Domain Settings";
|
||||
$apps[$x]['menu'][1]['title']['es-cl'] = "Configuraciones de Dominio";
|
||||
$apps[$x]['menu'][1]['title']['fr-fr'] = "Paramètres du Domaine";
|
||||
$apps[$x]['menu'][1]['title']['pt-pt'] = "Definições do Domínio";
|
||||
$apps[$x]['menu'][1]['title']['pt-br'] = "Configurações do Dominio";
|
||||
$apps[$x]['menu'][1]['title']['pl'] = "Ustawienia Domen";
|
||||
$apps[$x]['menu'][1]['title']['ru-ru'] = "Параметры домена";
|
||||
$apps[$x]['menu'][1]['title']['sv-se'] = "Domän Inställning";
|
||||
$apps[$x]['menu'][1]['title']['uk'] = "Налаштування доменів";
|
||||
$apps[$x]['menu'][1]['title']['de-de'] = "Domänen Einstellungen";
|
||||
$apps[$x]['menu'][1]['title']['de-at'] = "Domänen Einstellungen";
|
||||
$apps[$x]['menu'][1]['uuid'] = "0869ac79-4af3-498f-af65-69662280d74e";
|
||||
$apps[$x]['menu'][1]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
||||
$apps[$x]['menu'][1]['category'] = "internal";
|
||||
$apps[$x]['menu'][1]['path'] = "/core/domain_settings/domain_edit.php";
|
||||
$apps[$x]['menu'][1]['groups'][] = "admin";
|
||||
$y=0;
|
||||
$apps[$x]['menu'][$y]['title']['en-us'] = "Domains";
|
||||
$apps[$x]['menu'][$y]['title']['ar-eg'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['de-at'] = "Domänen";
|
||||
$apps[$x]['menu'][$y]['title']['de-de'] = "Domänen";
|
||||
$apps[$x]['menu'][$y]['title']['es-cl'] = "Dominios";
|
||||
$apps[$x]['menu'][$y]['title']['es-mx'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['fr-fr'] = "domaines";
|
||||
$apps[$x]['menu'][$y]['title']['he-il'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['it-it'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['nl-nl'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['pl-pl'] = "Domeny";
|
||||
$apps[$x]['menu'][$y]['title']['pt-br'] = "Dominios";
|
||||
$apps[$x]['menu'][$y]['title']['pt-pt'] = "Domínios";
|
||||
$apps[$x]['menu'][$y]['title']['ro-ro'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['ru-ru'] = "Домены";
|
||||
$apps[$x]['menu'][$y]['title']['sv-se'] = "Domäner";
|
||||
$apps[$x]['menu'][$y]['title']['uk-ua'] = "Домени";
|
||||
$apps[$x]['menu'][$y]['uuid'] = "4fa7e90b-6d6c-12d4-712f-62857402b801";
|
||||
$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
||||
$apps[$x]['menu'][$y]['category'] = "internal";
|
||||
$apps[$x]['menu'][$y]['path'] = "/core/domain_settings/domains.php";
|
||||
$apps[$x]['menu'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['menu'][$y]['title']['en-us'] = "Domain Settings";
|
||||
$apps[$x]['menu'][$y]['title']['ar-eg'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['de-at'] = "Domänen Einstellungen";
|
||||
$apps[$x]['menu'][$y]['title']['de-de'] = "Domänen Einstellungen";
|
||||
$apps[$x]['menu'][$y]['title']['es-cl'] = "Configuraciones de Dominio";
|
||||
$apps[$x]['menu'][$y]['title']['es-mx'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['fr-fr'] = "Paramètres du Domaine";
|
||||
$apps[$x]['menu'][$y]['title']['he-il'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['it-it'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['nl-nl'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['pl-pl'] = "Ustawienia Domen";
|
||||
$apps[$x]['menu'][$y]['title']['pt-br'] = "Configurações do Dominio";
|
||||
$apps[$x]['menu'][$y]['title']['pt-pt'] = "Definições do Domínio";
|
||||
$apps[$x]['menu'][$y]['title']['ro-ro'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['ru-ru'] = "Параметры домена";
|
||||
$apps[$x]['menu'][$y]['title']['sv-se'] = "Domän Inställning";
|
||||
$apps[$x]['menu'][$y]['title']['uk-ua'] = "Налаштування доменів";
|
||||
$apps[$x]['menu'][$y]['uuid'] = "0869ac79-4af3-498f-af65-69662280d74e";
|
||||
$apps[$x]['menu'][$y]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
||||
$apps[$x]['menu'][$y]['category'] = "internal";
|
||||
$apps[$x]['menu'][$y]['path'] = "/core/domain_settings/domain_edit.php";
|
||||
$apps[$x]['menu'][$y]['groups'][] = "admin";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user