]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Pretify the interface a little bit
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Aug 2014 13:19:42 +0000 (15:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Aug 2014 13:19:42 +0000 (15:19 +0200)
lfs/installer
src/installer/main.c

index 86862b8bcccd5c15a118c305b012185c539281e9..7f73222c1b87170742141379b46e50115896a564 100644 (file)
@@ -30,6 +30,8 @@ THISAPP    = installer
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+SLOGAN     = An Open Source Firewall Solution
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
index 8ff5696851ce6a167fde8f0dbaf21312415b6b4e..c5adb0adfc754ec37f668124ae3e31d00bdd9772 100644 (file)
@@ -274,7 +274,7 @@ int main(int argc, char *argv[]) {
        char* roottext = center_string(system_release, screen_cols);
        newtDrawRootText(0, 0, roottext);
 
-       sprintf (title, "%s %s - %s", NAME, VERSION, SLOGAN);
+       snprintf(title, sizeof(title), "%s - %s", NAME, SLOGAN);
 
        if (! (cmdfile = fopen("/proc/cmdline", "r")))
        {
@@ -325,7 +325,7 @@ int main(int argc, char *argv[]) {
 
        if (!unattended) {
                snprintf(message, sizeof(message),
-                       _("Welcome to the %s installation program. "
+                       _("Welcome to the %s installation program.\n\n"
                        "Selecting Cancel on any of the following screens will reboot the computer."), NAME);
                newtWinMessage(title, _("Start installation"), message);
        }
@@ -373,7 +373,7 @@ int main(int argc, char *argv[]) {
                        fread(discl_msg, 1, 40000, copying);
                        fclose(copying);
 
-                       if (newtLicenseBox(title, discl_msg, 75, 20)) {
+                       if (newtLicenseBox(_("License Agreement"), discl_msg, 75, 20)) {
                                errorbox(_("License not accepted!"));
 
                                goto EXIT;
@@ -491,7 +491,7 @@ int main(int argc, char *argv[]) {
        // Warn the user if there is not enough space to create a swap partition
        if (!unattended && !*destination->part_swap) {
                rc = newtWinChoice(title, _("OK"), _("Cancel"),
-                       _("Your harddisk is very small, but you can continue with an very small swap. (Use with caution)."));
+                       _("Your harddisk is very small, but you can continue without a swap partition."));
 
                if (rc != 1)
                        goto EXIT;
@@ -644,12 +644,12 @@ int main(int argc, char *argv[]) {
        mysystem(logfile, commandstring);
 
        if (!unattended) {
-               snprintf(message, sizeof(message), _("%s was successfully installed. "
-                       "Please remove any installation mediums from this system. "
-                       "Setup will now run where you may configure networking and the system passwords. "
-                       "After Setup has been completed, you should point your web browser at https://%s:444 "
-                       "(or whatever you name your %s), and configure dialup networking (if required) and "
-                       "remote access."), NAME, SNAME, NAME);
+               snprintf(message, sizeof(message), _(
+                       "%s was successfully installed!\n\n"
+                       "Please remove any installation mediums from this system and hit the reboot button. "
+                       "Once the system has restarted you will be asked to setup networking and system passwords. "
+                       "After that, you should point your web browser at https://%s:444 (or what ever you name "
+                       "your %s) for the web configuration console."), NAME, SNAME, NAME);
                newtWinMessage(_("Congratulations!"), _("Reboot"), message);
        }
 
@@ -657,14 +657,11 @@ int main(int argc, char *argv[]) {
 
 EXIT:
        fprintf(flog, "Install program ended.\n");
+       fflush(flog);
+       fclose(flog);
 
-       if (!(allok))
-               newtWinMessage(title, _("OK"), _("Press Ok to reboot."));
-
-       if (allok) {
-               fflush(flog);
-               fclose(flog);
-       }
+       if (!allok)
+               newtWinMessage(title, _("OK"), _("Setup has failed. Press Ok to reboot."));
 
        newtFinished();