master
Daniel Napora 2020-08-24 16:13:01 +02:00
parent f19c2723e5
commit 239c8ba258
1 changed files with 10 additions and 3 deletions

View File

@ -5,10 +5,17 @@
virtualboxes() { virtualboxes() {
case $LANG in case $LANG in
pl*) pl*)
VBOXGUI="VirtualBox GUI"
VBOXES="Maszyny wirtualne" VBOXES="Maszyny wirtualne"
REFRESH="Odśwież listę" REFRESH="Odśwież listę"
;; ;;
es*)
VBOXGUI="Interfaz VirtualBox"
VBOXES="Virtual Machines"
REFRESH="Refrescar lista"
;;
*) *)
VBOXGUI="VirtualBox GUI"
VBOXES="Virtual Machines" VBOXES="Virtual Machines"
REFRESH="Refresh list" REFRESH="Refresh list"
;; ;;
@ -16,7 +23,7 @@ esac
if [[ -x "$(command -v VBoxManage)" ]]; then if [[ -x "$(command -v VBoxManage)" ]]; then
{ {
printf "%b\n" "^sep($VBOXES)" printf "%b\n" "^sep($VBOXES)"
printf "%b\n" "VirtualBox GUI,virtualbox" printf "%b\n" "$VBOXGUI,virtualbox"
printf "%b\n" "^sep()" printf "%b\n" "^sep()"
}> $HOME/.config/mabox/vboxes.csv }> $HOME/.config/mabox/vboxes.csv
VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm