#!/bin/sh lang=`locale 2>/dev/null | grep ^LANG= | sed -e "s/^LANG=//;s/_.*$//;s/\..*$//;s/@.*$//;"` case $lang in es) MANIDX="/usr/share/ubuntu-artwork/home/locales/index-es.html" ;; qcv|valencia|*) MANIDX="/usr/share/ubuntu-artwork/home/locales/index-qcv.html" ;; esac PMB_DOC="/usr/share/pmb/www/doc/Manual_Administracion_PMB.es.pdf" # until we have qcv version if [ -f "$PMB_DOC" ]; then BROWSER_ALTERNATIVES="evince acroread" for b in $BROWSER_ALTERNATIVES ; do if which "$b" >/dev/null ; then ${b} "$PMB_DOC" & break fi done fi /usr/bin/sensible-browser "file://$MANIDX" &