Browse Source

add disambiguating numbers in translated strings

tags/v2.9.0
Shivaram Lingamneni 2 years ago
parent
commit
d174b5aad6
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      irc/accounts.go
  2. 1
    1
      irc/handlers.go

+ 1
- 1
irc/accounts.go View File

@@ -1103,7 +1103,7 @@ func (am *AccountManager) NsSendpass(client *Client, accountName string) (err er
1103 1103
 
1104 1104
 	subject := fmt.Sprintf(client.t("Reset your password on %s"), am.server.name)
1105 1105
 	message := email.ComposeMail(config.Accounts.Registration.EmailVerification, account.Settings.Email, subject)
1106
-	fmt.Fprintf(&message, client.t("We received a request to reset your password on %s for account: %s"), am.server.name, account.Name)
1106
+	fmt.Fprintf(&message, client.t("We received a request to reset your password on %[1]s for account: %[2]s"), am.server.name, account.Name)
1107 1107
 	message.WriteString("\r\n")
1108 1108
 	fmt.Fprintf(&message, client.t("If you did not initiate this request, you can safely ignore this message."))
1109 1109
 	message.WriteString("\r\n")

+ 1
- 1
irc/handlers.go View File

@@ -3560,7 +3560,7 @@ func zncHandler(server *Server, client *Client, msg ircmsg.Message, rb *Response
3560 3560
 func unknownCommandHandler(server *Server, client *Client, msg ircmsg.Message, rb *ResponseBuffer) bool {
3561 3561
 	var message string
3562 3562
 	if strings.HasPrefix(msg.Command, "/") {
3563
-		message = fmt.Sprintf(client.t("Unknown command; if you are using /QUOTE, the correct syntax is /QUOTE %s, not /QUOTE %s"),
3563
+		message = fmt.Sprintf(client.t("Unknown command; if you are using /QUOTE, the correct syntax is /QUOTE %[1]s, not /QUOTE %[2]s"),
3564 3564
 			strings.TrimPrefix(msg.Command, "/"), msg.Command)
3565 3565
 	} else {
3566 3566
 		message = client.t("Unknown command")

Loading…
Cancel
Save