Changeset 4914


Ignore:
Timestamp:
May 25, 2017, 2:25:13 PM (2 years ago)
Author:
mabarracus
Message:

Add zenity buttons translations

Location:
lmd/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/debian/changelog

    r4770 r4914  
     1lmd (2.7.2.6) xenial; urgency=medium
     2
     3  * Add zenity buttons translations
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Tue, 23 May 2017 23:12:17 +0200
     6
    17lmd (2.7.2.5) xenial; urgency=high
    28
  • lmd/trunk/fuentes/lmd-server.install/usr/sbin/lmd-import-img.sh

    r3526 r4914  
    1616    MSG_EXISTS_CHROOT="Ja existeix una imatge amb este nom. Voleu sobreescriure-la?"
    1717    MSG_REMOVING="Esborrant la imatge prèvia..."
     18    MSG_OK="Accepta"
     19    MSG_CANCEL="Cancel·la"
    1820elif  [[ ${lang} == "es_ES" ]] || [[ ${lang} == "es" ]];
    1921then
     
    2729    MSG_EXISTS_CHROOT="¿Ya existe una imagen con este nombre. Desea sobreescribirla?"
    2830    MSG_REMOVING="Borrando la imagen previa..."
     31    MSG_OK="Aceptar"
     32    MSG_CANCEL="Cancelar"
    2933else
    3034    MSG_INFO_IMPORT="You are going to import image: "
     
    3741    MSG_EXISTS_CHROOT="An image with this name alreasy exists. Overwrite it?"
    3842    MSG_REMOVING="Deleting previous image..."
     43    MSG_OK="Ok"
     44    MSG_CANCEL="Cancel"
    3945fi
    4046
     47ZEN_ERROR="--ok-label=$MSG_OK"
     48ZEN_QUESTION="--cancel-label=$MSG_CANCEL $ZEN_ERROR"
    4149
    4250if [ $# -ne 1 ];
     
    4654
    4755# Confirm message
    48 zenity --question --text "${MSG_INFO_IMPORT} ${1}"
     56zenity --question --text "${MSG_INFO_IMPORT} ${1}" $ZEN_QUESTION
    4957if [ $? -eq 1 ];
    5058then
     
    5361
    5462# Admin Password
    55 PASS=`zenity --password --text "${MSG_PASS}" --title "${MSG_PASS_TITLE}"`
     63PASS=`zenity --password --text "${MSG_PASS}" --title "${MSG_PASS_TITLE}" $ZEN_QUESTION`
    5664   
    5765# Remove previous images in tmp
     
    6775
    6876echo "[lmd Import] Extracting file..."
    69 tar -xvzf ${1} -C /tmp/extracted_image | zenity --progress --pulsate --auto-close --text "${MSG_EXTRACTING}"
     77tar -xvzf ${1} -C /tmp/extracted_image | zenity --progress --pulsate --auto-close --text "${MSG_EXTRACTING}" $ZEN_QUESTION
    7078
    7179if [ $? -ne 0 ] ; then
    72 zenity --error --text "${MSG_CANCELLED}"
     80zenity --error --text "${MSG_CANCELLED}" $ZEN_ERROR
    7381exit -1
    7482fi
     
    8290if [ -d /opt/ltsp/${new_imagename} ];
    8391then
    84     zenity --question --text "${MSG_EXISTS_CHROOT}"
     92    zenity --question --text "${MSG_EXISTS_CHROOT}" $ZEN_QUESTION
    8593    if [ $? -eq  1 ]; then
    8694        exit -1
    8795    else
    88         rm -r /opt/ltsp/${new_imagename} | zenity --progress --auto-close --pulsate --text "${MSG_REMOVING}"
     96        rm -r /opt/ltsp/${new_imagename} | zenity --progress --auto-close --pulsate --text "${MSG_REMOVING}" $ZEN_QUESTION
    8997    fi
    9098fi
     
    100108ltsp-update-kernels ${new_imagename}
    101109ltsp-update-sshkeys
    102 ltsp-update-image ${new_imagename} | zenity --progress --pulsate --text "${MSG_CREATE_SQUASHFS}"
     110ltsp-update-image ${new_imagename} | zenity --progress --pulsate --text "${MSG_CREATE_SQUASHFS}" $ZEN_QUESTION
    103111lmd-server.install/usr/sbin/lmd-import-img.sh
    104112
    105113if [ $? -ne 0 ] ; then
    106 zenity --error --text "${MSG_CANCELLED}"
     114zenity --error --text "${MSG_CANCELLED}" $ZEN_ERROR
    107115exit -1
    108116fi
     
    114122invoke-rc.d nbd-server restart
    115123
    116 zenity --info --text "${MSG_SUCCESS}"
     124zenity --info --text "${MSG_SUCCESS}" $ZEN_ERROR
    117125exit 0
Note: See TracChangeset for help on using the changeset viewer.