From a766c942cce257de8dcd878e74bd5e4f1d084c85 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 23 Dec 2004 15:38:22 +0000 Subject: Let the user know they're in rescue mode from the very beginning (#136171). --- loader2/lang.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'loader2/lang.c') diff --git a/loader2/lang.c b/loader2/lang.c index d1efb1215..009e999d4 100644 --- a/loader2/lang.c +++ b/loader2/lang.c @@ -50,6 +50,7 @@ struct aString * strings = NULL; int numStrings = 0, allocedStrings = 0; static char * topLineWelcome = N_("Welcome to %s"); +static char * topLineWelcomeRescue = N_("Welcome to %s - Rescue Mode"); static char * bottomHelpLine = N_(" / between elements | selects | next screen "); static int aStringCmp(const void * a, const void * b) { @@ -249,7 +250,11 @@ static int setupLanguage(int choice, int flags) { buf[i] = ' '; newtDrawRootText(0, 0, buf); - buf = sdupprintf(_(topLineWelcome), getProductName()); + if (FL_RESCUE(flags)) + buf = sdupprintf(_(topLineWelcomeRescue), getProductName()); + else + buf = sdupprintf(_(topLineWelcome), getProductName()); + newtDrawRootText(0, 0, buf); free(buf); newtPopHelpLine(); -- cgit