diff options
author | Ian Moore <imoore76@yahoo.com> | 2015-08-08 18:07:53 -0400 |
---|---|---|
committer | Ian Moore <imoore76@yahoo.com> | 2015-08-08 18:07:53 -0400 |
commit | f10958502572efa46f396f14c7016a6c0ec79104 (patch) | |
tree | f8ebfdf03cff00e7724c4175447a08bcbb904651 | |
parent | 0ffda268ad634ed2cc1f66fbecf01fe362f5b181 (diff) | |
download | phpvirtualbox-f10958502572efa46f396f14c7016a6c0ec79104.zip phpvirtualbox-f10958502572efa46f396f14c7016a6c0ec79104.tar.gz phpvirtualbox-f10958502572efa46f396f14c7016a6c0ec79104.tar.bz2 |
Fixed "Unknown PHP error" when using English.
More language changes
-rw-r--r-- | endpoints/lib/language.php | 4 | ||||
-rw-r--r-- | panes/toolbar.html | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/endpoints/lib/language.php b/endpoints/lib/language.php index 4e5b6b4..da8241b 100644 --- a/endpoints/lib/language.php +++ b/endpoints/lib/language.php @@ -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();
diff --git a/panes/toolbar.html b/panes/toolbar.html index bdd9a7e..99f2839 100644 --- a/panes/toolbar.html +++ b/panes/toolbar.html @@ -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 {
|