Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,25 @@
"zh": "今日十大",
"nl": "De top tien van vandaag"
},
"NOBODY_PLAYED_TODAY": {
"en": "Nobody has played here today! :cry:",
"tr": "Nobody has played here today! :cry:",
"pt": "Nobody has played here today! :cry:",
"fr": "Nobody has played here today! :cry:",
"es": "Nobody has played here today! :cry:",
"de": "Heute hat hier noch keiner gespielt! :cry:",
"hi": "Nobody has played here today! :cry:",
"sv": "Nobody has played here today! :cry:",
"ru": "Nobody has played here today! :cry:",
"it": "Nobody has played here today! :cry:",
"pl": "Nobody has played here today! :cry:",
"ko": "Nobody has played here today! :cry:",
"ja": "Nobody has played here today! :cry:",
"bg": "Nobody has played here today! :cry:",
"ar": "Nobody has played here today! :cry:",
"zh": "Nobody has played here today! :cry:",
"nl": "Nobody has played here today! :cry:"
},
"MORE_INFO": {
"en": "More Information",
"tr": "Daha Fazla Bilgi",
Expand Down
4 changes: 2 additions & 2 deletions modules/trivia/trivia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,10 @@ void TriviaModule::show_stats(const std::string& interaction_token, dpp::snowfla
msg.append(fmt::format("{}. <@{}> ({})\n", count++, r["snowflake_id"], r["dayscore"]));
}
}
guild_settings_t settings = GetGuildSettings(guild_id);
if (msg.empty()) {
msg = "Nobody has played here today! :cry:";
msg = _("NOBODY_PLAYED_TODAY", settings);
}
guild_settings_t settings = GetGuildSettings(guild_id);
if (settings.premium && !settings.custom_url.empty()) {
EmbedWithFields(interaction_token, command_id, settings, _("LEADERBOARD", settings), {{_("TOP_TEN", settings), msg, false}, {_("MORE_INFO", settings), fmt::format(_("LEADER_LINK", settings), settings.custom_url), false}}, channel_id);
} else {
Expand Down