#!/bin/shlanguage=$(locale -l)# The locale can be a single 2 char language or in severall segments like en, se_SE or sr_Latn_ME# this tries to get the 2 char language code from longer locales as a fallbacklanguageBase=$(echo $language | awk -F_ '{print $1}')quicktourURL="\https://www.haiku-os.org/docs/welcome/en/quicktour.html"quicktour=/boot/system/documentation/welcome/en/quicktour.htmllocalizedQuicktour=/boot/system/documentation/welcome/"$language"/quicktour.htmllocalizedQuicktourBase=/boot/system/documentation/welcome/"$languageBase"/quicktour.htmlif [ -f $localizedQuicktour ]; thenopen file:$localizedQuicktourelif [ -f $localizedQuicktourBase ]; thenopen file:$localizedQuicktourBaseelif [ -f $quicktour ]; thenopen $quicktourelseopen $quicktourURLfi