Commit 41e0ee7b authored by Tails developers's avatar Tails developers
Browse files

Prioritise more specific locale codes over shorter codes.

parent 60164eda
......@@ -118,14 +118,14 @@ set_chroot_browser_name () {
SHORT=${LONG%%_*}
EXT_DIR=${CHROOT}/usr/lib/iceweasel/extensions
BRANDING=branding/brand.dtd
if [ -e "${EXT_DIR}/langpack-${SHORT}@iceweasel.mozilla.org.xpi" ]; then
PACK="${EXT_DIR}/langpack-${SHORT}@iceweasel.mozilla.org.xpi"
TOP=chrome
REST=${SHORT}/locale
elif [ -e "${EXT_DIR}/langpack-${LONG}@iceweasel.mozilla.org.xpi" ]; then
if [ -e "${EXT_DIR}/langpack-${LONG}@iceweasel.mozilla.org.xpi" ]; then
PACK="${EXT_DIR}/langpack-${LONG}@iceweasel.mozilla.org.xpi"
TOP=chrome
REST=${LONG}/locale
elif [ -e "${EXT_DIR}/langpack-${SHORT}@iceweasel.mozilla.org.xpi" ]; then
PACK="${EXT_DIR}/langpack-${SHORT}@iceweasel.mozilla.org.xpi"
TOP=chrome
REST=${SHORT}/locale
else
PACK=${CHROOT}/usr/share/iceweasel/chrome/en-US.jar
TOP=locale
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment