Commits

Martin Geisler committed 981b087

design: support xx_YY languages

Comments (0)

Files changed (1)

          var hrefparts = document.location.href.split("/")
          var idx;
          for (idx = hrefparts.length - 1; idx > 0; idx--) {
-             if (hrefparts[idx].length == 2) break
+             var part = hrefparts[idx];
+             if (/^[a-z][a-z](_[A-Z][A-Z])?$/.test(part))
+                 break
          }
          var output = []
          for (var i = 0; i < languages.length; i++) {