X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=handlers%2F10_translations.sh;h=e93b465e9ce2849d6c0aca8da3210d7178aa7da5;hb=9c54db6ec648c690cc3111faa19c3312d51d041e;hp=da67f8947cb6f1b0bb99ac32762fbb1adb4f8c50;hpb=392e7519b4b85a57d85164a72e00fedc0d36cc62;p=shellwiki diff --git a/handlers/10_translations.sh b/handlers/10_translations.sh index da67f89..e93b465 100755 --- a/handlers/10_translations.sh +++ b/handlers/10_translations.sh @@ -29,6 +29,10 @@ case ${PATH_INFO} in ;; */:?*/\[*\]) :;; # Default handler, considered valid in most cases + */:?*/:?*) + # Accidental double language link, last one stays valid! + REDIRECT "${_BASE}${PATH_INFO%/:?*/:?*}/:${PATH_INFO##*/:}" + ;; */:?*/?*) :;; # Default attachment handler */:?*/) # Faulty URL build @@ -63,4 +67,6 @@ case ${PATH_INFO} in ;; esac +[ -r "${_EXEC}/l10n/${LANGUAGE}.sh" ] && . "${_EXEC}/l10n/${LANGUAGE}.sh" + return 1