[feladat @ 257]
authorrejo
Fri, 09 May 2008 14:07:54 +0000
changeset 151 b8adc3cf28c7
parent 150 59c42a716f95
child 152 16cdb7844fce
[feladat @ 257] Added translation of installation script. User now may choose between english or dutch installation procedure.
docs/i18n-template-php.pot
install/index.php
locale/nl_NL/LC_MESSAGES/messages.mo
locale/nl_NL/LC_MESSAGES/nl.po
--- a/docs/i18n-template-php.pot	Sat May 03 22:00:51 2008 +0000
+++ b/docs/i18n-template-php.pot	Fri May 09 14:07:54 2008 +0000
@@ -726,3 +726,151 @@
 msgid "You are using an invalid top level domain."
 msgstr ""
 
+#: index.php:20
+msgid "Installation step"
+msgstr ""
+
+#: index.php:26
+msgid "This installer expects you to have a PowerDNS database accessable from this server. This installer also expects you to have never ran Poweradmin before, or that you want to overwrite the Poweradmin part of the database. If you have had Poweradmin running before, any data in the following tables will be destroyed: perm_items, perm_templ, perm_templ_items, users and zones. This installer will, of course, not touch the data in the PowerDNS tables of the database. However, it is recommended that you create a backup of your database before proceeding."
+msgstr ""
+
+#: index.php:28
+msgid "The alternative for this installer is a manual installation. Refer to the poweradmin.org website if you want to go down that road."
+msgstr ""
+
+#: index.php:30
+msgid ""
+"Finally, if you see any errors during the installation process, a problem report would be appreciated. You can report problems (and ask for help) on the poweradmin-users mailinglist."
+msgstr ""
+
+#: index.php:33
+msgid "Do you want to proceed now?"
+msgstr ""
+
+#: index.php:37 index.php:80 index.php:133 index.php:175 index.php:206
+msgid "Go to step"
+msgstr ""
+
+#: index.php:43
+msgid "To prepare the database for using Poweradmin, the installer needs to modify the PowerDNS database. It will add a number of tables and it will fill these tables with some data. If the tables are already present, the installer will drop them first."
+msgstr ""
+
+#: index.php:45
+msgid "To do all of this, the installer needs to access the database with an account which has sufficient rights. If you trust the installer, you may give it the username and password of the database user root. Otherwise, make sure the user has enough rights, before actually proceeding."
+msgstr ""
+
+#: index.php:52
+msgid "The username to use to connect to the database, make sure the username has sufficient rights to perform administrative task to the PowerDNS database (the installer wants to drop, create and fill tables to the database)."
+msgstr ""
+
+#: index.php:57 index.php:153
+msgid "The password for this username."
+msgstr ""
+
+#: index.php:60
+msgid "Hostname"
+msgstr ""
+
+#: index.php:62
+msgid "The hostname on which the PowerDNS database resides. Frequently, this will be \"localhost\"."
+msgstr ""
+
+#: index.php:65
+msgid "Database"
+msgstr ""
+
+#: index.php:67
+msgid "The name of the PowerDNS database."
+msgstr ""
+
+#: index.php:70
+msgid "Database type"
+msgstr ""
+
+#: index.php:76
+msgid "The type of the PowerDNS database."
+msgstr ""
+
+#: index.php:86
+msgid "Updating database..."
+msgstr ""
+
+#: index.php:109
+msgid "done!"
+msgstr ""
+
+#: index.php:111
+msgid "We have now updated the PowerDNS database to work with Poweradmin. You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database."
+msgstr ""
+
+#: index.php:113
+msgid "In MySQL you should now perform the following command:"
+msgstr ""
+
+#: index.php:116
+msgid "On PgSQL you would use:"
+msgstr ""
+
+#: index.php:127
+msgid "After you have added the new user, proceed with this installation procedure."
+msgstr ""
+
+#: index.php:142
+msgid "Now we will put together the configuration. To do so, the installer needs some details:"
+msgstr ""
+
+#: index.php:148
+msgid "The username as created in the previous step."
+msgstr ""
+
+#: index.php:156
+msgid "Hostmaster"
+msgstr ""
+
+#: index.php:158
+msgid "When creating SOA records and no hostmaster is provided, this value here will be used. Should be in the form \"hostmaster.example.net\"."
+msgstr ""
+
+#: index.php:161
+msgid "Primary nameserver"
+msgstr ""
+
+#: index.php:163
+msgid "When creating new zones using the template, this value will be used as primary nameserver. Should be like \"ns1.example.net\"."
+msgstr ""
+
+#: index.php:166
+msgid "Secondary nameserver"
+msgstr ""
+
+#: index.php:168
+msgid "When creating new zones using the template, this value will be used as secondary nameserver. Should be like \"ns2.example.net\"."
+msgstr ""
+
+#: index.php:197
+msgid "The installer was able to write to the file \""
+msgstr ""
+
+#: index.php:197
+msgid "\". A basic configuration, based on the details you have given, has been created."
+msgstr ""
+
+#: index.php:199
+msgid "The installer is unable to write to the file \""
+msgstr ""
+
+#: index.php:199
+msgid "\" (which is in itself good). The configuration is printed here. You should now create the file \""
+msgstr ""
+
+#: index.php:199
+msgid "\" in the Poweradmin root directory yourself. It should contain the following few lines:"
+msgstr ""
+
+#: index.php:212
+msgid "Now we have finished the configuration, you should (must!) remove the directory \"install/\" from the Poweradmin root directory. You will not be able to use Poweradmin if it exists. Do it now."
+msgstr ""
+
+#: index.php:213
+msgid "After you have removed the directory, you can login to <a href=\"index.php\">Poweradmin</a> with username \"admin\" and password \"admin\". You are highly encouraged to change these as soon as you are logged in."
+msgstr ""
--- a/install/index.php	Sat May 03 22:00:51 2008 +0000
+++ b/install/index.php	Fri May 09 14:07:54 2008 +0000
@@ -1,7 +1,23 @@
 <?php
 
+$language = $_POST['language'];
+setlocale(LC_ALL, $language);
+$gettext_domain = 'messages';
+bindtextdomain($gettext_domain, "./../locale");
+textdomain($gettext_domain);
+@putenv('LANG='.$language);
+@putenv('LANGUAGE='.$language);
+
 $local_config_file = "../inc/config.inc.php";
 
+function error($msg) {
+	if ($msg) {
+		echo "     <div class=\"error\">Error: " . $msg . "</div>\n";
+	} else {
+		echo "     <div class=\"error\">" . _('An unknown error has occurred.') . "</div>\n";
+	}
+}
+
 echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
 echo "<html>\n";
 echo " <head>\n";
@@ -17,42 +33,88 @@
 }
 
 echo "  <h1>Poweradmin</h1>";
-echo "  <h2>Installation step " . $step . "</h2>";
+echo "  <h2>" . _('Installation step') . " " . $step . "</h2>";
 
 switch($step) {
+
 	case 1:
 		$step++;
-		echo "<p>This installer expects you to have a PowerDNS database accessable from this server. This installer also expects you to have never ran Poweradmin before, or that you want to overwrite the Poweradmin part of the database. If you have had Poweradmin running before, any data in the following tables will be destroyed:</p>\n";
-		echo "<ul><li>perm_items</li><li>perm_templ</li><li>perm_templ_items</li><li>users</li><li>zones</li></ul>\n";
-		echo "<p>This installer will, of course, not touch the data in the PowerDNS tables of the database. However, it is, of course, recommended you create a backup of your database before proceeding.</p>";
-		echo "<p>Finally, if you see any errors during the installation process, a problem report would be. You can report problems (and ask for help) on the <a href=\"https://www.poweradmin.org/trac/wiki/Mailinglists\">poweradmin-users</a> mailinglist or you can create <a href=\"https://www.poweradmin.org/trac/newticket\">a ticket</a> in the ticketsystem.</p>";
-		echo "<p>Do you want to proceed now?</p>\n";
+
+		echo "<p>\n";
+		echo " <form method=\"post\">\n";
+		echo "  <input type=\"radio\" name=\"language\" value=\"en_EN\"> I prefer to proceed in english.<br>\n";
+		echo "  <input type=\"radio\" name=\"language\" value=\"nl_NL\"> Ik ga graag verder in het Nederlands.<br><br>\n";
+		echo "  <input type=\"hidden\" name=\"step\" value=\"" . $step . "\">";
+		echo "  <input type=\"submit\" name=\"submit\" value=\"" . _('Go to step') . " " . $step . "\">";
+		echo " </form>\n";
+		echo "</p>\n";
+		break;
+
+	case 2:
+		$step++;
+
+		echo "<p>" . _('This installer expects you to have a PowerDNS database accessable from this server. This installer also expects you to have never ran Poweradmin before, or that you want to overwrite the Poweradmin part of the database. If you have had Poweradmin running before, any data in the following tables will be destroyed: perm_items, perm_templ, perm_templ_items, users and zones. This installer will, of course, not touch the data in the PowerDNS tables of the database. However, it is recommended that you create a backup of your database before proceeding.') . "</p>\n";
+
+		echo "<p>" . _('The alternative for this installer is a manual installation. Refer to the poweradmin.org website if you want to go down that road.') . "</p>\n";
+
+		echo "<p>" . _('Finally, if you see any errors during the installation process, a problem report would be appreciated. You can report problems (and ask for help) on the poweradmin-users mailinglist.') . "</p>";
+
+		echo "<p>" . _('Do you want to proceed now?') . "</p>\n";
+
 		echo "<form method=\"post\">";
+		echo "<input type=\"hidden\" name=\"language\" value=\"" . $language . "\">";
 		echo "<input type=\"hidden\" name=\"step\" value=\"" . $step . "\">";
-		echo "<input type=\"submit\" name=\"submit\" value=\"Go to step " . $step . "\">";
+		echo "<input type=\"submit\" name=\"submit\" value=\"" . _('Go to step') . " " . $step . "\">";
 		echo "</form>";
 		break;
 
-	case 2:	
+	case 3:	
 		$step++;
-		echo "<p>To prepare the database for using Poweradmin, the installer needs to modify the PowerDNS database. It'll add a number of tables and it'll fill these tables with some data. If the tables are already present, the installer will drop them first.</p>";
-		echo "<p>To do all of this, the installer needs to access the database with an account which has sufficient rights. If you trust the installer, you may give it the username and password of the database user root. Otherwise, make sure the user has enough rights, before actually proceeding.</p>";
+		echo "<p>" . _('To prepare the database for using Poweradmin, the installer needs to modify the PowerDNS database. It will add a number of tables and it will fill these tables with some data. If the tables are already present, the installer will drop them first.') . "</p>";
+
+		echo "<p>" . _('To do all of this, the installer needs to access the database with an account which has sufficient rights. If you trust the installer, you may give it the username and password of the database user root. Otherwise, make sure the user has enough rights, before actually proceeding.') . "</p>";
+
 		echo "<form method=\"post\">";
-		echo "<table>\n";
-		echo "<tr><td>Username</td><td><input type=\"text\" name=\"user\" value=\"\"></td><td>The username to use to connect to the database, make sure the username has sufficient rights to perform administrative task to the PowerDNS database (e.g. \"root\").</td></tr>\n";
-		echo "<tr><td>Password</td><td><input type=\"password\" name=\"pass\" value=\"\"></td><td>The password for this username.</td></tr>\n";
-		echo "<tr><td>Hostname</td><td><input type=\"text\" name=\"host\" value=\"\"></td><td>The hostname on which the PowerDNS database resides. Frequently, this will be \"localhost\".</td></tr>\n";
-		echo "<tr><td>Database</td><td><input type=\"text\" name=\"name\" value=\"\"></td><td>The name of the PowerDNS database.</td></tr>\n";
-		echo "<tr><td>Database type</td><td><select name=\"type\"><option value=\"mysql\">MySQL</option><option value=\"pgsql\">PostgreSQL</option></td><td>The type PowerDNS database.</td></tr>\n";
+		echo " <table>\n";
+		echo "  <tr>\n";
+		echo "   <td>" . _('Username') . "</td>\n";
+		echo "   <td><input type=\"text\" name=\"user\" value=\"\"></td>\n";
+		echo "   <td>" . _('The username to use to connect to the database, make sure the username has sufficient rights to perform administrative task to the PowerDNS database (the installer wants to drop, create and fill tables to the database).') . "</td>\n";
+		echo "  </tr>\n";
+		echo " <tr>\n";
+		echo "  <td>" . _('Password') . "</td>\n";
+		echo "  <td><input type=\"password\" name=\"pass\" value=\"\"></td>\n";
+		echo "  <td>" . _('The password for this username.') . "</td>\n";
+		echo " </tr>\n";
+		echo " <tr>\n";
+		echo "  <td>" . _('Hostname') . "</td>\n";
+		echo "  <td><input type=\"text\" name=\"host\" value=\"\"></td>\n";
+		echo "  <td>" . _('The hostname on which the PowerDNS database resides. Frequently, this will be "localhost".') . "</td>\n";
+		echo " </tr>\n";
+		echo " <tr>\n";
+		echo "  <td>" . _('Database') . "</td>\n";
+		echo "  <td><input type=\"text\" name=\"name\" value=\"\"></td>\n";
+		echo "  <td>" . _('The name of the PowerDNS database.') . "</td>\n";
+		echo " </tr>\n";
+		echo " <tr>\n";
+		echo "  <td>" . _('Database type') . "</td>\n";
+		echo "  <td>" .
+			"<select name=\"type\">" . 
+			"<option value=\"mysql\">MySQL</option>" . 
+			"<option value=\"pgsql\">PostgreSQL</option>" . 
+			"</td>\n";
+		echo "  <td>" . _('The type of the PowerDNS database.') . "</td>\n";
+		echo " </tr>\n";
 		echo "</table>\n";
 		echo "<input type=\"hidden\" name=\"step\" value=\"" . $step . "\">";
-		echo "<input type=\"submit\" name=\"submit\" value=\"Go to step " . $step . "\">";
+		echo "<input type=\"hidden\" name=\"language\" value=\"" . $language . "\">";
+		echo "<input type=\"submit\" name=\"submit\" value=\"" . _('Go to step') . " " . $step . "\">";
 		echo "</form>";
 		break;
 
-	case 3:
+	case 4:
 		$step++;
-		echo "<p>Updating database... ";
+		echo "<p>" . _('Updating database...') . " ";
 		include_once("../inc/config-me.inc.php");
 		include_once("database-structure.inc.php");
 		$db_user = $_POST['user'];
@@ -64,65 +126,90 @@
 		$db = dbConnect();
 		$db->loadModule('Manager');
 		$db->loadModule('Extended');
-
 		$current_tables = $db->listTables();
-
 		foreach ($def_tables as $table) {
 			if (in_array($table['table_name'], $current_tables)) $db->dropTable($table['table_name']);
 			$db->createTable($table['table_name'], $table['fields']);
 		}
-
 		$fill_perm_items = $db->prepare('INSERT INTO perm_items VALUES (?, ?, ?)');
 		$db->extended->executeMultiple($fill_perm_items, $def_permissions);
 		$fill_perm_items->free();
-
 		foreach ($def_remaining_queries as $query) {
 			$db->query($query);
 		}
-
-		echo "done!</p>";
+		echo _('done!') . "</p>";
 
-		echo "<p>We have now updated the PowerDNS database to work with Poweradmin. You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database. ";
+		echo "<p>" . _('We have now updated the PowerDNS database to work with Poweradmin. You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database.') . " ";
 		if ($db_type=='mysql') {
-			echo "In MySQL should now perform the following command:</p>";
+			echo _('In MySQL you should now perform the following command:') . "</p>";
 			echo "<p><tt>GRANT SELECT, INSERT, UPDATE, DELETE<BR>ON powerdns-database.*<br>TO 'poweradmin-user'@'localhost'<br>IDENTIFIED BY 'poweradmin-password';</tt></p>";
 		} elseif ($db_type == 'pgsql') {
-			echo "<p>On PgSQL you would use:</p>";
-			echo "<p><tt>$ createuser poweradmin-user<br>Shall the new role be a superuser? (y/n) n<br>Shall the new user be allowed to create databases? (y/n) n<br>Shall the new user be allowed to create more new users? (y/n) n<br>CREATE USER<br>$ psql powerdns-database<br>psql> GRANT  SELECT, INSERT, DELETE, UPDATE<br>ON powerdns-database<br>TO poweradmin-user;</tt></p>";
+			echo _('On PgSQL you would use:') . "</p>";
+			echo "<p><tt>$ createuser poweradmin-user<br>" .
+				"Shall the new role be a superuser? (y/n) n<br>" . 
+				"Shall the new user be allowed to create databases? (y/n) n<br>" . 
+				"Shall the new user be allowed to create more new users? (y/n) n<br>" . 
+				"CREATE USER<br>" . 
+				"$ psql powerdns-database<br>" .
+				"psql> GRANT  SELECT, INSERT, DELETE, UPDATE<br>" . 
+				"ON powerdns-database<br>" .
+				"TO poweradmin-user;</tt></p>\n";
 		}
-		echo "<p>After you have added the new user, proceed with this installation procedure.</p>\n";
+		echo "<p>" . _('After you have added the new user, proceed with this installation procedure.') . "</p>\n";
 		echo "<form method=\"post\">";
 		echo "<input type=\"hidden\" name=\"host\" value=\"" . $db_host . "\">";
 		echo "<input type=\"hidden\" name=\"name\" value=\"" . $db_name . "\">";
 		echo "<input type=\"hidden\" name=\"type\" value=\"" . $db_type . "\">";
 		echo "<input type=\"hidden\" name=\"step\" value=\"" . $step . "\">";
-		echo "<input type=\"submit\" name=\"submit\" value=\"Go to step " . $step . "\">";
+		echo "<input type=\"hidden\" name=\"language\" value=\"" . $language . "\">";
+		echo "<input type=\"submit\" name=\"submit\" value=\"" . _('Go to step') . " " . $step . "\">";
 		echo "</form>";
 		break;
 	
-	case 4:
+	case 5:
 		$step++;
 		$db_host = $_POST['host'];
 		$db_name = $_POST['name'];
 		$db_type = $_POST['type'];
-		echo "<p>Now we will put together the configuration. To do so, I need some details:</p>";
+		echo "<p>" . _('Now we will put together the configuration. To do so, the installer needs some details:') . "</p>\n";
 		echo "<form method=\"post\">";
-		echo "<table>";
-		echo "<tr><td>Username</td><td><input type=\"text\" name=\"db_user\" value=\"\"></td><td>The username as created in the previous step.</td></tr>";
-		echo "<tr><td>Password</td><td><input type=\"text\" name=\"db_pass\" value=\"\"></td><td>The password for this username.</td></tr>";
-		echo "<tr><td>Hostmaster</td><td><input type=\"text\" name=\"dns_hostmaster\" value=\"\"></td><td>When creating SOA records and no hostmaster is provided, this value here will be used. Should be in the form \"hostmaster.example.net\".</td></tr>";
-		echo "<tr><td>Primary nameserver</td><td><input type=\"text\" name=\"dns_ns1\" value=\"\"></td><td>When creating new zones using the template, this value will be used as primary nameserver. Should be like \"ns1.example.net\".</td></tr>";
-		echo "<tr><td>Secondary nameserver</td><td><input type=\"text\" name=\"dns_ns2\" value=\"\"></td><td>When creating new zones using the template, this value will be used as secondary nameserver. Should be like \"ns2.example.net\".</td></tr>";
+		echo " <table>";
+		echo "  <tr>";
+		echo "   <td>" . _('Username') . "</td>\n";
+		echo "   <td><input type=\"text\" name=\"db_user\" value=\"\"></td>\n";
+		echo "   <td>" . _('The username as created in the previous step.') . "</td>\n";
+		echo "  </tr>\n";
+		echo "  <tr>\n";
+		echo "   <td>" . _('Password') . "</td>\n";
+		echo "   <td><input type=\"text\" name=\"db_pass\" value=\"\"></td>\n";
+		echo "   <td>" . _('The password for this username.') . "</td>\n";
+		echo "  </tr>\n";
+		echo "  <tr>\n";
+		echo "   <td>" . _('Hostmaster') . "</td>\n";
+		echo "   <td><input type=\"text\" name=\"dns_hostmaster\" value=\"\"></td>\n";
+		echo "   <td>" . _('When creating SOA records and no hostmaster is provided, this value here will be used. Should be in the form "hostmaster.example.net".') . "</td>\n";
+		echo "  </tr>\n";
+		echo "  <tr>\n";
+		echo "   <td>" . _('Primary nameserver') . "</td>\n";
+		echo "   <td><input type=\"text\" name=\"dns_ns1\" value=\"\"></td>\n";
+		echo "   <td>" . _('When creating new zones using the template, this value will be used as primary nameserver. Should be like "ns1.example.net".') . "</td>\n";
+		echo "  </tr>\n";
+		echo "  <tr>\n";
+		echo "   <td>" . _('Secondary nameserver') . "</td>\n";;
+		echo "   <td><input type=\"text\" name=\"dns_ns2\" value=\"\"></td>\n";
+		echo "   <td>" . _('When creating new zones using the template, this value will be used as secondary nameserver. Should be like "ns2.example.net".') . "</td>\n";
+		echo "  </tr>\n";
 		echo "</table>";
 		echo "<input type=\"hidden\" name=\"db_host\" value=\"" . $db_host . "\">";
 		echo "<input type=\"hidden\" name=\"db_name\" value=\"" . $db_name . "\">";
 		echo "<input type=\"hidden\" name=\"db_type\" value=\"" . $db_type . "\">";
 		echo "<input type=\"hidden\" name=\"step\" value=\"" . $step . "\">";
-		echo "<input type=\"submit\" name=\"submit\" value=\"Go to step " . $step . "\">";
+		echo "<input type=\"hidden\" name=\"language\" value=\"" . $language . "\">";
+		echo "<input type=\"submit\" name=\"submit\" value=\"" . _('Go to step') . " " . $step . "\">";
 		echo "</form>";
 		break;
 
-	case 5:
+	case 6:
 		$step++;
 		$config = "<?\n\n" .
 			"\$db_host\t\t= \"" . $_POST['db_host'] . "\";\n" .
@@ -131,6 +218,8 @@
 			"\$db_name\t\t= \"" . $_POST['db_name'] . "\";\n" .
 			"\$db_type\t\t= \"" . $_POST['db_type'] . "\";\n" .
 			"\n" .
+			"\$iface_lang\t\t= \"" . $_POST['language'] . "\";\n" .
+			"\n" .
 			"\$dns_hostmaster\t\t= \"" . $_POST['dns_hostmaster'] . "\";\n" .
 			"\$dns_ns1\t\t= \"" . $_POST['dns_ns1'] . "\";\n" .
 			"\$dns_ns2\t\t= \"" . $_POST['dns_ns2'] . "\";\n" .
@@ -140,23 +229,24 @@
 			$h_config = fopen($local_config_file, "w");
 			fwrite($h_config, $config);
 			fclose($h_config);
-			echo "<p>The installer was able to write to the file \"" . $local_config_file . "\". A basic configuration, based on the details you have given, has been created.</p>\n";
+			echo "<p>" . _('The installer was able to write to the file "') . $local_config_file . _('". A basic configuration, based on the details you have given, has been created.') . "</p>\n";
 		} else {
-			echo "<p>The installer is unable to write to the file \"" . $local_config_file . "\" (which is in itself good). The configuration is printed here. You should now create the file " . $local_config_file . " in the Poweradmin root directory yourself. It should contain the following few lines:</p>\n";
+			echo "<p>" . _('The installer is unable to write to the file "') . $local_config_file . _('" (which is in itself good). The configuration is printed here. You should now create the file "') . $local_config_file . _('" in the Poweradmin root directory yourself. It should contain the following few lines:') . "</p>\n";
 			echo "<pre>";
 			echo $config;
 			echo "</pre>";
 		};
 		echo "<form method=\"post\">";
 		echo "<input type=\"hidden\" name=\"step\" value=\"" . $step . "\">";
-		echo "<input type=\"submit\" name=\"submit\" value=\"Go to step " . $step . "\">";
+		echo "<input type=\"hidden\" name=\"language\" value=\"" . $language . "\">";
+		echo "<input type=\"submit\" name=\"submit\" value=\"" . _('Go to step') . " " . $step . "\">";
 		echo "</form>";
 		break;
 
-	case 6:
+	case 7:
 		$step++;
-		echo "<p>Now we have finished the configuration, you should (must!) remove the directory \"install/\" from the Poweradmin root directory. You will not be able to use the file if it exists. Do it now.</p>";
-		echo "<p>After you have removed the file, you can login to <a href=\"index.php\">Poweradmin</a> with username \"admin\" and password \"admin\". You are highly encouraged to change these as soon as you are logged in.</p>";
+		echo "<p>" . _('Now we have finished the configuration, you should (must!) remove the directory "install/" from the Poweradmin root directory. You will not be able to use Poweradmin if it exists. Do it now.') . "</p>";
+		echo "<p>" . _('After you have removed the directory, you can login to <a href="index.php">Poweradmin</a> with username "admin" and password "admin". You are highly encouraged to change these as soon as you are logged in.') . "</p>";
 		break;
 
 	default:
Binary file locale/nl_NL/LC_MESSAGES/messages.mo has changed
--- a/locale/nl_NL/LC_MESSAGES/nl.po	Sat May 03 22:00:51 2008 +0000
+++ b/locale/nl_NL/LC_MESSAGES/nl.po	Fri May 09 14:07:54 2008 +0000
@@ -789,4 +789,150 @@
 msgid "No or unknown database type has been set in config.inc.php."
 msgstr "Er is geen of een onbekend database type opgegeven in config.inc.php."
 
+#: index.php:20
+msgid "Installation step"
+msgstr "Installatie stap"
 
+#: index.php:26
+msgid "This installer expects you to have a PowerDNS database accessable from this server. This installer also expects you to have never ran Poweradmin before, or that you want to overwrite the Poweradmin part of the database. If you have had Poweradmin running before, any data in the following tables will be destroyed: perm_items, perm_templ, perm_templ_items, users and zones. This installer will, of course, not touch the data in the PowerDNS tables of the database. However, it is recommended that you create a backup of your database before proceeding."
+msgstr "Het installatie script verwacht dat u een PowerDNS database beschikbaar heeft, welke bereikbaar is vanaf deze server. Het installatie script verwacht bovendien dat u niet eerder Poweradmin voor deze database gebruikt heeft, of dat u geen problemen heeft met het overschrijven van dat deel van de database. Als u Poweradmin eerder heeft gebruikt, dan wordt alle informatie in de volgende database tabellen overschreven: perm_items, perm_templ, perm_templ_items, users en zones. Het installatie script zal uiteraard de data in de PowerDNS tabellen in de database ongemoeid laten. Desondanks wordt u aangeraden eerst een backup van de database te maken."
+
+#: index.php:28
+msgid "The alternative for this installer is a manual installation. Refer to the poweradmin.org website if you want to go down that road."
+msgstr "Het alternatief voor dit installatie script is een handmatige installatie. Kijk op de website poweradmin.org voor meer informatie daarover."
+
+#: index.php:30
+msgid "Finally, if you see any errors during the installation process, a problem report would be appreciated. You can report problems (and ask for help) on the poweradmin-users mailinglist."
+msgstr "Tenslotte, mocht u onverhoopt problemen tijdens het installatie proces tegenkomen, zou een beschrijving daarvan welkom zijn. U kunt op de poweradmin-users mailinglist terecht voor hulp."
+
+#: index.php:33
+msgid "Do you want to proceed now?"
+msgstr "Wilt u nu doorgaan?"
+
+#: index.php:37 index.php:80 index.php:133 index.php:175 index.php:206
+msgid "Go to step"
+msgstr "Ga naar stap"
+
+#: index.php:43
+msgid "To prepare the database for using Poweradmin, the installer needs to modify the PowerDNS database. It will add a number of tables and it will fill these tables with some data. If the tables are already present, the installer will drop them first."
+msgstr "Om de database voor te bereiden op Poweradmin moet het installatie script enkele wijzigingen in de PowerDNS database maken. Het script zal een aantal tabellen toevoegen en deze vullen met data. Als deze tabellen al bestaan, zullen ze eerst worden verwijderd."
+
+#: index.php:45
+msgid "To do all of this, the installer needs to access the database with an account which has sufficient rights. If you trust the installer, you may give it the username and password of the database user root. Otherwise, make sure the user has enough rights, before actually proceeding."
+msgstr "Om dit te kunnen doen heeft het script toegang tot de database nodig met een account dat voldoende rechten heeft. Indien u het script vertrouwt, dan kunt u hier de gebruikersnaam en wachtwoord van de database gebruiker root opgeven. In andere gevallen dient u vooraf zeker te weten dat de opgegeven gebruiker voldoende rechten heeft, alvorens verder te gaan. "
+
+#: index.php:52
+msgid "The username to use to connect to the database, make sure the username has sufficient rights to perform administrative task to the PowerDNS database (the installer wants to drop, create and fill tables to the database)."
+msgstr "De gebruikersname voor de database. Zorgt u er voor dat deze gebruiker voldoende rechten heeft voor het uitvoeren van administratieve taken op de PowerDNS database (het installatie script moet tabellen kunnen verwijderen, toevoegen en vullen)."
+
+#: index.php:57 index.php:153
+msgid "The password for this username."
+msgstr "Het wachtwoord voor deze gebruikersnaam."
+
+#: index.php:60
+msgid "Hostname"
+msgstr "Hostnaam"
+
+#: index.php:62
+msgid "The hostname on which the PowerDNS database resides. Frequently, this will be \"localhost\"."
+msgstr "De hostnaam waarop de PowerDNS database gevonden kan worden. Vaak is dit \"localhost\"."
+
+#: index.php:65
+msgid "Database"
+msgstr "Database"
+
+#: index.php:67
+msgid "The name of the PowerDNS database."
+msgstr "De naam van de PowerDNS database."
+
+#: index.php:70
+msgid "Database type"
+msgstr "Database type"
+
+#: index.php:76
+msgid "The type of the PowerDNS database."
+msgstr "Het type van de PowerDNS database"
+
+#: index.php:86
+msgid "Updating database..."
+msgstr "Doorvoeren van wijziging in de database..."
+
+#: index.php:109
+msgid "done!"
+msgstr "gedaan!"
+
+#: index.php:111
+msgid "We have now updated the PowerDNS database to work with Poweradmin. You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database."
+msgstr "De PowerDNS database is nu voorbereid op het gebruik met Poweradin. U zult nu een database gebruiker moeten toevoegen met beperkte rechten. Deze gebruiker moet de rechten voor SELECT, DELETE, INSERT en UPDATE van records in de PowerDNS database hebben."
+
+#: index.php:113
+msgid "In MySQL you should now perform the following command:"
+msgstr "In MySQL voert u het volgende commando uit:"
+
+#: index.php:116
+msgid "On PgSQL you would use:"
+msgstr "In PgSQL kunt u de volgende commandos gebruiken:"
+
+#: index.php:127
+msgid "After you have added the new user, proceed with this installation procedure."
+msgstr "Als u de nieuwe gebruiker heeft toegevoegd, gaat u verder met de installatie procedure."
+
+#: index.php:142
+msgid "Now we will put together the configuration. To do so, the installer needs some details:"
+msgstr "De volgende stap is het samenstellen van de configuratie. Het installatie script heeft daarvoor enkele details nodig:"
+
+#: index.php:148
+msgid "The username as created in the previous step."
+msgstr "De gebruikersnaam zoals aangemaakt in de vorige stap."
+
+#: index.php:156
+msgid "Hostmaster"
+msgstr "Hostmaster"
+
+#: index.php:158
+msgid "When creating SOA records and no hostmaster is provided, this value here will be used. Should be in the form \"hostmaster.example.net\"."
+msgstr "Als u een SOA record aanmaakt en u geen hostmaster opgeeft, wordt deze waarde gebruikt. Voorbeeld: \"hostmaster.example.net\"."
+
+#: index.php:161
+msgid "Primary nameserver"
+msgstr "Primaire nameserver"
+
+#: index.php:163
+msgid "When creating new zones using the template, this value will be used as primary nameserver. Should be like \"ns1.example.net\"."
+msgstr "Als u een nieuwe zone aanmaakt met het zone template, dan wordt deze nameserver als primaire nameserber gebruikt. Voorbeeld: \"ns1.example.net\"."
+
+#: index.php:166
+msgid "Secondary nameserver"
+msgstr "Secundaire nameserver"
+
+#: index.php:168
+msgid "When creating new zones using the template, this value will be used as secondary nameserver. Should be like \"ns2.example.net\"."
+msgstr "Als u een nieuwe zone aanmaakt met het zone template, dan wordt deze nameserver als secundaire nameserber gebruikt. Voorbeeld: \"ns2.example.net\"."
+
+#: index.php:197
+msgid "The installer was able to write to the file \""
+msgstr "Het installatie script kon schrijven naar het bestand \""
+
+#: index.php:197
+msgid "\". A basic configuration, based on the details you have given, has been created."
+msgstr "\". Een minimale configuratie, gebaseerd op de door u opgegeven details, is aangemaakt."
+
+#: index.php:199
+msgid "The installer is unable to write to the file \""
+msgstr "Het installatie script kon niet schtijven naar het bestand \""
+
+#: index.php:199
+msgid "\" (which is in itself good). The configuration is printed here. You should now create the file \""
+msgstr "\" (wat op zichzelf wel goed is). De configuratie is hieronder weergegeven. U moet nu het bestand \""
+
+#: index.php:199
+msgid "\" in the Poweradmin root directory yourself. It should contain the following few lines:"
+msgstr "\" in de Poweradmin hoofd directory zelf aanmaken. Het moet de volgende regels bevatten:"
+
+#: index.php:212
+msgid "Now we have finished the configuration, you should (must!) remove the directory \"install/\" from the Poweradmin root directory. You will not be able to use Poweradmin if it exists. Do it now."
+msgstr "De configuratie is afgerond. U moet nu de directory \"install/\" uit de Poweradmin hoofd directory verwijderen. U kunt geen gebruik maken van Poweradmin als deze directory bestaat."
+
+#: index.php:213
+msgid "After you have removed the directory, you can login to <a href=\"index.php\">Poweradmin</a> with username \"admin\" and password \"admin\". You are highly encouraged to change these as soon as you are logged in."
+msgstr "Nadat u de directory hebt verwijderd kunt u op <a href=\"index.php\">Poweradmin</a> inloggen met gebruikersnaam \"admin\" en het wachtwoord \"admin\". U wordt zeer aangeraden deze direct te wijzigen."