Fixed "Unknown PHP error" when using English.

More language changes
This commit is contained in:
Ian Moore 2015-08-08 18:07:53 -04:00
parent 0ffda268ad
commit f109585025
2 changed files with 7 additions and 7 deletions

View File

@ -68,9 +68,9 @@ class __vbox_language {
}
self::$langdata = unserialize(file_get_contents(VBOX_BASE_LANG_DIR.'/source/'.$lang.'.dat'));
self::$langdata = unserialize(@file_get_contents(VBOX_BASE_LANG_DIR.'/source/'.$lang.'.dat'));
$xmlObj = simplexml_load_string(file_get_contents(VBOX_BASE_LANG_DIR.'/'.$lang.'.xml'));
$xmlObj = simplexml_load_string(@file_get_contents(VBOX_BASE_LANG_DIR.'/'.$lang.'.xml'));
$arrXml = $this->objectsIntoArray($xmlObj);
$lang = array();

View File

@ -73,19 +73,19 @@ var vboxChooserSettingsMenu = {
'icon' : 'hd'
},
'USB' : {
'label' : 'USB Devices',
'label' : 'USB',
'icon' : 'usb'
},
'Network' : {
'label' : 'Network Adapters...',
'label' : 'Network',
'icon' : 'nw'
},
'SharedFolders' : {
'label' : 'Shared Folders...',
'label' : 'Shared Folders',
'icon' : 'sf'
},
'RemoteDisplay' : {
'label' : 'Enable Remote Display',
'label' : 'Remote Display',
'icon' : 'vrdp',
'separator' : true
},
@ -388,7 +388,7 @@ function vboxUpdateSettingsMenu(vm) {
}
if(dvdDevices.length) {
var ul = null;
var li = $('<li />').html("<a href='#dvdDevices' style='background-image:url(images/vbox/cd_16px.png);'>"+trans('CD/DVD Devices','UIActionPool')+'</a>').addClass('vboxVMSettingsStorage');
var li = $('<li />').html("<a href='#dvdDevices' style='background-image:url(images/vbox/cd_16px.png);'>"+trans('Optical Drives','UIActionPool')+'</a>').addClass('vboxVMSettingsStorage');
if(dvdDevices.length == 1) {
ul = dvdDevices[0].children('ul').first();
} else {