diff options
author | mkanat%bugzilla.org <> | 2009-11-25 06:02:55 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-25 06:02:55 +0100 |
commit | c62ddd06ff62e627ffd411b8ccb0fa881e1591d0 (patch) | |
tree | 308982c5c2cc26ed7e2e730718cc1d84eb575ef5 /template/en/default/global | |
parent | 74060782dd67e3e960fac20c759bc025c91caece (diff) | |
download | bugzilla-c62ddd06ff62e627ffd411b8ccb0fa881e1591d0.tar.gz bugzilla-c62ddd06ff62e627ffd411b8ccb0fa881e1591d0.tar.xz |
Bug 530252: Create a script that sets up the framework of an extension
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/messages.html.tmpl | 7 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 16 |
2 files changed, 18 insertions, 5 deletions
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 <gerv@gerv.net> # Frédéric Buclin <LpSolit@gmail.com> + # Max Kanat-Alexander <mkanat@bugzilla.org> #%] [%# 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 <extension>-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 %]' |