r22498 - htdocs/branches/beta - Fix en_US<>C locale difference
Geert Janssens
gjanssens at code.gnucash.org
Thu Nov 1 17:40:07 EDT 2012
Author: gjanssens
Date: 2012-11-01 17:40:07 -0400 (Thu, 01 Nov 2012)
New Revision: 22498
Trac: http://svn.gnucash.org/trac/changeset/22498
Modified:
htdocs/branches/beta/viewdoc.phtml
Log:
Fix en_US<>C locale difference
Modified: htdocs/branches/beta/viewdoc.phtml
===================================================================
--- htdocs/branches/beta/viewdoc.phtml 2012-11-01 21:30:51 UTC (rev 22497)
+++ htdocs/branches/beta/viewdoc.phtml 2012-11-01 21:40:07 UTC (rev 22498)
@@ -27,11 +27,15 @@
$req_rev_ok = true;
# Requested language is set in $locale by included lang.php
-$showlang = $locale;
+if ($locale == "en_US") {
+ $showlang = "C";
+} else {
+ $showlang = $locale;
+}
$req_lang_ok = true;
# Parse requested document
-if (array_key_exists('doc', $_GET)) {
+if (isset ('doc', $_GET)) {
switch ($_GET["doc"]) {
case "help":
$showdoc = $helpdoc;
@@ -46,7 +50,7 @@
}
# Parse requested version
-if (array_key_exists('rev', $_GET)) {
+if (isset ('rev', $_GET)) {
switch ($_GET["rev"]) {
case "1.8":
$showrev = "1.8";
More information about the gnucash-changes
mailing list