/*
 *  This file is part of Player Analytics (Plan).
 *
 *  Plan is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License v3 as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Plan is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Plan. If not, see <https://www.gnu.org/licenses/>.
 */
package com.djrapitops.plan.settings.locale.lang;

/**
 * {@link Lang} implementation for all error pages.
 *
 * @author AuroraLS3
 */
public enum ErrorPageLang implements Lang {
    UUID_404("Player UUID was not found in the database."),
    NO_SERVERS_404("No Servers online to perform the request."),
    NOT_PLAYED_404("Plan has not seen this player."),
    UNKNOWN_PAGE_404("Make sure you're accessing a link given by a command, Examples:</p><p>/player/{uuid/name}<br>/server/{uuid/name/id}</p>"),
    UNAUTHORIZED_401("Unauthorized"),
    AUTHENTICATION_FAILED_401("Authentication Failed."),
    AUTH_FAIL_TIPS_401("- Ensure you have registered a user with <b>/plan register</b><br>- Check that the username and password are correct<br>- Username and password are case-sensitive<br><br>If you have forgotten your password, ask a staff member to delete your old user and re-register."),
    FORBIDDEN_403("Forbidden"),
    ACCESS_DENIED_403("Access Denied"),
    NOT_FOUND_404("Not Found"),
    PAGE_NOT_FOUND_404("Page does not exist.");

    private final String defaultValue;

    ErrorPageLang(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    @Override
    public String getIdentifier() {
        return "HTML ERRORS - " + name();
    }

    @Override
    public String getDefault() {
        return defaultValue;
    }
}
