From af3c716b7dbe9e44719766593f6c51cf30a054e7 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 26 Apr 2016 12:59:52 -0400 Subject: Bug 1251100 - checksetup.pl no longer tells admins which modules are installed and which version is installed --- template/en/default/global/code-error.html.tmpl | 3 ++- template/en/default/global/user-error.html.tmpl | 6 ++---- template/en/default/setup/strings.txt.pl | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to 'template') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 40abfe5c1..3f83dbb68 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -114,7 +114,8 @@ [% ELSIF error == "cookies_need_value" %] Every cookie must have a value. - + [% ELSIF error == "cpan_meta_missing" %] + META.json/MYMETA.json file is missing. [% ELSIF error == "env_no_email" %] Bugzilla did not receive an email address from the environment. diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index bdb90a2a2..dd6c71539 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -565,12 +565,10 @@ (You specified '[% name FILTER html %]'.) [% ELSIF error == "feature_disabled" %] - The [% install_string("feature_$feature") FILTER html %] feature is not - available in this Bugzilla. + The [% feature_description(feature) FILTER html %] feature is not available in this Bugzilla. [% IF user.in_group('admin') %] If you would like to enable this feature, please run - checksetup.pl to see how to install the necessary - requirements for this feature. + cpanm -l local --installdeps --with-feature [% feature FILTER html %] "." [% END %] [% ELSIF error == "field_already_exists" %] diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl index 6bb4615e9..4b1bc873e 100644 --- a/template/en/default/setup/strings.txt.pl +++ b/template/en/default/setup/strings.txt.pl @@ -16,6 +16,7 @@ # Please keep the strings in alphabetical order by their name. %strings = ( + all_optional_features_require => 'All optional features above require the following modules to be found:', any => 'any', apachectl_failed => < 'Checking for', - checking_dbd => 'Checking available perl DBD modules...', - checking_optional => 'The following Perl modules are optional:', - checking_modules => 'Checking perl modules...', chmod_failed => '##path##: Failed to change permissions: ##error##', chown_failed => '##path##: Failed to change ownership: ##error##', commands_dbd => < 'Renaming ##from## to ##to##...', header => "* This is Bugzilla ##bz_ver## on perl ##perl_ver##\n" . "* Running on ##os_name## ##os_ver##", + installation_failed => '*** Installation aborted. Read the messages above. ***', install_data_too_long => <