add support for guild scout languages

This commit is contained in:
wish
2022-11-09 23:51:24 +11:00
parent 10b2ddcfd7
commit 94c729a212
3 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
{ {
"Host": "127.0.0.1", "Host": "127.0.0.1",
"BinPath": "bin", "BinPath": "bin",
"Language": "en",
"DisableSoftCrash": false, "DisableSoftCrash": false,
"FeaturedWeapons": 1, "FeaturedWeapons": 1,
"HideLoginNotice": true, "HideLoginNotice": true,

View File

@@ -62,10 +62,9 @@ func handleMsgMhfPostGuildScout(s *Session, p mhfpacket.MHFPacket) {
mail := &Mail{ mail := &Mail{
SenderID: s.charID, SenderID: s.charID,
RecipientID: pkt.CharID, RecipientID: pkt.CharID,
Subject: "Invitation!", Subject: s.server.dict["guildInviteName"],
Body: fmt.Sprintf( Body: fmt.Sprintf(
"%s has invited you to join 「%s」\nDo you want to accept?", s.server.dict["guildInvite"],
getCharacterName(s, s.charID),
guildInfo.Name, guildInfo.Name,
), ),
IsGuildInvite: true, IsGuildInvite: true,

View File

@@ -6,9 +6,13 @@ func getLangStrings(s *Server) map[string]string {
case "jp": case "jp":
strings["language"] = "日本語" strings["language"] = "日本語"
strings["cafeReset"] = "%d/%dにリセット" strings["cafeReset"] = "%d/%dにリセット"
strings["guildInviteName"] = "猟団勧誘のご案内"
strings["guildInvite"] = "猟団「%s」からの勧誘通知です。\n「勧誘に返答」より、返答を行ってください。"
default: default:
strings["language"] = "English" strings["language"] = "English"
strings["cafeReset"] = "Resets on %d/%d" strings["cafeReset"] = "Resets on %d/%d"
strings["guildInviteName"] = "Invitation!"
strings["guildInvite"] = "You have been invited to join\n「%s」\nDo you want to accept?"
} }
return strings return strings
} }