Skip to content

Commit

Permalink
Translatable string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolm Hunter authored and Marco van Wieringen committed Apr 30, 2014
1 parent 6244df1 commit 4a2573a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
24 changes: 12 additions & 12 deletions src/dird/authenticate.c
Expand Up @@ -115,13 +115,13 @@ bool authenticate_storage_daemon(JCR *jcr, STORERES *store)
if (!auth_success) {
stop_bsock_timer(tid);
Dmsg0(dbglvl, _("Director and Storage daemon passwords or names not the same.\n"));
Jmsg2(jcr, M_FATAL, 0,
_("Director unable to authenticate with Storage daemon at \"%s:%d\". Possible causes:\n"
"Passwords or names not the same or\n"
"Maximum Concurrent Jobs exceeded on the SD or\n"
"SD networking messed up (restart daemon).\n"
"Please see " MANUAL_AUTH_URL " for help.\n"),
sd->host(), sd->port());
Jmsg(jcr, M_FATAL, 0,
_("Director unable to authenticate with Storage daemon at \"%s:%d\". Possible causes:\n"
"Passwords or names not the same or\n"
"Maximum Concurrent Jobs exceeded on the SD or\n"
"SD networking messed up (restart daemon).\n"
"Please see %s for help.\n"),
sd->host(), sd->port(), MANUAL_AUTH_URL);
return false;
}

Expand Down Expand Up @@ -242,11 +242,11 @@ bool authenticate_file_daemon(JCR *jcr)
Dmsg0(dbglvl, _("Director and File daemon passwords or names not the same.\n"));
Jmsg(jcr, M_FATAL, 0,
_("Unable to authenticate with File daemon at \"%s:%d\". Possible causes:\n"
"Passwords or names not the same or\n"
"Maximum Concurrent Jobs exceeded on the FD or\n"
"FD networking messed up (restart daemon).\n"
"Please see " MANUAL_AUTH_URL " for help.\n"),
fd->host(), fd->port());
"Passwords or names not the same or\n"
"Maximum Concurrent Jobs exceeded on the FD or\n"
"FD networking messed up (restart daemon).\n"
"Please see %s for help.\n"),
fd->host(), fd->port(), MANUAL_AUTH_URL);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/filed/authenticate.c
Expand Up @@ -301,7 +301,7 @@ static inline bool two_way_authenticate(BSOCK *bs, JCR *jcr, bool initiate, cons

if (!auth_success) {
Jmsg(jcr, M_FATAL, 0, _("Authorization key rejected by %s daemon.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"), what);
"Please see %s for help.\n"), what, MANUAL_AUTH_URL);
goto auth_fatal;
}

Expand Down
8 changes: 4 additions & 4 deletions src/lib/bsock.c
Expand Up @@ -325,10 +325,10 @@ bool BSOCK::authenticate_with_director(const char *name, const char *password,
dir->stop_timer();
bsnprintf(response, response_len, _("Authorization problem with Director at \"%s:%d\"\n"
"Most likely the passwords do not agree.\n"
"If you are using TLS, there may have been a certificate"
" validation error during the TLS handshake.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"),
dir->host(), dir->port());
"If you are using TLS, there may have been a certificate "
"validation error during the TLS handshake.\n"
"Please see %s for help.\n"),
dir->host(), dir->port(), MANUAL_AUTH_URL);

return false;
}
Expand Down
8 changes: 4 additions & 4 deletions src/qt-tray-monitor/authenticate.cpp
Expand Up @@ -78,9 +78,9 @@ static int authenticate_director(JCR *jcr)
if (!cram_md5_respond(dir, monitor->password.value, &tls_remote_need, &compatible) ||
!cram_md5_challenge(dir, monitor->password.value, tls_local_need, compatible)) {
stop_bsock_timer(tid);
Jmsg0(jcr, M_FATAL, 0, _("Director authorization problem.\n"
"Most likely the passwords do not agree.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"));
Jmsg(jcr, M_FATAL, 0, _("Director authorization problem.\n"
"Most likely the passwords do not agree.\n"
"Please see %s for help.\n"), MANUAL_AUTH_URL);
return 0;
}

Expand Down Expand Up @@ -196,7 +196,7 @@ static int authenticate_file_daemon(JCR *jcr, CLIENTRES* client)
!cram_md5_challenge(fd, client->password.value, tls_local_need, compatible)) {
stop_bsock_timer(tid);
Jmsg(jcr, M_FATAL, 0, _("Director and File daemon passwords or names not the same.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"));
"Please see %s for help.\n"), MANUAL_AUTH_URL);
return 0;
}

Expand Down
12 changes: 6 additions & 6 deletions src/stored/authenticate.c
Expand Up @@ -87,9 +87,9 @@ static inline bool two_way_authenticate(int rcode, BSOCK *bs, JCR* jcr)
if (!director) {
Dmsg2(dbglvl, "Connection from unknown Director %s at %s rejected.\n",
dirname, bs->who());
Jmsg2(jcr, M_FATAL, 0, _("Connection from unknown Director %s at %s rejected.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"),
dirname, bs->who());
Jmsg(jcr, M_FATAL, 0, _("Connection from unknown Director %s at %s rejected.\n"
"Please see %s for help.\n"),
dirname, bs->who(), MANUAL_AUTH_URL);
free_pool_memory(dirname);
return 0;
}
Expand Down Expand Up @@ -130,8 +130,8 @@ static inline bool two_way_authenticate(int rcode, BSOCK *bs, JCR* jcr)
}

if (!auth_success) {
Jmsg0(jcr, M_FATAL, 0, _("Incorrect password given by Director.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"));
Jmsg(jcr, M_FATAL, 0, _("Incorrect password given by Director.\n"
"Please see %s for help.\n"), MANUAL_AUTH_URL);
auth_success = false;
goto auth_fatal;
}
Expand Down Expand Up @@ -258,7 +258,7 @@ static inline bool two_way_authenticate(BSOCK *bs, JCR *jcr, bool initiate, cons

if (!auth_success) {
Jmsg(jcr, M_FATAL, 0, _("Incorrect authorization key from %s daemon at %s rejected.\n"
"Please see " MANUAL_AUTH_URL " for help.\n"), what, bs->who());
"Please see %s for help.\n"), what, bs->who(), MANUAL_AUTH_URL);
auth_success = false;
goto auth_fatal;
}
Expand Down

0 comments on commit 4a2573a

Please sign in to comment.