french translation added for responses, Some string fixes
This commit is contained in:
@@ -19,7 +19,8 @@ namespace NadekoBot.Modules.Administration
|
||||
private ImmutableDictionary<string, string> supportedLocales { get; } = new Dictionary<string, string>()
|
||||
{
|
||||
{"en-US", "English, United States" },
|
||||
{"sr-cyrl-rs", "Serbian, Cyrillic" }
|
||||
{"fr-FR", "French, France" }
|
||||
//{"sr-cyrl-rs", "Serbian, Cyrillic" }
|
||||
}.ToImmutableDictionary();
|
||||
|
||||
[NadekoCommand, Usage, Description, Aliases]
|
||||
@@ -94,9 +95,10 @@ namespace NadekoBot.Modules.Administration
|
||||
[OwnerOnly]
|
||||
public async Task LanguagesList()
|
||||
{
|
||||
await ReplyConfirmLocalized("lang_list",
|
||||
string.Join("\n", supportedLocales.Select(x => $"{Format.Code(x.Key)} => {x.Value}")))
|
||||
.ConfigureAwait(false);
|
||||
await Context.Channel.EmbedAsync(new EmbedBuilder().WithOkColor()
|
||||
.WithTitle(GetText("lang_list", ""))
|
||||
.WithDescription(string.Join("\n",
|
||||
supportedLocales.Select(x => $"{Format.Code(x.Key), -10} => {x.Value}"))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -818,7 +818,7 @@ namespace NadekoBot.Modules.Music
|
||||
MusicPlayer musicPlayer;
|
||||
if (!MusicPlayers.TryGetValue(Context.Guild.Id, out musicPlayer))
|
||||
{
|
||||
await ReplyErrorLocalized("player_none").ConfigureAwait(false);
|
||||
await ReplyErrorLocalized("no_player").ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user