Ignore:
Timestamp:
Jan 31, 2017, 1:10:03 PM (3 years ago)
Author:
mabarracus
Message:

Fixed dialog strings cutted out

Location:
lliurex-zero-installers/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-zero-installers/trunk/fuentes/debian/changelog

    r3445 r3455  
     1lliurex-zero-installers (0.126.5) xenial; urgency=medium
     2
     3  * Fixed dialog strings cutted out
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Tue, 31 Jan 2017 13:09:15 +0100
     6
    17lliurex-zero-installers (0.126.4) xenial; urgency=medium
    28
  • lliurex-zero-installers/trunk/fuentes/lliurex-zero-installer-analytics.zmds/lliurex-zero-installer-analytics.zmd

    r3445 r3455  
    1616export TEXTDOMAIN="lliurex-zero-installer-analytics"
    1717
    18 zenity --info --title="Lliurex-statistics" --text=$(gettext "Welcome to lliurex-statistics config tool\n")
     18zenity --info --title="Lliurex-statistics" --text="$(gettext "Welcome to lliurex-statistics config tool\n")"
    1919
    2020# DETECTION SECTION
     
    2828    ASK_QUESTION1="no"
    2929    ASK_QUESTION2="no"
    30     zenity --info --title="Lliurex-statistics" --text=$(gettext "This system isn't configurable\n")
     30    zenity --info --title="Lliurex-statistics" --text="$(gettext "This system isn't configurable\n")"
    3131    exit 0
    3232fi
    3333
    3434#RUN_AS_CLIENT=$(${LLIUREX_VERSION} |${GREP} -i -o client|uniq)
    35 RUN_AS_SERVER=$(lliurex-version |egrep -i -o server|uniq)
     35RUN_AS_SERVER="$(lliurex-version |egrep -i -o server|uniq)"
    3636#RUN_AS_DESKTOP=""
    3737#if [ -z "${RUN_AS_CLIENT}" -a -z "${RUN_AS_SERVER}" ];then
     
    4848fi
    4949
    50 Q1_A=$(gettext "The anonymous statistics reporting agent is %s in this system. Do you want change this state?\n")
    51 QUESTION1_B=$(gettext "What state must i use in this system?\n")
     50Q1_A="$(gettext "The anonymous statistics reporting agent is %s in this system. Do you want change this state?\n")"
     51QUESTION1_B="$(gettext "What state must i use in this system?\n")"
    5252#echo Q1 $Q1
    5353VALUE_ME="$(cat /etc/lliurex-analytics/status|grep -i -o yes|uniq)"
    5454if [ -n "$VALUE_ME" ];then
    55     STATUS_ME=$(gettext "enabled")
     55    STATUS_ME="$(gettext "enabled")"
    5656else
    57     STATUS_ME=$(gettext "disabled")
     57    STATUS_ME="$(gettext "disabled")"
    5858fi
    5959
    60 QUESTION1_A=$(printf "$Q1_A" "$STATUS_ME")
     60QUESTION1_A="$(printf "$Q1_A" "$STATUS_ME")"
    6161#echo QUESTION1 $QUESTION1
    6262if [ "$ASK_QUESTION2" = "yes" ];then
    63     Q2_A=$(gettext "The anonymous statistics reporting agent for classroom clients have %s status. Do you want to change reporting agent status?\n")
    64     QUESTION2_B=$(gettext "What state must i use for classroom clients?\n")
     63    Q2_A="$(gettext "The anonymous statistics reporting agent for classroom clients have %s status. Do you want to change reporting agent status?\n")"
     64    QUESTION2_B="$(gettext "What state must i use for classroom clients?\n")"
    6565#    echo Q2 $Q2
    6666
     
    7171    if [ "x${CURRENT_VALUE}" = "x1" ]; then
    7272    #Enabled
    73         STATUS_CLASS=$(gettext "enabled")
     73        STATUS_CLASS="$(gettext "enabled")"
    7474    else
    7575        if [ "x${CURRENT_VALUE}" = "x0" ]; then
    7676        #Disabled
    77             STATUS_CLASS=$(gettext "disabled")
     77            STATUS_CLASS="$(gettext "disabled")"
    7878        else
    7979        #Unknown
    80             STATUS_CLASS=$(gettext "unknown")
     80            STATUS_CLASS="$(gettext "unknown")"
    8181        fi
    8282    fi
    83     QUESTION2_A=$(printf "$Q2_A" "$STATUS_CLASS")
     83    QUESTION2_A="$(printf "$Q2_A" "$STATUS_CLASS")"
    8484#    echo QUESTION2 $QUESTION2
    8585fi
     
    8787
    8888# RUN QUESTIONS SECCTION
    89 zenity --question --text="$QUESTION1_A"  --ok-label=$(gettext "Yes") --cancel-label=$(gettext "No") > /dev/null 2>&1
     89zenity --question --text="$QUESTION1_A"  --ok-label="$(gettext "Yes")" --cancel-label="$(gettext "No")" > /dev/null 2>&1
    9090if [ $? -eq 0 ]; then
    91     zenity --question --text="$QUESTION1_B"  --ok-label=$(gettext "Allow") --cancel-label=$(gettext "Disallow") > /dev/null 2>&1
     91    zenity --question --text="$QUESTION1_B"  --ok-label="$(gettext "Allow")" --cancel-label="$(gettext "Disallow")" > /dev/null 2>&1
    9292    if [ $? -eq 0 ]; then
    9393        #Enable local stats
     
    101101
    102102if [ "$ASK_QUESTION2" = "yes" ]; then
    103     zenity --question --text="$QUESTION2_A"  --ok-label=$(gettext "Yes") --cancel-label=$(gettext "No") > /dev/null 2>&1
     103    zenity --question --text="$QUESTION2_A"  --ok-label="$(gettext "Yes")" --cancel-label="$(gettext "No")" > /dev/null 2>&1
    104104    if [ $? -eq 0 ]; then
    105         zenity --question --text="$QUESTION2_B"  --ok-label=$(gettext "Allow") --cancel-label=$(gettext "Disallow") > /dev/null 2>&1
     105        zenity --question --text="$QUESTION2_B"  --ok-label="$(gettext "Allow")" --cancel-label="$(gettext "Disallow")" > /dev/null 2>&1
    106106        if [ $? -eq 0 ]; then
    107107            #Enable classroom stats
Note: See TracChangeset for help on using the changeset viewer.