mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
i18n proposal
This commit is contained in:
@@ -1,118 +1,206 @@
|
||||
package channelserver
|
||||
|
||||
func getLangStrings(s *Server) map[string]string {
|
||||
strings := make(map[string]string)
|
||||
type i18n struct {
|
||||
language string
|
||||
cafe struct {
|
||||
reset string
|
||||
}
|
||||
commands struct {
|
||||
disabled string
|
||||
reload string
|
||||
kqf struct {
|
||||
get string
|
||||
set struct {
|
||||
error string
|
||||
success string
|
||||
}
|
||||
version string
|
||||
}
|
||||
rights struct {
|
||||
error string
|
||||
success string
|
||||
}
|
||||
course struct {
|
||||
error string
|
||||
disabled string
|
||||
enabled string
|
||||
locked string
|
||||
}
|
||||
teleport struct {
|
||||
error string
|
||||
success string
|
||||
}
|
||||
psn struct {
|
||||
error string
|
||||
success string
|
||||
exists string
|
||||
}
|
||||
discord struct {
|
||||
success string
|
||||
}
|
||||
ravi struct {
|
||||
noCommand string
|
||||
start struct {
|
||||
success string
|
||||
error string
|
||||
}
|
||||
multiplier string
|
||||
res struct {
|
||||
success string
|
||||
error string
|
||||
}
|
||||
sed struct {
|
||||
success string
|
||||
}
|
||||
request string
|
||||
error string
|
||||
noPlayers string
|
||||
version string
|
||||
}
|
||||
}
|
||||
raviente struct {
|
||||
berserk string
|
||||
extreme string
|
||||
extremeLimited string
|
||||
berserkSmall string
|
||||
}
|
||||
guild struct {
|
||||
invite struct {
|
||||
title string
|
||||
body string
|
||||
success struct {
|
||||
title string
|
||||
body string
|
||||
}
|
||||
accepted struct {
|
||||
title string
|
||||
body string
|
||||
}
|
||||
rejected struct {
|
||||
title string
|
||||
body string
|
||||
}
|
||||
declined struct {
|
||||
title string
|
||||
body string
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func getLangStrings(s *Server) i18n {
|
||||
var i i18n
|
||||
switch s.erupeConfig.Language {
|
||||
case "jp":
|
||||
strings["language"] = "日本語"
|
||||
strings["cafeReset"] = "%d/%dにリセット"
|
||||
i.language = "日本語"
|
||||
i.cafe.reset = "%d/%dにリセット"
|
||||
|
||||
strings["commandDisabled"] = "%sのコマンドは無効です"
|
||||
strings["commandReload"] = "リロードします"
|
||||
strings["commandKqfGet"] = "現在のキークエストフラグ:%x"
|
||||
strings["commandKqfSetError"] = "キークエコマンドエラー 例:%s set xxxxxxxxxxxxxxxx"
|
||||
strings["commandKqfSetSuccess"] = "キークエストのフラグが更新されました。ワールド/ランドを移動してください"
|
||||
strings["commandKqfVersion"] = "This command is disabled prior to MHFG10"
|
||||
strings["commandRightsError"] = "コース更新コマンドエラー 例:%s x"
|
||||
strings["commandRightsSuccess"] = "コース情報を更新しました:%d"
|
||||
strings["commandCourseError"] = "コース確認コマンドエラー 例:%s <name>"
|
||||
strings["commandCourseDisabled"] = "%sコースは無効です"
|
||||
strings["commandCourseEnabled"] = "%sコースは有効です"
|
||||
strings["commandCourseLocked"] = "%sコースはロックされています"
|
||||
strings["commandTeleportError"] = "テレポートコマンドエラー 構文:%s x y"
|
||||
strings["commandTeleportSuccess"] = "%d %dにテレポート"
|
||||
strings["commandPSNError"] = "PSN連携コマンドエラー 例:%s <psn id>"
|
||||
strings["commandPSNSuccess"] = "PSN「%s」が連携されています"
|
||||
strings["commandPSNExists"] = "PSNは既存のユーザに接続されています"
|
||||
i.commands.disabled = "%sのコマンドは無効です"
|
||||
i.commands.reload = "リロードします"
|
||||
i.commands.kqf.get = "現在のキークエストフラグ:%x"
|
||||
i.commands.kqf.set.error = "キークエコマンドエラー 例:%s set xxxxxxxxxxxxxxxx"
|
||||
i.commands.kqf.set.success = "キークエストのフラグが更新されました。ワールド/ランドを移動してください"
|
||||
i.commands.kqf.version = "This command is disabled prior to MHFG10"
|
||||
i.commands.rights.error = "コース更新コマンドエラー 例:%s x"
|
||||
i.commands.rights.success = "コース情報を更新しました:%d"
|
||||
i.commands.course.error = "コース確認コマンドエラー 例:%s <name>"
|
||||
i.commands.course.disabled = "%sコースは無効です"
|
||||
i.commands.course.enabled = "%sコースは有効です"
|
||||
i.commands.course.locked = "%sコースはロックされています"
|
||||
i.commands.teleport.error = "テレポートコマンドエラー 構文:%s x y"
|
||||
i.commands.teleport.success = "%d %dにテレポート"
|
||||
i.commands.psn.error = "PSN連携コマンドエラー 例:%s <psn id>"
|
||||
i.commands.psn.success = "PSN「%s」が連携されています"
|
||||
i.commands.psn.exists = "PSNは既存のユーザに接続されています"
|
||||
|
||||
strings["commandDiscordSuccess"] = "あなたのDiscordトークン:%s"
|
||||
i.commands.discord.success = "あなたのDiscordトークン:%s"
|
||||
|
||||
strings["commandRaviNoCommand"] = "ラヴィコマンドが指定されていません"
|
||||
strings["commandRaviStartSuccess"] = "大討伐を開始します"
|
||||
strings["commandRaviStartError"] = "大討伐は既に開催されています"
|
||||
strings["commandRaviMultiplier"] = "ラヴィダメージ倍率:x%.2f"
|
||||
strings["commandRaviResSuccess"] = "復活支援を実行します"
|
||||
strings["commandRaviResError"] = "復活支援は実行されませんでした"
|
||||
strings["commandRaviSedSuccess"] = "鎮静支援を実行します"
|
||||
strings["commandRaviRequest"] = "鎮静支援を要請します"
|
||||
strings["commandRaviError"] = "ラヴィコマンドが認識されません"
|
||||
strings["commandRaviNoPlayers"] = "誰も大討伐に参加していません"
|
||||
strings["commandRaviVersion"] = "This command is disabled outside of MHFZZ"
|
||||
i.commands.ravi.noCommand = "ラヴィコマンドが指定されていません"
|
||||
i.commands.ravi.start.success = "大討伐を開始します"
|
||||
i.commands.ravi.start.error = "大討伐は既に開催されています"
|
||||
i.commands.ravi.multiplier = "ラヴィダメージ倍率:x%.2f"
|
||||
i.commands.ravi.res.success = "復活支援を実行します"
|
||||
i.commands.ravi.res.error = "復活支援は実行されませんでした"
|
||||
i.commands.ravi.sed.success = "鎮静支援を実行します"
|
||||
i.commands.ravi.request = "鎮静支援を要請します"
|
||||
i.commands.ravi.error = "ラヴィコマンドが認識されません"
|
||||
i.commands.ravi.noPlayers = "誰も大討伐に参加していません"
|
||||
i.commands.ravi.version = "This command is disabled outside of MHFZZ"
|
||||
|
||||
strings["ravienteBerserk"] = "<大討伐:猛狂期>が開催されました!"
|
||||
strings["ravienteExtreme"] = "<大討伐:猛狂期【極】>が開催されました!"
|
||||
strings["ravienteExtremeLimited"] = "<大討伐:猛狂期【極】(制限付)>が開催されました!"
|
||||
strings["ravienteBerserkSmall"] = "<大討伐:猛狂期(小数)>が開催されました!"
|
||||
i.raviente.berserk = "<大討伐:猛狂期>が開催されました!"
|
||||
i.raviente.extreme = "<大討伐:猛狂期【極】>が開催されました!"
|
||||
i.raviente.extremeLimited = "<大討伐:猛狂期【極】(制限付)>が開催されました!"
|
||||
i.raviente.berserkSmall = "<大討伐:猛狂期(小数)>が開催されました!"
|
||||
|
||||
strings["guildInviteName"] = "猟団勧誘のご案内"
|
||||
strings["guildInvite"] = "猟団「%s」からの勧誘通知です。\n「勧誘に返答」より、返答を行ってください。"
|
||||
i.guild.invite.title = "猟団勧誘のご案内"
|
||||
i.guild.invite.body = "猟団「%s」からの勧誘通知です。\n「勧誘に返答」より、返答を行ってください。"
|
||||
|
||||
strings["guildInviteSuccessName"] = "成功"
|
||||
strings["guildInviteSuccess"] = "あなたは「%s」に参加できました。"
|
||||
i.guild.invite.success.title = "成功"
|
||||
i.guild.invite.success.body = "あなたは「%s」に参加できました。"
|
||||
|
||||
strings["guildInviteAcceptedName"] = "承諾されました"
|
||||
strings["guildInviteAccepted"] = "招待した狩人が「%s」への招待を承諾しました。"
|
||||
i.guild.invite.accepted.title = "承諾されました"
|
||||
i.guild.invite.accepted.body = "招待した狩人が「%s」への招待を承諾しました。"
|
||||
|
||||
strings["guildInviteRejectName"] = "却下しました"
|
||||
strings["guildInviteReject"] = "あなたは「%s」への参加を却下しました。"
|
||||
i.guild.invite.rejected.title = "却下しました"
|
||||
i.guild.invite.rejected.body = "あなたは「%s」への参加を却下しました。"
|
||||
|
||||
strings["guildInviteDeclinedName"] = "辞退しました"
|
||||
strings["guildInviteDeclined"] = "招待した狩人が「%s」への招待を辞退しました。"
|
||||
i.guild.invite.declined.title = "辞退しました"
|
||||
i.guild.invite.declined.body = "招待した狩人が「%s」への招待を辞退しました。"
|
||||
default:
|
||||
strings["language"] = "English"
|
||||
strings["cafeReset"] = "Resets on %d/%d"
|
||||
i.language = "English"
|
||||
i.cafe.reset = "Resets on %d/%d"
|
||||
|
||||
strings["commandDisabled"] = "%s command is disabled"
|
||||
strings["commandReload"] = "Reloading players..."
|
||||
strings["commandKqfGet"] = "KQF: %x"
|
||||
strings["commandKqfSetError"] = "Error in command. Format: %s set xxxxxxxxxxxxxxxx"
|
||||
strings["commandKqfSetSuccess"] = "KQF set, please switch Land/World"
|
||||
strings["commandKqfVersion"] = "This command is disabled prior to MHFG10"
|
||||
strings["commandRightsError"] = "Error in command. Format: %s x"
|
||||
strings["commandRightsSuccess"] = "Set rights integer: %d"
|
||||
strings["commandCourseError"] = "Error in command. Format: %s <name>"
|
||||
strings["commandCourseDisabled"] = "%s Course disabled"
|
||||
strings["commandCourseEnabled"] = "%s Course enabled"
|
||||
strings["commandCourseLocked"] = "%s Course is locked"
|
||||
strings["commandTeleportError"] = "Error in command. Format: %s x y"
|
||||
strings["commandTeleportSuccess"] = "Teleporting to %d %d"
|
||||
strings["commandPSNError"] = "Error in command. Format: %s <psn id>"
|
||||
strings["commandPSNSuccess"] = "Connected PSN ID: %s"
|
||||
strings["commandPSNExists"] = "PSN ID is connected to another account!"
|
||||
i.commands.disabled = "%s command is disabled"
|
||||
i.commands.reload = "Reloading players..."
|
||||
i.commands.kqf.get = "KQF: %x"
|
||||
i.commands.kqf.set.error = "Error in command. Format: %s set xxxxxxxxxxxxxxxx"
|
||||
i.commands.kqf.set.success = "KQF set, please switch Land/World"
|
||||
i.commands.kqf.version = "This command is disabled prior to MHFG10"
|
||||
i.commands.rights.error = "Error in command. Format: %s x"
|
||||
i.commands.rights.success = "Set rights integer: %d"
|
||||
i.commands.course.error = "Error in command. Format: %s <name>"
|
||||
i.commands.course.disabled = "%s Course disabled"
|
||||
i.commands.course.enabled = "%s Course enabled"
|
||||
i.commands.course.locked = "%s Course is locked"
|
||||
i.commands.teleport.error = "Error in command. Format: %s x y"
|
||||
i.commands.teleport.success = "Teleporting to %d %d"
|
||||
i.commands.psn.error = "Error in command. Format: %s <psn id>"
|
||||
i.commands.psn.success = "Connected PSN ID: %s"
|
||||
i.commands.psn.exists = "PSN ID is connected to another account!"
|
||||
|
||||
strings["commandDiscordSuccess"] = "Your Discord token: %s"
|
||||
i.commands.discord.success = "Your Discord token: %s"
|
||||
|
||||
strings["commandRaviNoCommand"] = "No Raviente command specified!"
|
||||
strings["commandRaviStartSuccess"] = "The Great Slaying will begin in a moment"
|
||||
strings["commandRaviStartError"] = "The Great Slaying has already begun!"
|
||||
strings["commandRaviMultiplier"] = "Raviente multiplier is currently %.2fx"
|
||||
strings["commandRaviResSuccess"] = "Sending resurrection support!"
|
||||
strings["commandRaviResError"] = "Resurrection support has not been requested!"
|
||||
strings["commandRaviSedSuccess"] = "Sending sedation support if requested!"
|
||||
strings["commandRaviRequest"] = "Requesting sedation support!"
|
||||
strings["commandRaviError"] = "Raviente command not recognised!"
|
||||
strings["commandRaviNoPlayers"] = "No one has joined the Great Slaying!"
|
||||
strings["commandRaviVersion"] = "This command is disabled outside of MHFZZ"
|
||||
i.commands.ravi.noCommand = "No Raviente command specified!"
|
||||
i.commands.ravi.start.success = "The Great Slaying will begin in a moment"
|
||||
i.commands.ravi.start.error = "The Great Slaying has already begun!"
|
||||
i.commands.ravi.multiplier = "Raviente multiplier is currently %.2fx"
|
||||
i.commands.ravi.res.success = "Sending resurrection support!"
|
||||
i.commands.ravi.res.error = "Resurrection support has not been requested!"
|
||||
i.commands.ravi.sed.success = "Sending sedation support if requested!"
|
||||
i.commands.ravi.request = "Requesting sedation support!"
|
||||
i.commands.ravi.error = "Raviente command not recognised!"
|
||||
i.commands.ravi.noPlayers = "No one has joined the Great Slaying!"
|
||||
i.commands.ravi.version = "This command is disabled outside of MHFZZ"
|
||||
|
||||
strings["ravienteBerserk"] = "<Great Slaying: Berserk> is being held!"
|
||||
strings["ravienteExtreme"] = "<Great Slaying: Extreme> is being held!"
|
||||
strings["ravienteExtremeLimited"] = "<Great Slaying: Extreme (Limited)> is being held!"
|
||||
strings["ravienteBerserkSmall"] = "<Great Slaying: Berserk (Small)> is being held!"
|
||||
i.raviente.berserk = "<Great Slaying: Berserk> is being held!"
|
||||
i.raviente.extreme = "<Great Slaying: Extreme> is being held!"
|
||||
i.raviente.extremeLimited = "<Great Slaying: Extreme (Limited)> is being held!"
|
||||
i.raviente.berserkSmall = "<Great Slaying: Berserk (Small)> is being held!"
|
||||
|
||||
strings["guildInviteName"] = "Invitation!"
|
||||
strings["guildInvite"] = "You have been invited to join\n「%s」\nDo you want to accept?"
|
||||
i.guild.invite.title = "Invitation!"
|
||||
i.guild.invite.body = "You have been invited to join\n「%s」\nDo you want to accept?"
|
||||
|
||||
strings["guildInviteSuccessName"] = "Success!"
|
||||
strings["guildInviteSuccess"] = "You have successfully joined\n「%s」."
|
||||
i.guild.invite.success.title = "Success!"
|
||||
i.guild.invite.success.body = "You have successfully joined\n「%s」."
|
||||
|
||||
strings["guildInviteAcceptedName"] = "Accepted"
|
||||
strings["guildInviteAccepted"] = "The recipient accepted your invitation to join\n「%s」."
|
||||
i.guild.invite.accepted.title = "Accepted"
|
||||
i.guild.invite.accepted.body = "The recipient accepted your invitation to join\n「%s」."
|
||||
|
||||
strings["guildInviteRejectName"] = "Rejected"
|
||||
strings["guildInviteReject"] = "You rejected the invitation to join\n「%s」."
|
||||
i.guild.invite.rejected.title = "Rejected"
|
||||
i.guild.invite.rejected.body = "You rejected the invitation to join\n「%s」."
|
||||
|
||||
strings["guildInviteDeclinedName"] = "Declined"
|
||||
strings["guildInviteDeclined"] = "The recipient declined your invitation to join\n「%s」."
|
||||
i.guild.invite.declined.title = "Declined"
|
||||
i.guild.invite.declined.body = "The recipient declined your invitation to join\n「%s」."
|
||||
}
|
||||
return strings
|
||||
return i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user