Fix widget name setting not being used on some widget labels (#7582)
* Fix widget name setting not being used on some widget labels * Update app_languages.php * Add translations for active calls labels and titles * Update active_calls.php * Update call_forward.php * Update device_keys.php * Add multi-lingual support for widget labels Updated widget label to support multi-lingual text. * Update caller_id.php * Add multilingual support and update widget label * Update switch_status.php * Update system_counts.php * Replace static title with localized widget label Updated widget title to use localized label. * Add multilingual support for disk usage widget * Add translations for system disk usage labels * Update system_status.php * Update system_network_status.php * Add multi-lingual support for CPU status widget * Update app_languages.php * Update app_languages.php * Update voicemails.php * Add multi-lingual support for missed calls widget * Update recent_calls.php * Simplify widget label assignment using null coalescing * Update call_center_agents.php * Update app_languages.php
This commit is contained in:
@@ -12,10 +12,7 @@
|
||||
$text = $language->get($settings->get('domain', 'language', 'en-us'), dirname($widget_url));
|
||||
|
||||
//get the dashboard label
|
||||
$widget_label = $text['title-'.$widget_key];
|
||||
if (empty($widget_label)) {
|
||||
$widget_label = $widget_name;
|
||||
}
|
||||
$widget_label = $text['title-'.$widget_key] ?? $widget_name;
|
||||
|
||||
//prepare variables
|
||||
$widget_target = ($widget_target == 'new') ? '_blank' : '_self';
|
||||
|
||||
Reference in New Issue
Block a user