From a403cdacf07656c0bbeb2c6bf00557070ef826ba Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 04 Apr 2006 17:40:13 -0400 Subject: [PATCH] Added Lithuanian localization --- program/include/rcube_shared.inc | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 79428fa..77753f5 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -86,13 +86,13 @@ function set_charset($charset) { global $MBSTRING; + $this->charset = $charset; - if ($MBSTRING&&function_exists( "mb_internal_encoding")) + + if ($MBSTRING && function_exists("mb_internal_encoding")) { - if(!@mb_internal_encoding( $charset)) - { + if(!@mb_internal_encoding($charset)) $MBSTRING = FALSE; - } } } @@ -108,7 +108,7 @@ // set default page title if (!strlen($this->title)) - $this->title = 'RoundCube|Mail'; + $this->title = 'RoundCube Mail'; // replace specialchars in content $__page_title = rep_specialchars_output($this->title, 'html', 'show', FALSE); @@ -117,7 +117,10 @@ // include meta tag with charset if (!empty($this->charset)) - $__page_header = '<meta http-equiv="content-type" content="text/html; charset='.$this->charset.'" />'."\n";; + { + header('Content-Type: text/html; charset='.$this->charset); + $__page_header = '<meta http-equiv="content-type" content="text/html; charset='.$this->charset.'" />'."\n"; + } // definition of the code to be placed in the document header and footer -- Gitblit v1.9.1