mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
WIP: rework of localized strings, instead of generic LocStr, LocStr is now a struct which contains both the key, and the values which should be put into the value's placeholders. strs' properties are now methods which take values as arguments, and properties if they don't
This commit is contained in:
@@ -82,8 +82,8 @@ namespace NadekoBot.Modules.Games
|
||||
{
|
||||
var embed = _eb.Create().WithOkColor()
|
||||
.WithTitle(GetText(strs.acrophobia))
|
||||
.WithDescription(GetText(strs.acro_started, Format.Bold(string.Join(".", game.StartingLetters))))
|
||||
.WithFooter(GetText(strs.acro_started_footer, game.Opts.SubmissionTime));
|
||||
.WithDescription(GetText(strs.acro_started(Format.Bold(string.Join(".", game.StartingLetters)))))
|
||||
.WithFooter(GetText(strs.acro_started_footer(game.Opts.SubmissionTime)));
|
||||
|
||||
return ctx.Channel.EmbedAsync(embed);
|
||||
}
|
||||
@@ -92,7 +92,7 @@ namespace NadekoBot.Modules.Games
|
||||
{
|
||||
return SendConfirmAsync(
|
||||
GetText(strs.acrophobia),
|
||||
GetText(strs.acro_vote_cast, Format.Bold(user)));
|
||||
GetText(strs.acro_vote_cast(Format.Bold(user))));
|
||||
}
|
||||
|
||||
private async Task Game_OnVotingStarted(AcrophobiaGame game, ImmutableArray<KeyValuePair<AcrophobiaUser, int>> submissions)
|
||||
@@ -118,7 +118,7 @@ namespace NadekoBot.Modules.Games
|
||||
var embed = _eb.Create()
|
||||
.WithOkColor()
|
||||
.WithTitle(GetText(strs.acrophobia) + " - " + GetText(strs.submissions_closed))
|
||||
.WithDescription(GetText(strs.acro_nym_was, Format.Bold(string.Join(".", game.StartingLetters)) + "\n" +
|
||||
.WithDescription(GetText(strs.acro_nym_was(Format.Bold(string.Join(".", game.StartingLetters))) + "\n" +
|
||||
$@"--
|
||||
{submissions.Aggregate("", (agg, cur) => agg + $"`{++i}.` **{cur.Key.Input}**\n")}
|
||||
--"))
|
||||
@@ -138,7 +138,7 @@ $@"--
|
||||
var winner = table.First();
|
||||
var embed = _eb.Create().WithOkColor()
|
||||
.WithTitle(GetText(strs.acrophobia))
|
||||
.WithDescription(GetText(strs.acro_winner, Format.Bold(winner.Key.UserName),
|
||||
.WithDescription(GetText(strs.acro_winner(Format.Bold(winner.Key.UserName)),
|
||||
Format.Bold(winner.Value.ToString())))
|
||||
.WithFooter(winner.Key.Input);
|
||||
|
||||
|
Reference in New Issue
Block a user