[Rt-commit] rt branch, 4.2/querybuilder-link-names, created. rt-4.1.13-281-gde11062
Alex Vandiver
alexmv at bestpractical.com
Mon Jul 8 21:56:26 EDT 2013
The branch, 4.2/querybuilder-link-names has been created
at de1106223a48c6f938bcc05df7718f885be0bb44 (commit)
- Log -----------------------------------------------------------------
commit de1106223a48c6f938bcc05df7718f885be0bb44
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 10d7b5f..518b564 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