[bugzilla-gnome-org-upstream/4.4: 13/19] Bug 1106653: Truncate the field-* and type-* values in error messages r=dkl a=glob
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-upstream/4.4: 13/19] Bug 1106653: Truncate the field-* and type-* values in error messages r=dkl a=glob
- Date: Sun, 25 Jan 2015 22:54:39 +0000 (UTC)
commit 6fde3caa9fdeab3391990c8b23f60d07a91df975
Author: Frédéric Buclin <LpSolit gmail com>
Date: Tue Dec 23 11:02:20 2014 +0100
Bug 1106653: Truncate the field-* and type-* values in error messages
r=dkl a=glob
template/en/default/global/code-error.html.tmpl | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index 086f34a..e441632 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -219,7 +219,8 @@
but rather <em>[% target_type FILTER html %]</em>.
[% ELSIF error == "invalid_field_name" %]
- Can't use [% field FILTER html %] as a field name.
+ [% title = "Invalid Field Name" %]
+ Can't use "[% field.truncate(30, "...") FILTER html %]" as a field name.
[% ELSIF error == "jobqueue_insert_failed" %]
[% title = "Job Queue Failure" %]
@@ -384,8 +385,9 @@
Invalid setting for post_bug_submit_action
[% ELSIF error == "search_field_operator_unsupported" %]
+ [% title = "Invalid Search Type" %]
[% terms.Bugzilla %] does not support the search type
- "[% operator FILTER html %]".
+ "[% operator.truncate(30, "...") FILTER html %]".
[% ELSE %]
[%# Try to find hooked error messages %]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]