gnucash-htdocs master: Fix viewdocs.phtml to accept two-letter or three-letter language codes

John Ralls jralls at code.gnucash.org
Sat Jan 4 16:20:42 EST 2014


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/bf0d3c3c (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/dbc30500 (commit)



commit bf0d3c3ce4c1b605707bc7934c71ce7300590810
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Jan 4 13:20:32 2014 -0800

    Fix viewdocs.phtml to accept two-letter or three-letter language codes

diff --git a/viewdoc.phtml b/viewdoc.phtml
index fa2c2a7..9cfe8e0 100644
--- a/viewdoc.phtml
+++ b/viewdoc.phtml
@@ -86,8 +86,8 @@ if (isset ($_GET["rev"])) {
 # updated if list of languages in which the documentation is available changes
 if ($showrev == "trunk") {
   $basepath = "http://code.gnucash.org/docs";
-  $trunk_langs = array ( $helpdoc => array( "C", "de_DE", "it_IT"),
-                         $tcdoc   => array( "C", "de_DE", "it_IT", "ja_JP"));
+  $trunk_langs = array ( $helpdoc => array( "C", "de", "de_DE", "it", "it_IT"),
+                         $tcdoc   => array( "C", "de" "de_DE", "it", "it_IT", "ja", "ja_JP"));
   if (!in_array ($showlang, $trunk_langs[$showdoc])) {
     $showlang    = "C";
     $req_lang_ok = false;



Summary of changes:
 viewdoc.phtml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list