Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2017 17:45:55 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r50732 - head/en_US.ISO8859-1/htdocs/cgi
Message-ID:  <201708271745.v7RHjtsr071509@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wosch
Date: Sun Aug 27 17:45:55 2017
New Revision: 50732
URL: https://svnweb.freebsd.org/changeset/doc/50732

Log:
  configure name for Architectures

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 17:45:52 2017	(r50731)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 17:45:55 2017	(r50732)
@@ -745,6 +745,7 @@ my %valid_arch = map { $_ => 1 }
   qw/acorn26 acorn32 algor alpha amd64 amiga arc arm arm26 arm32 armish atari aviion bebox cats cesfic cobalt dreamcast evbarm evbmips evbppc evbsh3 evbsh5 hp300 hp700 hpcarm hpcmips hpcsh hppa hppa64 i386 ibmnws landisk loongson luna68k luna88k mac68k macppc mipsco mmeye mvme68k mvme88k mvmeppc netwinder news68k newsmips next68k ofppc palm pc532 pegasos playstation2 pmax pmppc powerpc prep sandpoint sbmips sgi sgimips shark socppc sparc sparc64 sun2 sun3 sun3x tahoe vax walnut wgrisc x68k zaurus/;
 
 my $default_arch = 'amd64';
+my %arch_names = ('default' => 'All Architectures');
 
 my %arch = ( 
 'FreeBSD 11.1-RELEASE' => { 'default' => 'i386', 'arch' => [qw/amd64 arm i386 powerpc sparc64/] } ,
@@ -1756,10 +1757,11 @@ ETX
 
     foreach (@arch) {
         my $selected = $_ eq $a ? ' selected="selected"' : "";
-        print qq{<option $selected value="$_">$_</option>\n};
+        my $arch_name = exists $arch_names{$_} ? $arch_names{$_} : $_;
+        print qq{<option $selected value="$_">$arch_name</option>\n};
     }
 
-    print qq{</select>\nArchitecture\n\n};
+    print qq{</select>\n\n};
 
     local ($m) = &encode_url($l);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708271745.v7RHjtsr071509>