migration localized, only 2 responses, won't localize console output

This commit is contained in:
Kwoth 2017-02-14 19:08:27 +01:00
parent be8ca3b45d
commit b24e68c24c
2 changed files with 20 additions and 2 deletions

View File

@ -51,12 +51,12 @@ namespace NadekoBot.Modules.Administration
break; break;
} }
} }
await Context.Channel.SendMessageAsync("🆙 **Migration done.**").ConfigureAwait(false); await ReplyConfirmLocalized("migration_done").ConfigureAwait(false);
} }
catch (Exception ex) catch (Exception ex)
{ {
_log.Error(ex); _log.Error(ex);
await Context.Channel.SendMessageAsync("⚠️ **Error while migrating, check `logs` for more informations.**").ConfigureAwait(false); await ReplyErrorLocalized("migration_error").ConfigureAwait(false);
} }
} }

View File

@ -690,6 +690,24 @@ namespace NadekoBot.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Migration done!.
/// </summary>
public static string adminsitration_migration_done {
get {
return ResourceManager.GetString("adminsitration_migration_done", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error while migrating, check bot&apos;s console for more information..
/// </summary>
public static string adminsitration_migration_error {
get {
return ResourceManager.GetString("adminsitration_migration_error", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Presence Updates. /// Looks up a localized string similar to Presence Updates.
/// </summary> /// </summary>