Skip to content

Commit

Permalink
Fix viewdocs.phtml to accept two-letter or three-letter language codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Jan 4, 2014
1 parent b6f5105 commit 8475eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewdoc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8475eeb

Please sign in to comment.