]> git.sesse.net Git - ccbs/blobdiff - html/ccbs.pm
Shape text using Pango and HarfBuzz; gives us nice ligatures and exotic scripts.
[ccbs] / html / ccbs.pm
index 65838027c25483dd55cc7f888b56d69ccf9ecf88..1807e0953de82cfdbb066373c8c4af7ed4ba58a4 100755 (executable)
@@ -17,7 +17,7 @@ require '../config.pm';
 # Check for language settings
 my %cookies = fetch CGI::Cookie;
 my $lang = defined($cookies{'language'}) ? $cookies{'language'}->value : undef;
-if (defined($lang) && ($lang eq 'nb_NO' || $lang eq 'en_US')) {
+if (defined($lang) && ($lang eq 'nb_NO' || $lang eq 'nn_NO' || $lang eq 'en_US')) {
        POSIX::setlocale( &POSIX::LC_CTYPE , $lang . ".UTF-8" );
        POSIX::setlocale( &POSIX::LC_MESSAGES , $lang . ".UTF-8" );
 } else {
@@ -45,7 +45,7 @@ sub print_see_other {
        my $location = shift;
 
        print CGI::header(-status=>'303 See other',
-                         -location=>'http://ccbs.sesse.net/' . $location,
+                         -location=>$ccbs::config::webroot . $location,
                          -type=>'text/html; charset=utf-8');
 }