Index: auth.c =================================================================== --- auth.c (revision 6131) +++ auth.c (working copy) @@ -75,6 +75,7 @@ realm[HTTP_MAX_VALUE], /* realm="xyz" string */ nonce[HTTP_MAX_VALUE], /* nonce="xyz" string */ encode[512]; /* Encoded username:password */ + _cups_globals_t *cg; /* Global data */ DEBUG_printf(("cupsDoAuthentication(http=%p, method=\"%s\", resource=\"%s\")\n", @@ -114,9 +115,16 @@ * Nope - get a new password from the user... */ - snprintf(prompt, sizeof(prompt), _("Password for %s on %s? "), cupsUser(), - http->hostname[0] == '/' ? "localhost" : http->hostname); + cg = _cupsGlobals(); + if (!cg->lang_default) + cg->lang_default = cupsLangDefault(); + + snprintf(prompt, sizeof(prompt), + _cupsLangString(cg->lang_default, _("Password for %s on %s? ")), + cupsUser(), + http->hostname[0] == '/' ? "localhost" : http->hostname); + http->digest_tries = strncasecmp(http->fields[HTTP_FIELD_WWW_AUTHENTICATE], "Digest", 5) != 0; http->userpass[0] = '\0';