summaryrefslogtreecommitdiffstats
path: root/template/en/default/pages
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-18 08:04:57 +0100
committermkanat%bugzilla.org <>2009-11-18 08:04:57 +0100
commita44e152480c9c22ca9b3a89da774317c5590d21b (patch)
tree035210618c0987beaffc953cbf09611866e0d3e5 /template/en/default/pages
parentbc19f61c0c33e71a00dcc8e4ca3e791a9e3b661d (diff)
downloadbugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.gz
bugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.xz
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 <vitaly.fedrushkov@gmail.com> r=mkanat, a=mkanat
Diffstat (limited to 'template/en/default/pages')
-rw-r--r--template/en/default/pages/bug-writing.html.tmpl4
-rw-r--r--template/en/default/pages/fields.html.tmpl29
2 files changed, 17 insertions, 16 deletions
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:</p>
it?
(e.g. Linux, Windows XP, Mac OS X.)<br>
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.</p>
+ operating system, choose <em>[% display_value("op_sys", "All") FILTER html %]</em>.
+ If your OS isn't listed, choose <em>[% display_value("op_sys", "Other") FILTER html %]</em>.</p>
<p><b>Summary:</b> How would you describe the [% terms.bug %], in
approximately 60 or fewer characters?<br>
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 <gerv@gerv.net>
#%]
-[% 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 %].
<table>
<tr>
- <th>Blocker</th>
+ <th>[% display_value("bug_severity", "blocker") FILTER html %]</th>
<td>Blocks development and/or testing work</td>
</tr>
<tr>
- <th>Critical</th>
+ <th>[% display_value("bug_severity", "critical") FILTER html %]</th>
<td>crashes, loss of data, severe memory leak</td>
</tr>
<tr>
- <th>Major</th>
+ <th>[% display_value("bug_severity", "major") FILTER html %]</th>
<td>major loss of function</td>
</tr>
<tr>
- <th>Normal</th>
+ <th>[% display_value("bug_severity", "normal") FILTER html %]</th>
<td>regular issue, some loss of functionality under specific circumstances</td>
</tr>
<tr>
- <th>Minor</th>
+ <th>[% display_value("bug_severity", "minor") FILTER html %]</th>
<td>minor loss of function, or other problem where easy
workaround is present</td>
</tr>
<tr>
- <th>Trivial</th>
+ <th>[% display_value("bug_severity", "trivial") FILTER html %]</th>
<td>cosmetic problem like misspelled words or misaligned
text</td>
</tr>
<tr>
- <th>Enhancement</th>
+ <th>[% display_value("bug_severity", "enhancement") FILTER html %]</th>
<td>Request for enhancement</td>
</table>
@@ -270,23 +269,25 @@ This is the hardware platform against which the [% terms.bug %] was
reported. Legal platforms include:
<ul>
- <li>All (happens on all platforms; cross-platform [% terms.bug %])</li>
+ <li>[% display_value("rep_platform", "All") FILTER html %] (happens on all platforms; cross-platform [% terms.bug %])</li>
- <li>Macintosh</li>
+ <li>[% display_value("rep_platform", "Macintosh") FILTER html %]</li>
- <li>PC</li>
+ <li>[% display_value("rep_platform", "PC") FILTER html %]</li>
</ul>
-<b>Note:</b> When searching, selecting the option "All" does not
+<b>Note:</b> When searching, selecting the option
+<em>[% display_value("rep_platform", "All") FILTER html %]</em> 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
+<em>[% display_value("rep_platform", "All") FILTER html %]</em>.
<h2><a name="op_sys">Operating System</a></h2>
This is the operating system against which the [% terms.bug %] was
reported. Legal operating systems include:
<ul>
- <li>All (happens on all operating systems; cross-platform
+ <li>[% display_value("op_sys", "All") FILTER html %] (happens on all operating systems; cross-platform
[% terms.bug %])</li>
<li>Windows</li>