MOH: Move None option to Others option group.

This commit is contained in:
fusionate 2023-04-05 00:39:00 +00:00
parent f5e21d8a49
commit 36a4768917
No known key found for this signature in database
3 changed files with 24 additions and 24 deletions

View File

@ -43,27 +43,6 @@ $text['title-music_on_hold']['ru-ru'] = "Музыка на удержании";
$text['title-music_on_hold']['sv-se'] = "Väntmusik";
$text['title-music_on_hold']['uk-ua'] = "Музика на утриманні";
$text['label-others']['en-us'] = "Others";
$text['label-others']['en-gb'] = "Others";
$text['label-others']['ar-eg'] = "آخرون";
$text['label-others']['de-at'] = "Andere"; //copied from de-de
$text['label-others']['de-ch'] = "Andere"; //copied from de-de
$text['label-others']['de-de'] = "Andere";
$text['label-others']['es-cl'] = "";
$text['label-others']['es-mx'] = "";
$text['label-others']['fr-ca'] = "Autres"; //copied from fr-fr
$text['label-others']['fr-fr'] = "Autres";
$text['label-others']['he-il'] = "אחרים";
$text['label-others']['it-it'] = "Altri";
$text['label-others']['nl-nl'] = "Andere";
$text['label-others']['pl-pl'] = "Pozostałe";
$text['label-others']['pt-br'] = "Outras"; //copied from pt-pt
$text['label-others']['pt-pt'] = "Outras";
$text['label-others']['ro-ro'] = "";
$text['label-others']['ru-ru'] = "другие";
$text['label-others']['sv-se'] = "Andra";
$text['label-others']['uk-ua'] = "інші";
$text['option-local']['en-us'] = "Local";
$text['option-local']['en-gb'] = "Local";
$text['option-local']['ar-eg'] = "";

View File

@ -78,7 +78,6 @@ if (!class_exists('switch_music_on_hold')) {
$music_list = $this->get();
if (count($music_list) > 0) {
$select .= " <option value=''>\n";
$select .= " <option value='silence' ".($selected == "silence" ? 'selected="selected"' : null).">".$text['label-none']."</option>\n";
$select .= " <optgroup label='".$text['label-music_on_hold']."'>\n";
$previous_name = '';
foreach($music_list as $row) {
@ -126,11 +125,12 @@ if (!class_exists('switch_music_on_hold')) {
unset($sql, $parameters, $streams, $row);
}
//add additional options
if (is_array($options) && sizeof($options) > 0) {
$select .= " <optgroup label='".$text['label-others']."'>";
$select .= " <option value='silence' ".($selected == "silence" ? 'selected="selected"' : null).">".$text['label-none']."</option>\n";
if (is_array($options) && sizeof($options) > 0) {
$select .= $options;
$select .= " </optgroup>\n";
}
$select .= " </optgroup>\n";
//end the select and return it
$select .= "</select>\n";
return $select;

View File

@ -4566,6 +4566,27 @@ $text['label-path']['ru-ru'] = "Путь к проекту";
$text['label-path']['sv-se'] = "Projekt Path";
$text['label-path']['uk-ua'] = "шлях проекту";
$text['label-others']['en-us'] = "Others";
$text['label-others']['en-gb'] = "Others";
$text['label-others']['ar-eg'] = "آخرون";
$text['label-others']['de-at'] = "Andere"; //copied from de-de
$text['label-others']['de-ch'] = "Andere"; //copied from de-de
$text['label-others']['de-de'] = "Andere";
$text['label-others']['es-cl'] = "";
$text['label-others']['es-mx'] = "";
$text['label-others']['fr-ca'] = "Autres"; //copied from fr-fr
$text['label-others']['fr-fr'] = "Autres";
$text['label-others']['he-il'] = "אחרים";
$text['label-others']['it-it'] = "Altri";
$text['label-others']['nl-nl'] = "Andere";
$text['label-others']['pl-pl'] = "Pozostałe";
$text['label-others']['pt-br'] = "Outras"; //copied from pt-pt
$text['label-others']['pt-pt'] = "Outras";
$text['label-others']['ro-ro'] = "";
$text['label-others']['ru-ru'] = "другие";
$text['label-others']['sv-se'] = "Andra";
$text['label-others']['uk-ua'] = "інші";
$text['button-tickets']['en-us'] = "Tickets";
$text['button-tickets']['en-gb'] = "Tickets";
$text['button-tickets']['ar-eg'] = "";