mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
40
core/user_settings/app_defaults.php
Normal file
40
core/user_settings/app_defaults.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2017
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
//proccess this only one time
|
||||
if ($domains_processed == 1) {
|
||||
//update any users 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_user_settings set user_setting_value = '$language_code' where user_setting_value = '$legacy_code' and deafult_setting_name = 'code' and user_setting_dubcategory = 'language' and user_setting_category = 'domain'";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,25 +1,30 @@
|
||||
<?php
|
||||
|
||||
$apps[$x]['menu'][1]['title']['en-us'] = "Dashboard";
|
||||
$apps[$x]['menu'][1]['title']['es-cl'] = "Dashboard Usuario";
|
||||
$apps[$x]['menu'][1]['title']['fr-fr'] = "Tableau de bord de l'utilisateur";
|
||||
$apps[$x]['menu'][1]['title']['pt-pt'] = "Painel de Controle do Usuário";
|
||||
$apps[$x]['menu'][1]['title']['pt-br'] = "Painel de controle do usuário (Dashboard)";
|
||||
$apps[$x]['menu'][1]['title']['pl'] = "Panel użytkowników";
|
||||
$apps[$x]['menu'][1]['title']['ru-ru'] = "Панель пользователя";
|
||||
$apps[$x]['menu'][1]['title']['he'] = "ממשק משתמש";
|
||||
$apps[$x]['menu'][1]['title']['uk'] = "Панель користувача";
|
||||
$apps[$x]['menu'][1]['title']['sv-se'] = "Användarpanel";
|
||||
$apps[$x]['menu'][1]['title']['de-de'] = "Benutzerübersicht";
|
||||
$apps[$x]['menu'][1]['title']['de-at'] = "Benutzerübersicht";
|
||||
$apps[$x]['menu'][1]['title']['ro'] = "Panou control utilizator";
|
||||
$apps[$x]['menu'][1]['title']['ar-eg'] = "الصفحه الرئيسيه للمستخدم";
|
||||
$apps[$x]['menu'][1]['uuid'] = "92c8ffdb-3c82-4f08-aec0-82421ec41bb5";
|
||||
$apps[$x]['menu'][1]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
|
||||
$apps[$x]['menu'][1]['category'] = "internal";
|
||||
$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
|
||||
$apps[$x]['menu'][1]['groups'][] = "user";
|
||||
$apps[$x]['menu'][1]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][1]['groups'][] = "superadmin";
|
||||
|
||||
<?php
|
||||
|
||||
$y = 0;
|
||||
$apps[$x]['menu'][$y]['title']['en-us'] = "Dashboard";
|
||||
$apps[$x]['menu'][$y]['title']['ar-eg'] = "الصفحه الرئيسيه للمستخدم";
|
||||
$apps[$x]['menu'][$y]['title']['de-at'] = "Benutzerübersicht";
|
||||
$apps[$x]['menu'][$y]['title']['de-de'] = "Benutzerübersicht";
|
||||
$apps[$x]['menu'][$y]['title']['es-cl'] = "Dashboard Usuario";
|
||||
$apps[$x]['menu'][$y]['title']['es-mx'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['fr-ca'] = "";
|
||||
$apps[$x]['menu'][$y]['title']['fr-fr'] = "Tableau de bord de l'utilisateur";
|
||||
$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'] = "Panel użytkowników";
|
||||
$apps[$x]['menu'][$y]['title']['pt-br'] = "Painel de controle do usuário (Dashboard)";
|
||||
$apps[$x]['menu'][$y]['title']['pt-pt'] = "Painel de Controle do Usuário";
|
||||
$apps[$x]['menu'][$y]['title']['ro-ro'] = "Panou control utilizator";
|
||||
$apps[$x]['menu'][$y]['title']['ru-ru'] = "Панель пользователя";
|
||||
$apps[$x]['menu'][$y]['title']['sv-se'] = "Användarpanel";
|
||||
$apps[$x]['menu'][$y]['title']['uk-ua'] = "Панель користувача";
|
||||
$apps[$x]['menu'][$y]['uuid'] = "92c8ffdb-3c82-4f08-aec0-82421ec41bb5";
|
||||
$apps[$x]['menu'][$y]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
|
||||
$apps[$x]['menu'][$y]['category'] = "internal";
|
||||
$apps[$x]['menu'][$y]['path'] = "/core/user_settings/user_dashboard.php";
|
||||
$apps[$x]['menu'][$y]['groups'][] = "user";
|
||||
$apps[$x]['menu'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][$y]['groups'][] = "superadmin";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user