summaryrefslogtreecommitdiffstats
path: root/usr/local/www/installer.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-30 16:49:44 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-30 16:49:44 -0300
commit65effce3ffaf6b9c0d7e8373fe2677d16a3376e5 (patch)
tree96e0d2e5d5efbb2674955518822679f52d90d5fb /usr/local/www/installer.php
parentd50cf30290e7706dc3c5f064dfa2db0c82f89255 (diff)
downloadpfsense-65effce3ffaf6b9c0d7e8373fe2677d16a3376e5.zip
pfsense-65effce3ffaf6b9c0d7e8373fe2677d16a3376e5.tar.gz
Implement gettext() calls on installer.php
Diffstat (limited to 'usr/local/www/installer.php')
-rw-r--r--usr/local/www/installer.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php
index f988d02..356d249 100644
--- a/usr/local/www/installer.php
+++ b/usr/local/www/installer.php
@@ -93,7 +93,7 @@ EOF;
function start_installation() {
$fd = fopen("/tmp/installer.sh", "w");
if(!$fd) {
- die("Could not open /tmp/installer.sh for writing");
+ die(gettext("Could not open /tmp/installer.sh for writing"));
exit;
}
fwrite($fd, "/PCBSD/pc-sysinstall/pc-sysinstall -c /PCBSD/pc-sysinstall/examples/pfSense-install.cfg && touch /tmp/install_complete");
@@ -112,7 +112,7 @@ function update_installer_status() {
return;
echo `tail -n20 /tmp/.pc-sysinstall/pc-sysinstall.log`;
if(file_exists("/tmp/install_complete")) {
- echo "Installation completed.";
+ echo gettext("Installation completed.");
unlink_if_exists("/tmp/installer.sh");
}
}
@@ -129,12 +129,12 @@ function begin_quick_easy_install() {
$disk = installer_find_first_disk();
if(!$disk) {
// XXX: hide progress bar
- $savemsg = "Could not find a suitable disk for installation";
- update_installer_status_win("Could not find a suitable disk for installation.");
+ $savemsg = gettext("Could not find a suitable disk for installation");
+ update_installer_status_win(gettext("Could not find a suitable disk for installation."));
return;
}
write_out_pc_sysinstaller_config($disk);
- update_installer_status_win("Beginning installation on disk {$disk}.");
+ update_installer_status_win(sprintf(gettext("Beginning installation on disk %s."),$disk));
start_installation();
}
@@ -246,7 +246,7 @@ function installer_main() {
body_html();
$disk = installer_find_first_disk();
if(!$disk)
- echo "WARNING: Could not find any suitable disks for installation.";
+ echo gettext("WARNING: Could not find any suitable disks for installation.");
echo <<<EOF
<div id="mainlevel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -273,4 +273,4 @@ EOF;
end_html();
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud