rt 4.2.15
[freeside.git] / rt / share / html / Search / Elements / SelectLinks
index fae3379..ca3f848 100644 (file)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC
 %#                                          <sales@bestpractical.com>
 %#
 %# (Except where explicitly superseded by other copyright notices)
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <select name="<%$Name%>">
 % foreach (@fields) {
-<option value="<%$_%>"><% loc($_) %></option>
+<option value="<%$_->[0]%>"><% $_->[1] %></option>
 % }
 </select>
 <%ARGS>
@@ -55,12 +55,13 @@ $Name => 'LinksField'
 </%ARGS>
 
 <%INIT>
-my @fields = ('HasMember',
-             'MemberOf',
-             'DependsOn',
-             'DependedOnBy',
-             'RefersTo',
-             'ReferredToBy',
-             'LinkedTo',
-             );
+my @fields = (
+    [ HasMember    => loc("Child") ],
+    [ MemberOf     => loc("Parent") ],
+    [ DependsOn    => loc("Depends on") ],
+    [ DependedOnBy => loc("Depended on by") ],
+    [ RefersTo     => loc("Refers to") ],
+    [ ReferredToBy => loc("Referred to by") ],
+    [ LinkedTo     => loc("Links to") ],
+);
 </%INIT>