From 44b48df3901d829e1423749136d142964ccb4a3e Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 4 Jul 2003 04:31:13 +0000 Subject: Bug 13540 - allow key terms, like "Bugzilla" and "bug", to be altered without changing all the templates. Patch by jwilmoth@starbucks.com; r=gerv, a=justdave. --- template/en/default/list/change-columns.html.tmpl | 20 ++++---- template/en/default/list/edit-multiple.html.tmpl | 58 ++++++++++++----------- template/en/default/list/list-simple.html.tmpl | 6 ++- template/en/default/list/list.csv.tmpl | 4 +- template/en/default/list/list.html.tmpl | 28 ++++++----- template/en/default/list/quips.html.tmpl | 14 +++--- template/en/default/list/server-push.html.tmpl | 6 ++- 7 files changed, 75 insertions(+), 61 deletions(-) (limited to 'template/en/default/list') diff --git a/template/en/default/list/change-columns.html.tmpl b/template/en/default/list/change-columns.html.tmpl index 7730bf78c..61ff34dd7 100644 --- a/template/en/default/list/change-columns.html.tmpl +++ b/template/en/default/list/change-columns.html.tmpl @@ -3,7 +3,7 @@ # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ - # + # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing @@ -19,12 +19,14 @@ # Contributor(s): Dave Lawrence #%] +[% PROCESS global/variables.none.tmpl %] + [% PROCESS global/header.html.tmpl title = "Change Columns" %]

- Select the columns you wish to appear in your buglists. Note that + Select the columns you wish to appear in your [% terms.bug %] lists. Note that this feature requires cookies to work.

@@ -38,27 +40,27 @@
[% FOREACH column = masterlist %] -
[% END %] - +

-
- -

- +

@@ -67,7 +69,7 @@ - +
[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 4d769c5fa..f7b40a18f 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -19,6 +19,8 @@ # Contributor(s): Myk Melez #%] +[% PROCESS global/variables.none.tmpl %] + [% dontchange = "--do_not_change--" %] @@ -38,9 +40,9 @@

- To change multiple bugs: + To change multiple [% terms.bugs %]:

    -
  1. Check the bugs you want to change above.
  2. +
  3. Check the [% terms.bugs %] you want to change above.
  4. Make your changes in the form fields below. If the change you are making requires an explanation, include it in the comments box.
  5. @@ -53,13 +55,13 @@ - [% PROCESS selectmenu menuname = "product" + [% PROCESS selectmenu menuname = "product" menuitems = products %] - [% PROCESS selectmenu menuname = "version" + [% PROCESS selectmenu menuname = "version" menuitems = versions %] @@ -72,7 +74,7 @@ - [% PROCESS selectmenu menuname = "rep_platform" + [% PROCESS selectmenu menuname = "rep_platform" menuitems = platforms %] @@ -82,7 +84,7 @@ - [% PROCESS selectmenu menuname = "priority" + [% PROCESS selectmenu menuname = "priority" menuitems = priorities %] @@ -91,7 +93,7 @@ - [% PROCESS selectmenu menuname = "component" + [% PROCESS selectmenu menuname = "component" menuitems = components %] @@ -101,7 +103,7 @@ - [% PROCESS selectmenu menuname = "bug_severity" + [% PROCESS selectmenu menuname = "bug_severity" menuitems = severities %] @@ -110,7 +112,7 @@ - [% PROCESS selectmenu menuname = "target_milestone" + [% PROCESS selectmenu menuname = "target_milestone" menuitems = targetmilestones %] @@ -139,9 +141,9 @@ - @@ -192,9 +194,9 @@ Groupset:
    - @@ -229,7 +231,7 @@
    Don't
    change
    this group
    restriction -
    Remove
    bugs
    from this
    group -
    Add
    bugs
    to this
    group +
    Don't
    change
    this group
    restriction +
    Remove
    [% terms.bugs %]
    from this
    group +
    Add
    [% terms.bugs %]
    to this
    group
    Group Name:
    [% IF foundinactive %] - (Note: Bugs may not be added to inactive + (Note: [% terms.Bugs %] may not be added to inactive groups, only removed.)
    [% END %] @@ -245,14 +247,14 @@ [% knum = knum + 1 %]
    [% END %] [% knum = knum + 1 %]
    [%# If all the bugs being changed are open, allow the user to close them. %] @@ -264,7 +266,7 @@ [% knum = knum + 1 %] -
    +
    [% END %] [% IF bugstatuses.size == 1 %] [% IF bugstatuses.contains('RESOLVED') %] [% knum = knum + 1 %] -
    +
    [% ELSIF bugstatuses.contains('VERIFIED') %] [% knum = knum + 1 %] -
    +
    [% END %] [% END %] [% knum = knum + 1 %] -
    [% knum = knum + 1 %] -
    diff --git a/template/en/default/list/list-simple.html.tmpl b/template/en/default/list/list-simple.html.tmpl index 25c8c82ec..0ca3e976c 100644 --- a/template/en/default/list/list-simple.html.tmpl +++ b/template/en/default/list/list-simple.html.tmpl @@ -23,11 +23,13 @@ # title: string. The title for this page. (optional) #%] +[% PROCESS global/variables.none.tmpl %] + [%############################################################################%] [%# Initialization #%] [%############################################################################%] -[% DEFAULT title = "Bug List" %] +[% DEFAULT title = "$terms.Bug List" %] [% title = title FILTER html %] @@ -44,7 +46,7 @@ [% IF bugs.size == 0 %] -

    Zarro Boogs found.

    +

    [% terms.zeroSearchResults %].

    [% ELSE %] [% PROCESS list/table.html.tmpl %] [% END %] diff --git a/template/en/default/list/list.csv.tmpl b/template/en/default/list/list.csv.tmpl index e2b3d1583..cb6bb6708 100644 --- a/template/en/default/list/list.csv.tmpl +++ b/template/en/default/list/list.csv.tmpl @@ -20,6 +20,8 @@ # Gervase Markham #%] +[% PROCESS global/variables.none.tmpl %] + bug_id, [% FOREACH column = displaycolumns %] [% column FILTER csv %], @@ -30,5 +32,5 @@ bug_id, [% FOREACH column = displaycolumns %] [% bug.$column FILTER csv %], [% END %] - + [% END %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 91a5584cf..35a80d08a 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -23,7 +23,9 @@ [%# Template Initialization #%] [%############################################################################%] -[% DEFAULT title = "Bug List" %] +[% PROCESS global/variables.none.tmpl %] + +[% DEFAULT title = "$terms.Bug List" %] [% style_urls = [ "css/buglist.css" ] %] [% qorder = order FILTER url_quote IF order %] @@ -45,7 +47,7 @@ [% END %] [% IF Param('enablequips') != 'off' %] - [% DEFAULT quip = "Bugzilla would like to put a random quip here, but no one has entered any." %] + [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] [% quip FILTER html %] [% END %] @@ -53,8 +55,8 @@ [% IF toolong %]

    - This list is too long for Bugzilla's little mind; the - Next/Prev/First/Last buttons won't appear on individual bugs. + This list is too long for [% terms.Bugzilla %]'s little mind; the + Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %].

    [% END %] @@ -66,7 +68,7 @@ [%############################################################################%] [% IF bugs.size > 9 %] - [% bugs.size %] bugs found. + [% bugs.size %] [% terms.bugs %] found. [% END %] @@ -91,18 +93,18 @@ [%############################################################################%] [% IF bugs.size == 0 %] - Zarro Boogs found. + [% terms.zeroSearchResults %].

    Query Page -   Enter New Bug +   Enter New [% terms.Bug %] Edit this query

    [% ELSIF bugs.size == 1 %] - One bug found. + One [% terms.bug %] found. [% ELSE %] - [% bugs.size %] bugs found. + [% bugs.size %] [% terms.bugs %] found. [% END %] @@ -116,7 +118,7 @@ [% IF dotweak %] [% PROCESS "list/edit-multiple.html.tmpl" %] - +
    @@ -140,13 +142,13 @@ [% IF bugs.size > 1 && caneditbugs && !dotweak %] Change Several - Bugs at Once + [%- "&order=$qorder" FILTER html IF order %]&tweak=1">Change Several  + [% terms.Bugs %] at Once    [% END %] [% IF bugowners %] - Send Mail to Bug Owners    + Send Mail to [% terms.Bug %] Owners    [% END %] - Bugzilla will pick a random quip for the headline on each bug list, and - you can extend the quip list. Type in something clever or funny or boring + [% terms.Bugzilla %] will pick a random quip for the headline on each [% terms.bug %] list, and + you can extend the quip list. Type in something clever or funny or boring (but not obscene or offensive, please) and bonk on the button. [% IF Param("enablequips") == "approved" AND !user.groups.admin %] Note that your quip has to be approved before it is used. @@ -141,8 +143,8 @@ [% END %] [% ELSE %]

    - Those who like their wisdom in large doses can - view + Those who like their wisdom in large doses can + view [% IF UserInGroup('admin') %] and edit [% END %] diff --git a/template/en/default/list/server-push.html.tmpl b/template/en/default/list/server-push.html.tmpl index 9b7131654..377a43786 100644 --- a/template/en/default/list/server-push.html.tmpl +++ b/template/en/default/list/server-push.html.tmpl @@ -23,10 +23,12 @@ # debug: boolean. True if we want the query displayed while we wait. # query: string. The SQL query which makes the buglist. #%] - + +[% PROCESS global/variables.none.tmpl %] + - Bugzilla is pondering your query + [% terms.Bugzilla %] is pondering your query

    Please stand by ...

    -- cgit v1.2.3-24-g4f1b