[Gnucash-changes] r13214 - htdocs/trunk - handling content-type

Neil Williams codehelp at cvs.gnucash.org
Sat Feb 11 15:03:08 EST 2006


Author: codehelp
Date: 2006-02-11 15:03:07 -0500 (Sat, 11 Feb 2006)
New Revision: 13214
Trac: http://svn.gnucash.org/trac/changeset/13214

Modified:
   htdocs/trunk/emulate_globals_on.php
   htdocs/trunk/www/externals/header.phtml
Log:
handling content-type

Modified: htdocs/trunk/emulate_globals_on.php
===================================================================
--- htdocs/trunk/emulate_globals_on.php	2006-02-11 20:00:52 UTC (rev 13213)
+++ htdocs/trunk/emulate_globals_on.php	2006-02-11 20:03:07 UTC (rev 13214)
@@ -21,12 +21,14 @@
 # Set the language as 'en_GB' for testing
 # note that gettext in php requires the entire
 # string in one line, one quote.
-$langs=array('nl_BE.ISO-8859-15','nl_BE.UTF-8','en_GB.UTF-8','en_GB','en_US.UTF-8');
+$langs=array('nl_BE.ISO-8859-15','nl_BE.UTF-8','en_GB.UTF-8','en_GB','en_US.UTF-8', 'en_US');
 $locale=al2gt($langs, 'text/html');
+# if/when we support non-Latin-1 languages, add some logic to modify this line.
+$mimeline = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-15\">\n";
 # allow user override.
 $language = $_GET["lang"];
 if(isset($language)) { $locale = $language; }
-if($locale == "") { $locale = 'en_GB'; }
+if($locale == "") { $locale = 'en_US'; }
 putenv("LANG=$locale");
 setlocale(LC_MESSAGES, $locale);
 $domain = "gnucash-htdocs";

Modified: htdocs/trunk/www/externals/header.phtml
===================================================================
--- htdocs/trunk/www/externals/header.phtml	2006-02-11 20:00:52 UTC (rev 13213)
+++ htdocs/trunk/www/externals/header.phtml	2006-02-11 20:03:07 UTC (rev 13214)
@@ -5,11 +5,11 @@
 echo" type=\"text/css\">\n"; 
 echo "<link rel=\"icon\" href=\"/favicon.ico\" type=\"image/x-icon\">\n";
 echo "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\">\n";
+echo $mimeline;
 ?>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <style type="text/css">
 #news LI	{
-list-style-image:url(images/webding.png);\n";
+list-style-image:url(images/webding.png);
 }
 </style>
 <?php if (isset($homepage)) { ?>



More information about the gnucash-changes mailing list