gnucash-htdocs beta: Set the html lang attribute based on php .

John Ralls jralls at code.gnucash.org
Sun Sep 27 19:07:18 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/60e8d5a5 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/86f9dcd4 (commit)



commit 60e8d5a5792deb1d789bc2648091edbe879cfe29
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Sep 27 16:07:10 2020 -0700

    Set the html lang attribute based on php .

diff --git a/externals/header.phtml b/externals/header.phtml
index 7476741..5bd908b 100644
--- a/externals/header.phtml
+++ b/externals/header.phtml
@@ -22,9 +22,10 @@
   }
   
   $get_parms = $_GET;
+  if (isset($locale)) { $locale_str = substr($locale, 0, 2); } else { $locale_str = "en"; }
 ?>
 
-<html lang="en">
+<html lang="<?php echo $locale_str; ?>">
   <head>
     <?php
       if (!isset($can_utf)) { $can_utf = true; }



Summary of changes:
 externals/header.phtml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list