poll localization, fixed pollstats

This commit is contained in:
Kwoth 2017-03-05 22:40:29 +01:00
parent 6fb0822bfd
commit b09c39cf5b
3 changed files with 238 additions and 106 deletions

View File

@ -1,4 +1,5 @@
using Discord; using System;
using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using NadekoBot.Attributes; using NadekoBot.Attributes;
@ -8,6 +9,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using ImageSharp.Processing;
namespace NadekoBot.Modules.Games namespace NadekoBot.Modules.Games
{ {
@ -39,7 +41,7 @@ namespace NadekoBot.Modules.Games
if (!ActivePolls.TryGetValue(Context.Guild.Id, out poll)) if (!ActivePolls.TryGetValue(Context.Guild.Id, out poll))
return; return;
await Context.Channel.EmbedAsync(poll.GetStats("Current Poll Results")); await Context.Channel.EmbedAsync(poll.GetStats(GetText("current_poll_results")));
} }
private async Task InternalStartPoll(string arg, bool isPublic = false) private async Task InternalStartPoll(string arg, bool isPublic = false)
@ -58,7 +60,7 @@ namespace NadekoBot.Modules.Games
await poll.StartPoll().ConfigureAwait(false); await poll.StartPoll().ConfigureAwait(false);
} }
else else
await channel.SendErrorAsync("Poll is already running on this server.").ConfigureAwait(false); await ReplyErrorLocalized("poll_already_running").ConfigureAwait(false);
} }
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
@ -108,21 +110,24 @@ namespace NadekoBot.Modules.Games
var totalVotesCast = 0; var totalVotesCast = 0;
if (results.Length == 0) if (results.Length == 0)
{ {
sb.AppendLine("No votes cast."); sb.AppendLine(GetText("no_votes_cast"));
} }
else else
{ {
for (int i = 0; i < results.Length; i++) for (int i = 0; i < results.Length; i++)
{ {
var result = results[i]; var result = results[i];
sb.AppendLine($"`{i + 1}.` {Format.Bold(answers[result.Key - 1])} with {Format.Bold(result.Value.ToString())} votes."); sb.AppendLine(GetText("poll_result",
result.Key,
Format.Bold(answers[result.Key - 1]),
Format.Bold(result.Value.ToString())));
totalVotesCast += result.Value; totalVotesCast += result.Value;
} }
} }
eb.WithDescription(sb.ToString()) eb.WithDescription(sb.ToString())
.WithFooter(efb => efb.WithText(totalVotesCast + " total votes cast.")); .WithFooter(efb => efb.WithText(GetText("x_votes_cast", totalVotesCast)));
return eb; return eb;
} }
@ -130,13 +135,13 @@ namespace NadekoBot.Modules.Games
public async Task StartPoll() public async Task StartPoll()
{ {
NadekoBot.Client.MessageReceived += Vote; NadekoBot.Client.MessageReceived += Vote;
var msgToSend = $"📃**{_originalMessage.Author.Username}** has created a poll which requires your attention:\n\n**{_question}**\n"; var msgToSend = GetText("poll_created", Format.Bold(_originalMessage.Author.Username)) + "\n\n" + Format.Bold(_question) + "\n";
var num = 1; var num = 1;
msgToSend = answers.Aggregate(msgToSend, (current, answ) => current + $"`{num++}.` **{answ}**\n"); msgToSend = answers.Aggregate(msgToSend, (current, answ) => current + $"`{num++}.` **{answ}**\n");
if (!IsPublic) if (!IsPublic)
msgToSend += "\n**Private Message me with the corresponding number of the answer.**"; msgToSend += "\n" + Format.Bold(GetText("poll_vote_private"));
else else
msgToSend += "\n**Send a Message here with the corresponding number of the answer.**"; msgToSend += "\n" + Format.Bold(GetText("poll_vote_public"));
await _originalMessage.Channel.SendConfirmAsync(msgToSend).ConfigureAwait(false); await _originalMessage.Channel.SendConfirmAsync(msgToSend).ConfigureAwait(false);
} }
@ -187,17 +192,23 @@ namespace NadekoBot.Modules.Games
{ {
if (!IsPublic) if (!IsPublic)
{ {
await ch.SendConfirmAsync($"Thanks for voting **{msg.Author.Username}**.").ConfigureAwait(false); await ch.SendConfirmAsync(GetText("thanks_for_voting", Format.Bold(msg.Author.Username))).ConfigureAwait(false);
} }
else else
{ {
var toDelete = await ch.SendConfirmAsync($"{msg.Author.Mention} cast their vote.").ConfigureAwait(false); var toDelete = await ch.SendConfirmAsync(GetText("poll_voted", Format.Bold(msg.Author.ToString()))).ConfigureAwait(false);
toDelete.DeleteAfter(5); toDelete.DeleteAfter(5);
} }
} }
} }
catch { } catch { }
} }
private string GetText(string key, params object[] replacements)
=> NadekoTopLevelModule.GetTextStatic(key,
NadekoBot.Localization.GetCultureInfo(_guild.Id),
typeof(Games).Name.ToLowerInvariant(),
replacements);
} }
} }
} }

View File

@ -809,7 +809,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to New Message. /// Looks up a localized string similar to New message.
/// </summary> /// </summary>
public static string administration_new_msg { public static string administration_new_msg {
get { get {
@ -818,7 +818,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to New Nickname. /// Looks up a localized string similar to New nickname.
/// </summary> /// </summary>
public static string administration_new_nick { public static string administration_new_nick {
get { get {
@ -827,7 +827,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to New Topic. /// Looks up a localized string similar to New topic.
/// </summary> /// </summary>
public static string administration_new_topic { public static string administration_new_topic {
get { get {
@ -836,7 +836,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Nickname Changed. /// Looks up a localized string similar to Nickname changed.
/// </summary> /// </summary>
public static string administration_nick_change { public static string administration_nick_change {
get { get {
@ -863,7 +863,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Old Message. /// Looks up a localized string similar to Old message.
/// </summary> /// </summary>
public static string administration_old_msg { public static string administration_old_msg {
get { get {
@ -872,7 +872,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Old Nickname. /// Looks up a localized string similar to Old nickname.
/// </summary> /// </summary>
public static string administration_old_nick { public static string administration_old_nick {
get { get {
@ -881,7 +881,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Old Topic. /// Looks up a localized string similar to Old topic.
/// </summary> /// </summary>
public static string administration_old_topic { public static string administration_old_topic {
get { get {
@ -908,7 +908,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Presence Updates. /// Looks up a localized string similar to Presence updates.
/// </summary> /// </summary>
public static string administration_presence_updates { public static string administration_presence_updates {
get { get {
@ -917,7 +917,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Active Protections. /// Looks up a localized string similar to Active protections.
/// </summary> /// </summary>
public static string administration_prot_active { public static string administration_prot_active {
get { get {
@ -953,7 +953,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to No protections enabled.. /// Looks up a localized string similar to No protection enabled..
/// </summary> /// </summary>
public static string administration_prot_none { public static string administration_prot_none {
get { get {
@ -1170,7 +1170,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User Soft-Banned. /// Looks up a localized string similar to User soft-banned.
/// </summary> /// </summary>
public static string administration_sb_user { public static string administration_sb_user {
get { get {
@ -1442,7 +1442,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Text Channel Created. /// Looks up a localized string similar to Text channel created..
/// </summary> /// </summary>
public static string administration_text_chan_created { public static string administration_text_chan_created {
get { get {
@ -1451,7 +1451,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Text Channel Destroyed . /// Looks up a localized string similar to Text channel destroyed..
/// </summary> /// </summary>
public static string administration_text_chan_destroyed { public static string administration_text_chan_destroyed {
get { get {
@ -1478,7 +1478,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User Banned. /// Looks up a localized string similar to User banned.
/// </summary> /// </summary>
public static string administration_user_banned { public static string administration_user_banned {
get { get {
@ -1505,7 +1505,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User Joined. /// Looks up a localized string similar to User joined.
/// </summary> /// </summary>
public static string administration_user_joined { public static string administration_user_joined {
get { get {
@ -1514,7 +1514,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User Left. /// Looks up a localized string similar to User left.
/// </summary> /// </summary>
public static string administration_user_left { public static string administration_user_left {
get { get {
@ -1532,7 +1532,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User&apos;s Role Added. /// Looks up a localized string similar to User&apos;s role added.
/// </summary> /// </summary>
public static string administration_user_role_add { public static string administration_user_role_add {
get { get {
@ -1541,7 +1541,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User&apos;s Role Removed. /// Looks up a localized string similar to User&apos;s role removed.
/// </summary> /// </summary>
public static string administration_user_role_rem { public static string administration_user_role_rem {
get { get {
@ -1559,7 +1559,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to User Unbanned. /// Looks up a localized string similar to User unbanned.
/// </summary> /// </summary>
public static string administration_user_unbanned { public static string administration_user_unbanned {
get { get {
@ -1631,7 +1631,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Username Changed. /// Looks up a localized string similar to Username changed.
/// </summary> /// </summary>
public static string administration_username_changed { public static string administration_username_changed {
get { get {
@ -1649,7 +1649,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Voice Channel Created. /// Looks up a localized string similar to Voice channel created.
/// </summary> /// </summary>
public static string administration_voice_chan_created { public static string administration_voice_chan_created {
get { get {
@ -1658,7 +1658,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Voice Channel Destroyed. /// Looks up a localized string similar to Voice channel destroyed.
/// </summary> /// </summary>
public static string administration_voice_chan_destroyed { public static string administration_voice_chan_destroyed {
get { get {
@ -2072,7 +2072,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Animal Race. /// Looks up a localized string similar to Animal race.
/// </summary> /// </summary>
public static string gambling_animal_race { public static string gambling_animal_race {
get { get {
@ -2207,7 +2207,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Changes Of Heart. /// Looks up a localized string similar to Changes of heart.
/// </summary> /// </summary>
public static string gambling_changes_of_heart { public static string gambling_changes_of_heart {
get { get {
@ -2216,7 +2216,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Claimed By. /// Looks up a localized string similar to Claimed by.
/// </summary> /// </summary>
public static string gambling_claimed_by { public static string gambling_claimed_by {
get { get {
@ -2342,7 +2342,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Heads. /// Looks up a localized string similar to Head.
/// </summary> /// </summary>
public static string gambling_heads { public static string gambling_heads {
get { get {
@ -2450,7 +2450,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Raffled User. /// Looks up a localized string similar to Raffled user.
/// </summary> /// </summary>
public static string gambling_raffled_user { public static string gambling_raffled_user {
get { get {
@ -2559,7 +2559,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Tails. /// Looks up a localized string similar to Tail.
/// </summary> /// </summary>
public static string gambling_tails { public static string gambling_tails {
get { get {
@ -2931,6 +2931,15 @@ namespace NadekoBot.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Current poll results.
/// </summary>
public static string games_current_poll_results {
get {
return ResourceManager.GetString("games_current_poll_results", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Failed loading a question.. /// Looks up a localized string similar to Failed loading a question..
/// </summary> /// </summary>
@ -2941,7 +2950,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Game Started. /// Looks up a localized string similar to Game started.
/// </summary> /// </summary>
public static string games_game_started { public static string games_game_started {
get { get {
@ -3003,6 +3012,15 @@ namespace NadekoBot.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to No votes cast..
/// </summary>
public static string games_no_votes_cast {
get {
return ResourceManager.GetString("games_no_votes_cast", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to You don&apos;t have enough {0}. /// Looks up a localized string similar to You don&apos;t have enough {0}.
/// </summary> /// </summary>
@ -3030,6 +3048,60 @@ namespace NadekoBot.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Poll is already running on this server..
/// </summary>
public static string games_poll_already_running {
get {
return ResourceManager.GetString("games_poll_already_running", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 📃 {0} has created a poll which requires your attention:.
/// </summary>
public static string games_poll_created {
get {
return ResourceManager.GetString("games_poll_created", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to `{0}.` {1} with {2} votes..
/// </summary>
public static string games_poll_result {
get {
return ResourceManager.GetString("games_poll_result", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Private Message me with the corresponding number of the answer..
/// </summary>
public static string games_poll_vote_private {
get {
return ResourceManager.GetString("games_poll_vote_private", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Send a Message here with the corresponding number of the answer..
/// </summary>
public static string games_poll_vote_public {
get {
return ResourceManager.GetString("games_poll_vote_public", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} voted..
/// </summary>
public static string games_poll_voted {
get {
return ResourceManager.GetString("games_poll_voted", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Question. /// Looks up a localized string similar to Question.
/// </summary> /// </summary>
@ -3058,7 +3130,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Submissions Closed. /// Looks up a localized string similar to Submissions closed.
/// </summary> /// </summary>
public static string games_submissions_closed { public static string games_submissions_closed {
get { get {
@ -3066,6 +3138,15 @@ namespace NadekoBot.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Thank you for voting, {0}.
/// </summary>
public static string games_thanks_for_voting {
get {
return ResourceManager.GetString("games_thanks_for_voting", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Trivia game is already running on this server.. /// Looks up a localized string similar to Trivia game is already running on this server..
/// </summary> /// </summary>
@ -3175,7 +3256,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to {0} has Won!. /// Looks up a localized string similar to {0} has won!.
/// </summary> /// </summary>
public static string games_ttt_has_won { public static string games_ttt_has_won {
get { get {
@ -3184,7 +3265,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Matched Three. /// Looks up a localized string similar to Matched three.
/// </summary> /// </summary>
public static string games_ttt_matched_three { public static string games_ttt_matched_three {
get { get {
@ -3202,7 +3283,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Time Expired!. /// Looks up a localized string similar to Time expired!.
/// </summary> /// </summary>
public static string games_ttt_time_expired { public static string games_ttt_time_expired {
get { get {
@ -3228,6 +3309,15 @@ namespace NadekoBot.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to {0} total votes cast..
/// </summary>
public static string games_x_votes_cast {
get {
return ResourceManager.GetString("games_x_votes_cast", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Back to ToC. /// Looks up a localized string similar to Back to ToC.
/// </summary> /// </summary>
@ -3238,7 +3328,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Bot Owner Only. /// Looks up a localized string similar to Bot owner only.
/// </summary> /// </summary>
public static string help_bot_owner_only { public static string help_bot_owner_only {
get { get {
@ -3256,7 +3346,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Command and aliases. /// Looks up a localized string similar to Commands and aliases.
/// </summary> /// </summary>
public static string help_cmd_and_alias { public static string help_cmd_and_alias {
get { get {
@ -3283,7 +3373,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Commandlist Regenerated.. /// Looks up a localized string similar to Commandlist regenerated..
/// </summary> /// </summary>
public static string help_commandlist_regen { public static string help_commandlist_regen {
get { get {
@ -3324,8 +3414,8 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to **List of Commands**: &lt;{0}&gt; /// Looks up a localized string similar to **List of commands**: &lt;{0}&gt;
///**Hosting Guides and docs can be found here**: &lt;{1}&gt;. ///**Hosting guides and docs can be found here**: &lt;{1}&gt;.
/// </summary> /// </summary>
public static string help_guide { public static string help_guide {
get { get {
@ -3334,7 +3424,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to List Of Commands. /// Looks up a localized string similar to List of commands.
/// </summary> /// </summary>
public static string help_list_of_commands { public static string help_list_of_commands {
get { get {
@ -3343,7 +3433,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to List Of Modules. /// Looks up a localized string similar to List of modules.
/// </summary> /// </summary>
public static string help_list_of_modules { public static string help_list_of_modules {
get { get {
@ -3379,7 +3469,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Table Of Contents. /// Looks up a localized string similar to Table of contents.
/// </summary> /// </summary>
public static string help_table_of_contents { public static string help_table_of_contents {
get { get {
@ -3451,7 +3541,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Finished Song. /// Looks up a localized string similar to Finished song.
/// </summary> /// </summary>
public static string music_finished_song { public static string music_finished_song {
get { get {
@ -3577,7 +3667,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Now Playing. /// Looks up a localized string similar to Now playing.
/// </summary> /// </summary>
public static string music_now_playing { public static string music_now_playing {
get { get {
@ -3604,7 +3694,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Player Queue - Page {0}/{1}. /// Looks up a localized string similar to Player queue - Page {0}/{1}.
/// </summary> /// </summary>
public static string music_player_queue { public static string music_player_queue {
get { get {
@ -3613,7 +3703,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Playing Song. /// Looks up a localized string similar to Playing song.
/// </summary> /// </summary>
public static string music_playing_song { public static string music_playing_song {
get { get {
@ -3658,7 +3748,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Playlist Saved. /// Looks up a localized string similar to Playlist saved.
/// </summary> /// </summary>
public static string music_playlist_saved { public static string music_playlist_saved {
get { get {
@ -3676,7 +3766,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Page {0} of Saved Playlists. /// Looks up a localized string similar to Page {0} of saved playlists.
/// </summary> /// </summary>
public static string music_playlists_page { public static string music_playlists_page {
get { get {
@ -3712,7 +3802,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Queued Song. /// Looks up a localized string similar to Queued song.
/// </summary> /// </summary>
public static string music_queued_song { public static string music_queued_song {
get { get {
@ -3730,7 +3820,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Repeating Current Song. /// Looks up a localized string similar to Repeating current song.
/// </summary> /// </summary>
public static string music_repeating_cur_song { public static string music_repeating_cur_song {
get { get {
@ -3739,7 +3829,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Repeating Playlist. /// Looks up a localized string similar to Repeating playlist.
/// </summary> /// </summary>
public static string music_repeating_playlist { public static string music_repeating_playlist {
get { get {
@ -3748,7 +3838,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Repeating Track. /// Looks up a localized string similar to Repeating track.
/// </summary> /// </summary>
public static string music_repeating_track { public static string music_repeating_track {
get { get {
@ -3811,7 +3901,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Song Moved. /// Looks up a localized string similar to Song moved.
/// </summary> /// </summary>
public static string music_song_moved { public static string music_song_moved {
get { get {
@ -3820,7 +3910,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Songs shuffled.. /// Looks up a localized string similar to Songs shuffled.
/// </summary> /// </summary>
public static string music_songs_shuffled { public static string music_songs_shuffled {
get { get {
@ -3911,7 +4001,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Disabled usage of ALL MODULES on {0} channel.. /// Looks up a localized string similar to Disabled usage of ALL MODULES on channel {0}..
/// </summary> /// </summary>
public static string permissions_acm_disable { public static string permissions_acm_disable {
get { get {
@ -3920,7 +4010,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Enabled usage of ALL MODULES on {0} channel.. /// Looks up a localized string similar to Enabled usage of ALL MODULES on channel {0}..
/// </summary> /// </summary>
public static string permissions_acm_enable { public static string permissions_acm_enable {
get { get {
@ -3938,7 +4028,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Disabled usage of ALL MODULES for {0} role.. /// Looks up a localized string similar to Disabled usage of ALL MODULES for role {0}..
/// </summary> /// </summary>
public static string permissions_arm_disable { public static string permissions_arm_disable {
get { get {
@ -3947,7 +4037,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Enabled usage of ALL MODULES for {0} role.. /// Looks up a localized string similar to Enabled usage of ALL MODULES for role {0}..
/// </summary> /// </summary>
public static string permissions_arm_enable { public static string permissions_arm_enable {
get { get {
@ -3974,7 +4064,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Disabled usage of ALL MODULES for {0} user.. /// Looks up a localized string similar to Disabled usage of ALL MODULES for user {0}..
/// </summary> /// </summary>
public static string permissions_aum_disable { public static string permissions_aum_disable {
get { get {
@ -3983,7 +4073,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Enabled usage of ALL MODULES for {0} user.. /// Looks up a localized string similar to Enabled usage of ALL MODULES for user {0}..
/// </summary> /// </summary>
public static string permissions_aum_enable { public static string permissions_aum_enable {
get { get {
@ -4010,7 +4100,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Command {0} has no coooldown now and all existing cooldowns have been cleared.. /// Looks up a localized string similar to Command {0} has no cooldown now and all existing cooldowns have been cleared..
/// </summary> /// </summary>
public static string permissions_cmdcd_cleared { public static string permissions_cmdcd_cleared {
get { get {
@ -4028,7 +4118,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Command Costs. /// Looks up a localized string similar to Command costs.
/// </summary> /// </summary>
public static string permissions_command_costs { public static string permissions_command_costs {
get { get {
@ -4037,7 +4127,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Disabled usage of {0} {1} on {2} channel.. /// Looks up a localized string similar to Disabled usage of {0} {1} on channel {2}..
/// </summary> /// </summary>
public static string permissions_cx_disable { public static string permissions_cx_disable {
get { get {
@ -4046,7 +4136,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Enabled usage of {0} {1} on {2} channel.. /// Looks up a localized string similar to Enabled usage of {0} {1} on channel {2}..
/// </summary> /// </summary>
public static string permissions_cx_enable { public static string permissions_cx_enable {
get { get {
@ -4073,7 +4163,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to List Of Filtered Words. /// Looks up a localized string similar to List of filtered words.
/// </summary> /// </summary>
public static string permissions_filter_word_list { public static string permissions_filter_word_list {
get { get {
@ -4667,7 +4757,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Competitive Loses. /// Looks up a localized string similar to Competitive losses.
/// </summary> /// </summary>
public static string searches_compet_loses { public static string searches_compet_loses {
get { get {
@ -4676,7 +4766,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Competitive Played. /// Looks up a localized string similar to Competitive played.
/// </summary> /// </summary>
public static string searches_compet_played { public static string searches_compet_played {
get { get {
@ -4685,7 +4775,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Competitive Rank. /// Looks up a localized string similar to Competitive rank.
/// </summary> /// </summary>
public static string searches_compet_rank { public static string searches_compet_rank {
get { get {
@ -4847,7 +4937,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Image Search For:. /// Looks up a localized string similar to Image search for:.
/// </summary> /// </summary>
public static string searches_image_search_for { public static string searches_image_search_for {
get { get {
@ -4973,7 +5063,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to On-Hold. /// Looks up a localized string similar to On-hold.
/// </summary> /// </summary>
public static string searches_on_hold { public static string searches_on_hold {
get { get {
@ -4982,7 +5072,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Original Url. /// Looks up a localized string similar to Original url.
/// </summary> /// </summary>
public static string searches_original_url { public static string searches_original_url {
get { get {
@ -5063,7 +5153,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Profile Link:. /// Looks up a localized string similar to Profile link:.
/// </summary> /// </summary>
public static string searches_profile_link { public static string searches_profile_link {
get { get {
@ -5081,7 +5171,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Quick Playtime. /// Looks up a localized string similar to Quick playtime.
/// </summary> /// </summary>
public static string searches_quick_playtime { public static string searches_quick_playtime {
get { get {
@ -5090,7 +5180,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Quick Wins. /// Looks up a localized string similar to Quick wins.
/// </summary> /// </summary>
public static string searches_quick_wins { public static string searches_quick_wins {
get { get {
@ -5117,7 +5207,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Search For:. /// Looks up a localized string similar to Search for:.
/// </summary> /// </summary>
public static string searches_search_for { public static string searches_search_for {
get { get {
@ -5126,7 +5216,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Short Url. /// Looks up a localized string similar to Short url.
/// </summary> /// </summary>
public static string searches_short_url { public static string searches_short_url {
get { get {
@ -5171,7 +5261,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Store Url. /// Looks up a localized string similar to Store url.
/// </summary> /// </summary>
public static string searches_store_url { public static string searches_store_url {
get { get {
@ -5378,7 +5468,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Wind Speed. /// Looks up a localized string similar to Wind speed.
/// </summary> /// </summary>
public static string searches_wind_speed { public static string searches_wind_speed {
get { get {
@ -5423,7 +5513,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Activity Page #{0}. /// Looks up a localized string similar to Activity page #{0}.
/// </summary> /// </summary>
public static string utility_activity_page { public static string utility_activity_page {
get { get {
@ -5468,7 +5558,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Channel Topic. /// Looks up a localized string similar to Channel topic.
/// </summary> /// </summary>
public static string utility_channel_topic { public static string utility_channel_topic {
get { get {
@ -5486,7 +5576,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Commands Ran. /// Looks up a localized string similar to Commands ran.
/// </summary> /// </summary>
public static string utility_commands_ran { public static string utility_commands_ran {
get { get {
@ -5531,7 +5621,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Created At. /// Looks up a localized string similar to Created at.
/// </summary> /// </summary>
public static string utility_created_at { public static string utility_created_at {
get { get {
@ -5567,7 +5657,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Custom Emojis. /// Looks up a localized string similar to Custom emojis.
/// </summary> /// </summary>
public static string utility_custom_emojis { public static string utility_custom_emojis {
get { get {
@ -5621,7 +5711,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to you are not allowed to use this command on roles with a lot of users in them to prevent abuse.. /// Looks up a localized string similar to You are not allowed to use this command on roles with a lot of users in them to prevent abuse..
/// </summary> /// </summary>
public static string utility_inrole_not_allowed { public static string utility_inrole_not_allowed {
get { get {
@ -5648,7 +5738,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Joined Server. /// Looks up a localized string similar to Joined server.
/// </summary> /// </summary>
public static string utility_joined_server { public static string utility_joined_server {
get { get {
@ -5657,7 +5747,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to List of Repeaters. /// Looks up a localized string similar to List of repeater.
/// </summary> /// </summary>
public static string utility_list_of_repeaters { public static string utility_list_of_repeaters {
get { get {
@ -5704,7 +5794,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Message Repeater. /// Looks up a localized string similar to Message repeater.
/// </summary> /// </summary>
public static string utility_message_repeater { public static string utility_message_repeater {
get { get {
@ -5886,7 +5976,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Registered On. /// Looks up a localized string similar to Registered on.
/// </summary> /// </summary>
public static string utility_registered_on { public static string utility_registered_on {
get { get {
@ -5949,7 +6039,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to List Of Repeaters. /// Looks up a localized string similar to List of repeaters.
/// </summary> /// </summary>
public static string utility_repeaters_list { public static string utility_repeaters_list {
get { get {
@ -6030,7 +6120,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Server Info. /// Looks up a localized string similar to Server info.
/// </summary> /// </summary>
public static string utility_server_info { public static string utility_server_info {
get { get {
@ -6057,7 +6147,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Shard Stats. /// Looks up a localized string similar to Shard stats.
/// </summary> /// </summary>
public static string utility_shard_stats { public static string utility_shard_stats {
get { get {
@ -6102,7 +6192,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Text Channels. /// Looks up a localized string similar to Text channels.
/// </summary> /// </summary>
public static string utility_text_channels { public static string utility_text_channels {
get { get {
@ -6147,7 +6237,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Voice Channels. /// Looks up a localized string similar to Voice channels.
/// </summary> /// </summary>
public static string utility_voice_channels { public static string utility_voice_channels {
get { get {

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
@ -2187,4 +2187,35 @@ Owner ID: {2}</value>
<data name="utility_voice_channels" xml:space="preserve"> <data name="utility_voice_channels" xml:space="preserve">
<value>Voice channels</value> <value>Voice channels</value>
</data> </data>
<data name="games_current_poll_results" xml:space="preserve">
<value>Current poll results</value>
</data>
<data name="games_no_votes_cast" xml:space="preserve">
<value>No votes cast.</value>
</data>
<data name="games_poll_already_running" xml:space="preserve">
<value>Poll is already running on this server.</value>
</data>
<data name="games_poll_created" xml:space="preserve">
<value>📃 {0} has created a poll which requires your attention:</value>
</data>
<data name="games_poll_result" xml:space="preserve">
<value>`{0}.` {1} with {2} votes.</value>
</data>
<data name="games_poll_voted" xml:space="preserve">
<value>{0} voted.</value>
<comment>Kwoth voted.</comment>
</data>
<data name="games_poll_vote_private" xml:space="preserve">
<value>Private Message me with the corresponding number of the answer.</value>
</data>
<data name="games_poll_vote_public" xml:space="preserve">
<value>Send a Message here with the corresponding number of the answer.</value>
</data>
<data name="games_thanks_for_voting" xml:space="preserve">
<value>Thank you for voting, {0}</value>
</data>
<data name="games_x_votes_cast" xml:space="preserve">
<value>{0} total votes cast.</value>
</data>
</root> </root>