- Timestamp:
- Jun 8, 2016, 1:42:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zero-lliurex-dni/trunk/fuentes/zero-lliurex-dni.zlaunchers/zero-lliurex-accv.zmd
r1867 r1874 23 23 24 24 # MSGS 25 MSG_CANCEL_LABEL="$(gettext 'Cancel')" 26 MSG_OK_LABEL="$(gettext 'Install')" 27 MSG_TITLE="$(gettext 'ACCV CARD READER CONFIGURATOR')" 25 28 MSG_LIBRARY_NOT_FOUND="$(gettext 'Library not found:')" 29 MSG_ERROR_LINK="$(gettext 'is not in your system, impossible to create link.')" 30 MSG_ERROR_REPOS="$(gettext 'is impossible to install , perhaps you have some problems with repositories.')" 31 MSG_DRIVER_INFO="$(gettext 'With this assitent you are going to install card drivers from ACCV to use in Firefox and Thunderbird.')" 32 MSG_OK_DRIVER="$(gettext 'Card readers accepted:')" 33 MSG_FAILED_DRIVER="$(gettext 'Unstable card readers:')" 26 34 MSG_SOME_PROBLEM_FIREFOX="$(gettext 'Some problem with firefox profile')" 27 35 MSG_ONCE_FIREFOX="$(gettext 'Start firefox once at least')" … … 72 80 if [ $is_running -gt 0 ]; then 73 81 while [ $is_running -gt 0 ] ; do 74 zenity --info --t ext="$MSG_RUNNING_THUNDER"82 zenity --info --title="$MSG_TITLE" --text="$MSG_RUNNING_THUNDER" 75 83 is_running=$(ps -fe | grep thunderbird | grep -v grep | wc -l) 76 84 done … … 170 178 get_firefox_default_profile 171 179 if [ ! -d $FF_PROFILE_PATH ]; then 172 zenity --info --t ext="$MSG_SOME_PROBLEM_FIREFOX"180 zenity --info --title="$MSG_TITLE" --text="$MSG_SOME_PROBLEM_FIREFOX" 173 181 return 1 174 182 fi … … 177 185 return 0 178 186 else 179 zenity --info --t ext="$MSG_CREATING_FIREFOX"187 zenity --info --title="$MSG_TITLE" --text="$MSG_CREATING_FIREFOX" 180 188 echo "$MSG_CREATING_FIREFOX" >> $ACCV_LOG 181 189 su $USER -c "firefox" … … 192 200 get_thunderbird_default_profile 193 201 if [ ! -d $TH_PROFILE_PATH ]; then 194 zenity --info --t ext="$MSG_SOME_PROBLEM_THUNDER"202 zenity --info --title="$MSG_TITLE" --text="$MSG_SOME_PROBLEM_THUNDER" 195 203 return 1 196 204 fi … … 199 207 return 0 200 208 else 201 zenity --info --t ext="$MSG_CREATING_THUNDER"209 zenity --info --title="$MSG_TITLE" --text="$MSG_CREATING_THUNDER" 202 210 echo "$MSG_CREATING_THUNDER" >> $ACCV_LOG 203 211 su $USER -c "thunderbird" … … 251 259 test_running_firefox 252 260 if [ $? -gt 0 ]; then 253 zenity --info --t ext="$MSG_RUNNING_FIREFOX"261 zenity --info --title="$MSG_TITLE" --text="$MSG_RUNNING_FIREFOX" 254 262 ERROR=1 255 263 echo "$ERROR do_firefox" > $ACCV_ERROR … … 264 272 fi 265 273 else 266 zenity --info --t ext="$MSG_NOT_FIREFOX"274 zenity --info --title="$MSG_TITLE" --text="$MSG_NOT_FIREFOX" 267 275 ERROR=1 268 276 echo "$ERROR do_firefox_else" > $ACCV_ERROR … … 279 287 test_running_thunderbird 280 288 if [ $? -gt 0 ]; then 281 zenity --info --t ext="$MSG_RUNNING_THUNDER"289 zenity --info --title="$MSG_TITLE" --text="$MSG_RUNNING_THUNDER" 282 290 ERROR=1 283 291 echo "$ERROR do_thunderbird" > $ACCV_ERROR … … 292 300 fi 293 301 else 294 zenity --info --t ext="$MSG_NOT_THUNDER"302 zenity --info --title="$MSG_TITLE" --text="$MSG_NOT_THUNDER" 295 303 ERROR=1 296 304 echo "$ERROR do_thunderbird_else" > $ACCV_ERROR … … 333 341 echo "">> $ACCV_LOG 334 342 echo "Abort installation">> $ACCV_LOG 335 zenity --error --t ext="Impossible to create ln with $ROUTE_LIBRARY/$LIBRARY because is not in your system.$MSG_FINAL_ACCV_ERROR"343 zenity --error --title="$MSG_TITLE" --text="$ROUTE_LIBRARY/$LIBRARY $MSG_ERROR_LINK $MSG_FINAL_ACCV_ERROR" 336 344 exit 1 337 345 fi … … 360 368 echo "">> $ACCV_LOG 361 369 echo "Abort installation">> $ACCV_LOG 362 zenity --error --t ext="Impossible to create ln with $ROUTE_LIBRARY/$LIBRARY because is not in your system.$MSG_FINAL_ACCV_ERROR"370 zenity --error --title="$MSG_TITLE" --text="$ROUTE_LIBRARY/$LIBRARY $MSG_ERROR_LINK $MSG_FINAL_ACCV_ERROR" 363 371 exit 1 364 372 fi … … 375 383 check_install(){ 376 384 if [ $1 != 0 ] ; then 377 zenity --error --t ext="Impossible to install $2, problems with repos.$MSG_FINAL_ACCV_ERROR"385 zenity --error --title="$MSG_TITLE" --text="$2 $MSG_ERROR_REPOS $MSG_FINAL_ACCV_ERROR" 378 386 ERROR=1 379 387 echo "$ERROR check_install" > $ACCV_ERROR … … 394 402 echo "$ERROR inicializacion" > $ACCV_ERROR 395 403 396 zenity --info --text '<span foreground="blue" font="15">Funcionamiento correcto\ncon los lectores:</span>\n\n<i>- Identive SCR3310v2</i>\n<i>- Identive Cloud 2700R</i>\n<i>- Omnikey Cardman 3021 y 3121</i>\n\n<span foreground="blue" font="15">Funcionamiento inestable con:</span>\n\n<i>- Teclado Cherry G83-6644</i>' 404 zenity --question --title="$MSG_TITLE" --text "<span foreground='blue' font='12'>$MSG_DRIVER_INFO</span>\n\n<span foreground='red' font='10'>$MSG_OK_DRIVER</span>\n\n<i>- Identive SCR3310v2</i>\n<i>- Identive Cloud 2700R</i>\n<i>- Omnikey Cardman 3021 y 3121</i>\n\n<span foreground='red' font='10'>Unstable card readers:</span>\n\n<i>- Teclado Cherry G83-6644</i>" --ok-label="$MSG_OK_LABEL" --cancel-label="$MSG_CANCEL_LABEL" 405 [ $? == '0' ] || exit 1 397 406 USER_HOME=$(pwd) 398 407 USER=$(who | awk '{print $1;}') … … 459 468 echo "60" 460 469 if [ $(rgrep 1 $ACCV_ERROR) ] ; then 461 zenity --error --t ext="$MSG_FINAL_ERROR"470 zenity --error --title="$MSG_TITLE" --text="$MSG_FINAL_ERROR" 462 471 exit 1 463 472 fi … … 469 478 ) | 470 479 zenity --progress \ 471 --title=" ZERO-LLIUREX-ACCV" \480 --title="$MSG_TITLE" \ 472 481 --text="$MSG_INSTALLING_ACCV_PROGRESS" \ 473 482 --percentage=0 \ … … 480 489 481 490 if [ $(rgrep 1 $ACCV_ERROR) ] ; then 482 zenity --error --t ext="$MSG_FINAL_ERROR"491 zenity --error --title="$MSG_TITLE" --text="$MSG_FINAL_ERROR" 483 492 echo "" >> $ACCV_LOG 484 493 echo "$MSG_FINAL_ERROR" >> $ACCV_LOG 485 494 exit 1 486 495 else 487 zenity --info --t ext="$MSG_FINAL_ACCV_OK"496 zenity --info --title="$MSG_TITLE" --text="$MSG_FINAL_ACCV_OK" 488 497 echo "" >> $ACCV_LOG 489 498 echo "$MSG_FINAL_ACCV_OK" >> $ACCV_LOG
Note: See TracChangeset
for help on using the changeset viewer.