From 5fc80f94271780b6ff6d1dbba554df35e803ac51 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 24 Nov 2009 06:09:41 +0000 Subject: Bug 430014: Re-write the code hooks system so that it uses modules instead of individual .pl files Patch by Max Kanat-Alexander (module owner) a=mkanat --- template/en/default/global/code-error.html.tmpl | 27 +++++++++++++++++++++++++ template/en/default/setup/strings.txt.pl | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) (limited to 'template/en') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index c1ff61159..d64b3656a 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -143,6 +143,33 @@ An error occurred processing hook [% name FILTER html %] in extension [% extension FILTER html %]: [% errstr FILTER html %] + [% ELSIF error == "extension_must_be_subclass" %] + [% package FILTER html %] from + [% filename FILTER html %] is not a subclass of + [% class FILTER html %]. + + [% ELSIF error == "extension_must_return_name" %] + [% extension FILTER html %] returned + [% returned FILTER html %], which is not a valid name + for an extension. Extensions must return their name, not 1 + or a number. See the documentation of + Bugzilla::Extension + for details. + + [% ELSIF error == "extension_no_name" %] + We did not find a NAME method in + [% package FILTER html %] (loaded from + [% filename FILTER html %]). This means that + the extension has one or more of the following problems: + + + [% ELSIF error == "extern_id_conflict" %] The external ID '[% extern_id FILTER html %]' already exists in the database for '[% username FILTER html %]', but your diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl index 2a8e993e7..eec0bd90e 100644 --- a/template/en/default/setup/strings.txt.pl +++ b/template/en/default/setup/strings.txt.pl @@ -45,7 +45,11 @@ COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands and then re-run this script): EOT done => 'done.', - + extension_must_return_name => <1 or a number. See +the documentation of Bugzilla::Extension for details. +END feature_auth_ldap => 'LDAP Authentication', feature_auth_radius => 'RADIUS Authentication', feature_graphical_reports => 'Graphical Reports', -- cgit v1.2.3-24-g4f1b