3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00

Fix translation notes

This commit is contained in:
Daniel Oaks 2018-04-01 18:31:30 +10:00
parent dcb15d619d
commit 3394700def
2 changed files with 6 additions and 6 deletions

View File

@ -199,8 +199,8 @@ func sendSuccessfulSaslAuth(client *Client, rb *ResponseBuffer, forNS bool) {
if forNS {
rb.Notice(fmt.Sprintf(client.t("You're now logged in as %s"), client.AccountName()))
} else {
rb.Add(nil, client.server.name, RPL_LOGGEDIN, client.nick, client.nickMaskString, account, fmt.Sprintf("You are now logged in as %s", account))
rb.Add(nil, client.server.name, RPL_SASLSUCCESS, client.nick, client.t("SASL authentication successful"))
rb.Add(nil, client.server.name, RPL_LOGGEDIN, client.nick, client.nickMaskString, account, fmt.Sprintf(client.t("You are now logged in as %s"), account))
rb.Add(nil, client.server.name, RPL_SASLSUCCESS, client.nick, client.t("Authentication successful"))
}
// dispatch account-notify

View File

@ -408,13 +408,13 @@ func nsRegisterHandler(server *Server, client *Client, command, params string, r
// details could not be stored and relevant numerics have been dispatched, abort
if err != nil {
errMsg := "Could not register"
errMsg := client.t("Could not register")
if err == errCertfpAlreadyExists {
errMsg = "An account already exists for your certificate fingerprint"
errMsg = client.t("An account already exists for your certificate fingerprint")
} else if err == errAccountAlreadyRegistered {
errMsg = "Account already exists"
errMsg = client.t("Account already exists")
}
nsNotice(rb, client.t(errMsg))
nsNotice(rb, errMsg)
return
}
}