From a44e152480c9c22ca9b3a89da774317c5590d21b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 18 Nov 2009 07:04:57 +0000 Subject: Bug 519142: Replace IF/ELSE statements about bug_status/resolution with just a display_value call, and use display_value in more places to translate field values. Patch by Vitaly Fedrushkov r=mkanat, a=mkanat --- template/en/default/pages/bug-writing.html.tmpl | 4 ++-- template/en/default/pages/fields.html.tmpl | 29 +++++++++++++------------ 2 files changed, 17 insertions(+), 16 deletions(-) (limited to 'template/en/default/pages') diff --git a/template/en/default/pages/bug-writing.html.tmpl b/template/en/default/pages/bug-writing.html.tmpl index 035876bb1..ec997be0a 100644 --- a/template/en/default/pages/bug-writing.html.tmpl +++ b/template/en/default/pages/bug-writing.html.tmpl @@ -78,8 +78,8 @@ no-one else appears to have reported it, then:

it? (e.g. Linux, Windows XP, Mac OS X.)
If you know the [% terms.bug %] happens on more than one type of - operating system, choose "All". - If your OS isn't listed, choose Other.

+ operating system, choose [% display_value("op_sys", "All") FILTER html %]. + If your OS isn't listed, choose [% display_value("op_sys", "Other") FILTER html %].

Summary: How would you describe the [% terms.bug %], in approximately 60 or fewer characters?
diff --git a/template/en/default/pages/fields.html.tmpl b/template/en/default/pages/fields.html.tmpl index 9e938bbcb..5be28cab7 100644 --- a/template/en/default/pages/fields.html.tmpl +++ b/template/en/default/pages/fields.html.tmpl @@ -19,7 +19,6 @@ # Gervase Markham #%] -[% PROCESS global/variables.none.tmpl %] [% PROCESS "global/field-descs.none.tmpl" %] [% INCLUDE global/header.html.tmpl title = "A $terms.Bug's Life Cycle" %] @@ -221,46 +220,46 @@ This field describes the impact of [% terms.abug %]. - + - + - + - + - + - + - +
Blocker[% display_value("bug_severity", "blocker") FILTER html %] Blocks development and/or testing work
Critical[% display_value("bug_severity", "critical") FILTER html %] crashes, loss of data, severe memory leak
Major[% display_value("bug_severity", "major") FILTER html %] major loss of function
Normal[% display_value("bug_severity", "normal") FILTER html %] regular issue, some loss of functionality under specific circumstances
Minor[% display_value("bug_severity", "minor") FILTER html %] minor loss of function, or other problem where easy workaround is present
Trivial[% display_value("bug_severity", "trivial") FILTER html %] cosmetic problem like misspelled words or misaligned text
Enhancement[% display_value("bug_severity", "enhancement") FILTER html %] Request for enhancement
@@ -270,23 +269,25 @@ This is the hardware platform against which the [% terms.bug %] was reported. Legal platforms include:

-Note: When searching, selecting the option "All" does not +Note: When searching, selecting the option +[% display_value("rep_platform", "All") FILTER html %] does not select [% terms.bugs %] assigned against any platform. It merely selects [% terms.bugs %] that are -marked as occurring on all platforms, i.e. are designated "All". +marked as occurring on all platforms, i.e. are designated +[% display_value("rep_platform", "All") FILTER html %].

Operating System

This is the operating system against which the [% terms.bug %] was reported. Legal operating systems include: