From fb55cc3390ebae3f1c0f00c9349c25ef89cbdd86 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Tue, 16 Jun 2020 20:33:10 +1000 Subject: [PATCH] Ignore some dodgy TL strings, fix another dodgy string --- irc/chanserv.go | 2 +- languages/example/help.lang.json | 3 +++ languages/example/irc.lang.json | 9 ++++++- languages/example/nickserv.lang.json | 5 ++-- updatetranslations.py | 39 ++++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 5 deletions(-) diff --git a/irc/chanserv.go b/irc/chanserv.go index d5622828..e21a44dc 100644 --- a/irc/chanserv.go +++ b/irc/chanserv.go @@ -249,7 +249,7 @@ func csAmodeHandler(server *Server, client *Client, command string, params []str } case modes.Add, modes.Remove: if len(affectedModes) > 0 { - csNotice(rb, fmt.Sprintf(client.t("Successfully set persistent mode %s%s on %s"), string(change.Op), string(change.Mode), change.Arg)) + csNotice(rb, fmt.Sprintf(client.t("Successfully set persistent mode %[1]s on %[2]s"), strings.Join([]string{string(change.Op), string(change.Mode)}, ""), change.Arg)) // #729: apply change to current membership for _, member := range channel.Members() { if member.Account() == change.Arg { diff --git a/languages/example/help.lang.json b/languages/example/help.lang.json index 1cf60574..36228789 100644 --- a/languages/example/help.lang.json +++ b/languages/example/help.lang.json @@ -15,6 +15,7 @@ "DEBUG