From c62ddd06ff62e627ffd411b8ccb0fa881e1591d0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 25 Nov 2009 05:02:55 +0000 Subject: Bug 530252: Create a script that sets up the framework of an extension Patch by Max Kanat-Alexander (module owner) a=mkanat --- template/en/default/global/messages.html.tmpl | 7 ++++++- template/en/default/global/user-error.html.tmpl | 16 ++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index bc6ca5601..1f63da79b 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -279,7 +279,12 @@ The request to change the email address for the account [%+ old_email FILTER html %] to [%+ new_email FILTER html %] has been canceled. - Your old account settings have been reinstated. + Your old account settings have been reinstated. + + [% ELSIF message_tag == "extension_created" %] + An extension named [% name FILTER html %] has been created + in [% path FILTER html %]. Make sure you change "YOUR NAME" and + "YOUR EMAIL ADDRESS" in the code to your name and your email address. [% ELSIF message_tag == "field_value_created" %] [% title = "New Field Value Created" %] diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 230f029b5..144e2e7ea 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -17,6 +17,7 @@ # # Contributor(s): Gervase Markham # Frédéric Buclin + # Max Kanat-Alexander #%] [%# INTERFACE: @@ -32,10 +33,10 @@ # in this file; if you do not wish to change it, use the "none" filter. # # Extension- or custom-specific error handling can be easily added - # via hooks: just place your -errors.html.tmpl into - # template/en/extension/hook/global/user-error.html.tmpl/errors/ - # Note: be aware of uniqueness of error string parameter value, since - # nobody can guarantee the hook files processing order in the future + # via hooks: just place additional code into + # template/en/hook/global/user-error-errors.html.tmpl + # Note: be aware of uniqueness of error string parameter value, since + # nobody can guarantee the hook files processing order in the future. #%] [% PROCESS global/variables.none.tmpl %] @@ -428,6 +429,13 @@ does not exist or you aren't authorized to enter [% terms.abug %] into it. + [% ELSIF error == "extension_create_no_name" %] + You must specify a name for your extension, as an argument to this script. + + [% ELSIF error == "extension_first_letter_caps" %] + The first letter of your extension's name must be a capital letter. + (You specified '[% name FILTER html %]'.) + [% ELSIF error == "field_already_exists" %] [% title = "Field Already Exists" %] The field '[% field.name FILTER html %]' -- cgit v1.2.3-24-g4f1b