[Rt-commit] rt branch, 4.2/querybuilder-link-names, created. rt-4.0.4-379-gb24a001
Alex Vandiver
alexmv at bestpractical.com
Fri Jan 27 17:05:36 EST 2012
The branch, 4.2/querybuilder-link-names has been created
at b24a001dcf644135dcc903a7955ea4f34dc72eae (commit)
- Log -----------------------------------------------------------------
commit b24a001dcf644135dcc903a7955ea4f34dc72eae
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Jan 27 16:24:01 2012 -0500
Use friendlier text in the link dropdown
This adds localizations for "Child" and "Parent", where we had
previously only had their pluralizations.
diff --git a/share/html/Search/Elements/SelectLinks b/share/html/Search/Elements/SelectLinks
index 0b7ce12..26a3db7 100644
--- a/share/html/Search/Elements/SelectLinks
+++ b/share/html/Search/Elements/SelectLinks
@@ -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>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list