gnucash-htdocs master: Allow zh in viewdoc
Frank H.Ellenberger
fell at code.gnucash.org
Mon Sep 25 23:57:04 EDT 2023
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/b9153157 (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/cf36a93d (commit)
commit b9153157f8003d529e90494fbcc9d5167693c9a7
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date: Tue Sep 26 05:56:48 2023 +0200
Allow zh in viewdoc
diff --git a/viewdoc.phtml b/viewdoc.phtml
index 0b76c69..a04231e 100644
--- a/viewdoc.phtml
+++ b/viewdoc.phtml
@@ -26,7 +26,7 @@ $showrev = $current_stable;
$req_rev_ok = true;
$showlang = 'C';
-$doc_languages = array('de', 'it', 'ja', 'pt');
+$doc_languages = array('de', 'it', 'ja', 'pt', 'zh');
$get_lang = filter_input(INPUT_GET, 'lang', FILTER_SANITIZE_STRING);
if (in_array($get_lang, $doc_languages, true)) {
$showlang = $get_lang;
@@ -127,7 +127,7 @@ if ($showrev == "maint") {
$req_lang_ok = false;
$basepath = "https://lists.gnucash.org/docs";
$trunk_langs = array ( $helpdoc => array( "C", "de", "it", "pt"),
- $tcdoc => array( "C", "de", "it", "ja", "pt"));
+ $tcdoc => array( "C", "de", "it", "ja", "pt", "zh"));
if (in_array ($showlang, $trunk_langs[$showdoc])) {
$req_lang_ok = true;
Summary of changes:
viewdoc.phtml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list