From 6715b4dbad317ac79ff55c3c761cf6af58651a26 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 11 Aug 2010 03:20:30 -0700 Subject: Bug 586210: Make every important string printed by checksetup.pl localizable, including the localconfig parameter descriptions r=mkanat, a=mkanat (module owner) --- Bugzilla/DB/Mysql.pm | 54 ++++++++-------------------------------------------- 1 file changed, 8 insertions(+), 46 deletions(-) (limited to 'Bugzilla/DB') diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index 699fcfdf6..1829bc450 100644 --- a/Bugzilla/DB/Mysql.pm +++ b/Bugzilla/DB/Mysql.pm @@ -316,12 +316,7 @@ sub bz_setup_database { my ($innodb_on) = @{$self->selectcol_arrayref( q{SHOW VARIABLES LIKE '%have_innodb%'}, {Columns=>[2]})}; if ($innodb_on ne 'YES') { - die <bz_table_list_real())) { - die("\nYou are upgrading from a version before 2.20, but the" - . " bz_schema\ntable already exists. This means that you" - . " restored a mysqldump into\nthe Bugzilla database without" - . " first dropping the already-existing\nBugzilla database," - . " at some point. Whenever you restore a Bugzilla\ndatabase" - . " backup, you must always drop the entire database first.\n\n" - . "Please drop your Bugzilla database and restore it from a" - . " backup that\ndoes not contain the bz_schema table. If for" - . " some reason you cannot\ndo this, you can connect to your" - . " MySQL database and drop the bz_schema\ntable, as a last" - . " resort.\n"); + die install_string('bz_schema_exists_before_220'); } my $bug_count = $self->selectrow_array("SELECT COUNT(*) FROM bugs"); @@ -447,12 +432,8 @@ EOT # If we're going to take longer than 5 minutes, we let the user know # and allow them to abort. if ($rename_time > 5) { - print "\nWe are about to rename old indexes.\n" - . "The estimated time to complete renaming is " - . "$rename_time minutes.\n" - . "You cannot interrupt this action once it has begun.\n" - . "If you would like to cancel, press Ctrl-C now..." - . " (Waiting 45 seconds...)\n\n"; + print "\n", install_string('mysql_index_renaming', + { minutes => $rename_time }); # Wait 45 seconds for them to respond. sleep(45) unless Bugzilla->installation_answers->{NO_PAUSE}; } @@ -685,36 +666,16 @@ EOT my @non_utf8_tables = grep(defined($_->{Collation}) && $_->{Collation} !~ /^utf8/, @$utf_table_status); if (Bugzilla->params->{'utf8'} && scalar @non_utf8_tables) { - print <installation_answers->{NO_PAUSE}) { if (Bugzilla->installation_mode == INSTALLATION_MODE_NON_INTERACTIVE) { - print <